/**
 * Adviral Advertiser Landing Page - Custom Styles
 * Override theme styles and custom components
 * @version 1.0.0
 */

/* ============================================
   Color Scheme Override (Dark Blue)
   ============================================ */
:root {
  --bs-primary: #1a1a2e !important;
  --bs-blue: #1a1a2e !important;
}

.text-primary {
  color: #1a1a2e !important;
}

.bg-primary {
  background-color: #1a1a2e !important;
}

.btn-primary {
  background-color: #1a1a2e !important;
  border-color: #1a1a2e !important;
}

.btn-primary:hover {
  background-color: #0f1117 !important;
  border-color: #0f1117 !important;
}

a.text-primary:hover {
  color: #0f1117 !important;
}

/* ============================================
   Phone with Video Component
   ============================================ */
.phone-wrapper {
  position: relative;
  display: inline-block;
  max-width: 250px;
  width: 100%;
}

.phone-wrapper img {
  width: 100%;
  display: block;
}

.phone-video {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 90%;
  border-radius: 25px;
  overflow: hidden;
  pointer-events: none;
}

.phone-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   Phone Video Controls
   ============================================ */
.phone-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-video-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.phone-control-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #FE9A52;
  color: #FE9A52;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 2px 8px rgba(254,154,82,0.3);
}

.phone-control-btn:hover {
  background: #FE9A52;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(254,154,82,0.4);
}

.phone-control-btn:focus,
.phone-control-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.phone-control-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(254,154,82,0.5) !important;
}

.phone-control-btn svg {
  width: 18px;
  height: 18px;
}

.phone-control-btn * {
  outline: none !important;
  pointer-events: none;
}

/* ============================================
   Floating Telegram Button
   ============================================ */
.floating-telegram {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #FE9A52, #FD7D72);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 25px rgba(254, 154, 82, 0.5);
  z-index: 1000;
  transition: all 0.3s ease;
}

.floating-telegram:hover {
  background: linear-gradient(135deg, #FD7D72, #fc6560);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(254, 154, 82, 0.6);
  text-decoration: none;
}

.floating-telegram svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.floating-telegram-text {
  white-space: nowrap;
}

/* Floating Button - Responsive */
@media (max-width: 768px) {
  .floating-telegram {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  
  .floating-telegram svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .floating-telegram {
    padding: 14px;
    border-radius: 50%;
    bottom: 80px;
  }
  
  .floating-telegram-text {
    display: none;
  }
  
  .floating-telegram svg {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   Cookie Consent
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-consent.hidden {
  transform: translateY(100%);
}

.cookie-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(254, 154, 82, 0.2);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.cookie-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cookie-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: #FE9A52;
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-accept {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FE9A52 0%, #FD7D72 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-accept:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(254, 154, 82, 0.4);
}

/* Cookie Consent - Responsive */
@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .cookie-text {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cookie-accept {
    width: 100%;
  }
}

