/* Import all CSS modules */
@import url('../pages/base.css');
@import url('../pages/background.css');
@import url('../pages/layout.css');
@import url('../pages/animations.css');
@import url('../pages/responsive.css');

/* Component styles */
@import url('../components/header.css');
@import url('../components/footer.css');
@import url('../components/buttons.css');
@import url('../components/glass.css');
@import url('../components/tabs.css');

/* Section styles */
@import url('../sections/hero.css');
@import url('../sections/features.css');
@import url('../sections/streaming.css');
@import url('../sections/servers.css');
@import url('../sections/cta.css');
@import url('../sections/content-grid.css');
@import url('../sections/screens.css');

/* Page-specific styles */
@import url('../pages/blog.css');

/* Safari Optimization & Enhancement */
@import url('../optimizations/safari-optimization.css');

/* Dark theme overrides must load last */
@import url('../pages/dark-theme.css');

/* Language Switcher - main styles in header.css */

/* Unified internal page heroes (features, servers, services, blog, support) */
.internal-page-hero {
  position: relative;
  min-height: auto;
  padding: clamp(4rem, 7.5vw, 5.25rem) 0 clamp(2.75rem, 5vw, 3.5rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.internal-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-4);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.internal-hero-kicker i {
  font-size: 0.85rem;
}

.internal-hero-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.internal-hero-description {
  margin: 0 auto;
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: #334155;
}

.services-hero {
  text-align: center;
}

.services-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.support-main-content {
  padding: 0 0 4rem;
  text-align: center;
}

.support-hero {
  padding-bottom: clamp(2.5rem, 5vw, 3.25rem);
}

.support-hero-links {
  margin: var(--space-6) auto 0;
  max-width: 60ch;
  font-size: 1rem;
  color: var(--text-gray-600);
  line-height: 1.7;
}

.support-faq-wrap {
  margin-top: var(--space-10);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  text-align: left;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.support-section-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.support-faq-wrap > h3[style] {
  margin-top: 1.8rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.6rem !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3) !important;
  color: #0f172a !important;
}

.support-faq-wrap > div[style] {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.support-faq-wrap > div[style]:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.38) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
}

.support-contact {
  max-width: 980px;
  margin: 0 auto;
}

.support-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}

.support-contact-panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: clamp(1rem, 2.1vw, 1.4rem);
  text-align: left;
}

.support-contact-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.support-contact-panel p {
  margin: 0;
  line-height: 1.7;
  color: #334155;
}

.support-contact-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.support-contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #1e293b;
  font-size: 0.94rem;
}

.support-contact-points i {
  width: 30px;
  height: 30px;
  margin-top: 0.05rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.support-contact-points li:nth-child(2) i {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.support-contact-points li:nth-child(3) i {
  background: linear-gradient(135deg, #10b981, #047857);
}

.support-contact-social {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.support-contact-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.15);
}

.support-contact-social a i {
  font-size: 0.95rem;
}

.support-contact-social .social-x {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.support-contact-social .social-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 52%, #8134af);
}

.support-contact-social .social-tiktok {
  background: linear-gradient(135deg, #0f172a, #111827);
}

.support-contact-social .social-youtube {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.support-contact-social .social-facebook {
  background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.support-contact-social a:hover,
.support-contact-social a:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.2);
}

.support-contact-form {
  display: grid;
  gap: 0.55rem;
}

.support-contact-form label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #334155;
}

.support-contact-form input,
.support-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
}

.support-contact-form textarea {
  resize: vertical;
}

.support-contact-form input:focus,
.support-contact-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.support-contact-form .btn {
  margin-top: 0.45rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .support-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Strong normalization for legacy page-specific hero variants */
.internal-page-hero .servers-hero-inner,
.internal-page-hero .features-hero-inner,
.internal-page-hero .hero-content-v3 {
  max-width: 900px;
  margin: 0 auto;
}

.internal-page-hero .servers-hero-title,
.internal-page-hero .features-hero-title,
.internal-page-hero .hero-title-v3 {
  max-width: 22ch;
  margin: 0 auto var(--space-4);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  text-shadow: none;
}

.internal-page-hero .servers-hero-description,
.internal-page-hero .features-hero-desc,
.internal-page-hero .hero-description-v3 {
  max-width: 62ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: #334155;
  text-shadow: none;
}

.internal-page-hero .servers-hero-badge,
.internal-page-hero .features-hero-tagline,
.internal-page-hero .hero-kicker-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-4);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.internal-page-hero.blog-hero-v3 {
  min-height: auto;
}

.internal-page-hero.blog-hero-v3 .hero-background-v3 {
  opacity: 1;
  pointer-events: none;
}

/* More Devices Section */
.devices {
  padding: var(--space-24) 0;
  background: var(--bg-gray-50);
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.device-card {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.device-title {
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-gray-900);
  text-align: center;
}

.device-description {
  color: var(--text-gray-600);
  text-align: center;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

/* Section Headers - defined in layout.css */

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: var(--text-sm);
  font-weight: 600;
}

.feature-info h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-2);
}

.feature-info p {
  font-size: var(--text-base);
  color: var(--text-gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
  margin: var(--space-16) 0;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-8);
}

.content-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .section-title {
    font-size: var(--text-4xl);
  }
  
  .section-description {
    font-size: var(--text-lg);
  }
}

@media (max-width: 768px) {
  .devices-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .section-description {
    font-size: var(--text-base);
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
}

/* Final homepage header overrides */
.home-page .section-header {
  max-width: 760px;
  margin: 0 auto var(--space-10);
  padding-top: var(--space-4);
}

.home-page .section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: var(--space-4) var(--space-10);
  margin-bottom: var(--space-5);
  max-width: min(100%, 31rem);
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: var(--text-white);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.home-page .section-title {
  margin-bottom: var(--space-4);
  line-height: 1.12;
}

.home-page .section-description {
  max-width: 720px;
  font-size: var(--text-lg);
}

.home-page main > section {
  scroll-margin-top: 112px;
}

@media (max-width: 1024px) {
  .home-page .section-header {
    margin-bottom: var(--space-8);
    padding-top: var(--space-5);
  }

  .home-page .section-tag {
    min-height: 50px;
    padding: var(--space-3) var(--space-6);
    max-width: min(100%, 24rem);
    font-size: 0.82rem;
    letter-spacing: 0.11em;
  }

  .home-page .section-description {
    font-size: var(--text-base);
  }
}

@media (max-width: 768px) {
  .home-page .section-header {
    margin-bottom: var(--space-8);
    padding-top: var(--space-3);
  }

  .home-page .section-tag {
    min-height: 44px;
    padding: var(--space-3) var(--space-5);
    max-width: min(100%, 18rem);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .home-page .section-description {
    font-size: var(--text-base);
  }
}

/* ── Homepage hero cleanup after removing device mockup ── */
.home-page .hero {
  padding-top: clamp(4rem, 6vw, 4.5rem);
}

.home-page .hero .container {
  max-width: 1240px;
}

.home-page .hero .hero-content {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.home-page .hero .hero-text {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-page .hero .hero-topline {
  justify-content: center;
}

.home-page .hero .hero-actions {
  justify-content: center;
}

.home-page .hero .hero-title {
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.home-page .hero .hero-description {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.home-page .hero .hero-support {
  display: grid;
  gap: 1rem;
  max-width: 43rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
}

.home-page .hero .hero-proof-strip {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 43rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  padding: 0.2rem 0;
}


.home-page .hero .hero-proof-item {
  flex: 1 1 0;
  padding: 0.35rem 1.15rem 0.35rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}

.home-page .hero .hero-proof-item:not(:last-child) {
  margin-right: 1.15rem;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.home-page .hero .hero-proof-item strong {
  margin-bottom: 0.05rem;
  font-size: 1.05rem;
}

.home-page .hero .hero-proof-item span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.home-page .hero .hero-benefits {
  justify-content: center;
  gap: 0.6rem;
}

.home-page .hero .hero-benefits li {
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  box-shadow: none;
  color: var(--text-gray-600);
  font-size: 0.83rem;
}

.home-page .hero .hero-visual {
  display: none;
}

body.dark-theme .home-page .hero .hero-support {
  border-top-color: rgba(148, 163, 184, 0.14);
}

body.dark-theme .home-page .hero .hero-proof-item:not(:last-child) {
  border-right-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .home-page .hero .hero-benefits li {
  color: rgba(226, 232, 240, 0.88);
}

@media (max-width: 768px) {
  .home-page .hero .hero-proof-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    max-width: 100%;
  }

  .home-page .hero .hero-proof-item {
    flex: 1 1 30%;
    min-width: 104px;
    padding: var(--space-3);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    white-space: normal;
  }

  .home-page .hero .hero-proof-item:not(:last-child) {
    margin-right: 0;
    border-right: 0;
  }
}

/* Hero contrast safety overrides */
.home-page .hero .hero-actions .btn-secondary {
  color: #0f172a;
}

.home-page .hero .hero-actions .btn-secondary .btn-text,
.home-page .hero .hero-actions .btn-secondary .btn-icon {
  color: inherit;
}

.home-page .hero .hero-proof-item strong {
  color: #0f172a;
}

.home-page .hero .hero-proof-item span {
  color: #475569;
}

.home-page .hero .hero-benefits li {
  color: #334155;
}

.home-page .hero .hero-benefits li span {
  color: inherit;
}

body.dark-theme .home-page .hero .hero-actions .btn-secondary {
  background: #171c2a;
  border-color: #34415f;
  color: #f8fafc;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body.dark-theme .home-page .hero .hero-proof-item strong {
  color: #f8fafc;
}

body.dark-theme .home-page .hero .hero-proof-item span {
  color: #cbd5e1;
}

body.dark-theme .home-page .hero .hero-benefits li {
  background: #171c2a;
  border-color: #2f3a55;
  color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

body.dark-theme .home-page .hero .hero-benefits li i {
  color: #60a5fa;
}

@media (max-width: 768px) {
  body.dark-theme .home-page .hero .hero-proof-item {
    background: #171c2a;
    border: 1px solid #2f3a55;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  }
}
