/* Global CSS for IPTV Nederland Theme */

/* Root variables and base styles */
:root {
  scrollbar-gutter: stable;
  --primary: #1D4ED8;
  --secondary: #60A5FA;
  --background: #0b0b0b;
  --surface: #1a1a1a;
  --foreground: #ffffff;
  --muted: #a1a1aa;
  --border: #2a2a2a;
  --card: #1a1a1a;
  --success: #22C55E;
}

/* Global reset and base styles */
html, body {
  background: #0b0b0b;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Ensure all media elements are responsive */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Convert 100vw to 100% for better mobile compatibility */
.w-full-vw {
  width: 100% !important;
}

/* Convert large box-shadow spreads to filter drop-shadow */
.glow-effect {
  filter: drop-shadow(0 0 20px rgba(29, 78, 216, 0.3));
}

.glow-effect-lg {
  filter: drop-shadow(0 0 30px rgba(29, 78, 216, 0.4));
}

.glow-effect-xl {
  filter: drop-shadow(0 0 40px rgba(29, 78, 216, 0.5));
}

/* Remove problematic box-shadow spreads */
.no-glow-shadow {
  box-shadow: none !important;
}

/* Ensure proper overflow handling */
.overflow-x-hidden {
  overflow-x: hidden;
}

/* Background color utility */
.bg-global {
  background-color: #0b0b0b;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #333333 #0b0b0b;
}

/* Ensure all containers respect max-width */
.container, .container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix for any elements that might cause horizontal overflow */
* {
  box-sizing: border-box;
}

/* Ensure text doesn't cause overflow */
p, h1, h2, h3, h4, h5, h6, span, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Remove any potential horizontal scroll triggers */
body, html {
  position: relative;
}

/* Ensure main content area respects boundaries */
#main, .site-main, main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix for any absolute positioned elements */
.absolute, .fixed {
  max-width: 100vw;
}

/* Responsive image handling */
.responsive-img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Ensure all sections respect container bounds */
section {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix for any grid or flex layouts */
.grid, .flex {
  max-width: 100%;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Ensure mobile viewport is respected */
  * {
    max-width: 100vw;
  }
}

/* Tablet and desktop */
@media (min-width: 769px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img, video {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  html, body {
    background: white !important;
    color: black !important;
  }
  
  .no-print {
    display: none !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Ensure proper contrast */
.text-contrast {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========================================
   ENHANCED FOOTER STYLES - GLOBAL
   ======================================== */

/* Enhanced Footer Styles */
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 80px 0 30px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 500px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(45deg, #1D4ED8, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 20px;
    display: block;
    line-height: 1.2;
}

.footer-logo:hover {
    background: linear-gradient(45deg, #7B2EFF, #C6FF3F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.footer-description {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
}

.social-link i {
    color: #ffffff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: #000000;
}

.footer-section {
    min-width: 220px;
}

.footer-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #1D4ED8, #60A5FA);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
    position: relative;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #1D4ED8;
    transform: translateX(5px);
}

.footer-links a::before {
    content: "•";
    color: #1D4ED8;
    margin-right: 12px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    transform: scale(1.2);
    color: #7B2EFF;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 30px;
    text-align: center;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1D4ED8, transparent);
}

.footer-bottom p {
    color: #a1a1aa;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 0 25px;
        margin-top: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-section {
        min-width: auto;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 50px 0 20px;
        margin-top: 0;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-content {
        gap: 40px;
    }

    .footer-logo {
        font-size: 28px;
    }

    .footer-description {
        font-size: 16px;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-links a {
        font-size: 15px;
    }
}
