/* Existing styles... */

/* Support Page Styles */
.faq-category {
    @apply bg-gray-900 rounded-xl p-6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    @apply flex justify-between items-center cursor-pointer py-4 px-6 bg-gray-800 rounded-lg hover:bg-gray-700 transition-colors;
}

.faq-answer {
    @apply overflow-hidden transition-all duration-300 ease-in-out;
    max-height: 0;
}

.faq-answer.open {
    max-height: 500px;
}

.search-highlight {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}

#searchInput {
    transition: all 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5);
}

/* Hero section improvements for better visibility */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Slightly lighter dark overlay */
    z-index: 0;
}

.hero-section > div {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6); /* Darker background for text container */
    padding: 3rem 4rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    font-weight: 800;
}

.hero-section p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

/* Text shadow for compatible devices */
.text-shadow {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Theme color updates - #6C4EA6 */
:root {
    --primary-color: #6C4EA6;
    --primary-dark: #5a3e8c;
    --primary-light: #7d5fb8;
    --bg-dark: #1a1625;
    --bg-card: #1f2937;
    --bg-card-light: #2d3748;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-section-iptv: #1a1625;
    --bg-section-movies: #1f1a2e;
    --bg-section-pricing: #1c1b2e;
    --bg-section-devices: #1a1828;
    --bg-section-contact: #1a1625;
    --bg-footer: #0f0f1a;
}

/* Modern theme application */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

.bg-gray-900 {
    background-color: var(--bg-card) !important;
}

/* Distinct section backgrounds */
main > section:nth-of-type(2) {
    background-color: var(--bg-section-iptv) !important;
}

main > section:nth-of-type(3) {
    background-color: var(--bg-section-devices) !important;
}

main > section:nth-of-type(4) {
    background-color: var(--bg-section-movies) !important;
}

main > section:nth-of-type(5) {
    background-color: var(--bg-section-pricing) !important;
}

main > section:nth-of-type(6) {
    background-color: var(--bg-section-contact) !important;
}

footer {
    background-color: var(--bg-footer) !important;
}

/* Ensure all sections use the theme colors */
section.bg-gray-900 {
    background-color: var(--bg-card) !important;
}

.bg-gray-800 {
    background-color: var(--bg-card-light) !important; /* Lighter than card */
}

/* Pricing cards */
.bg-gray-900 {
    background-color: var(--bg-card-light) !important;
}

/* Support card inside contact section */
#contact .bg-gray-800 {
    background-color: var(--bg-card-light) !important;
}

#contact .bg-gray-900 {
    background-color: var(--bg-card) !important;
}

.text-gray-300 {
    color: var(--text-secondary) !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

/* Improve text readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Contact button */
.bg-orange-600 {
    background-color: var(--primary-color) !important;
}

.hover\:bg-orange-700:hover {
    background-color: var(--primary-dark) !important;
}

/* Ensure contact button uses theme color */
#contact button.bg-orange-600,
#contact [type="submit"].bg-orange-600 {
    background-color: var(--primary-color) !important;
}

#contact button.bg-orange-600:hover,
#contact [type="submit"].bg-orange-600:hover {
    background-color: var(--primary-dark) !important;
}

/* Search highlight */
.search-highlight {
    background-color: rgba(108, 78, 166, 0.2);
    color: #b8a2e0;
}

/* Search input focus */
#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(108, 78, 166, 0.5);
}

/* Purchase buttons could also be updated if desired */
.purchase-button {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.purchase-button:hover {
    background-color: var(--primary-dark) !important;
}

/* Compatible Devices images blending - uniform size */
.device-image {
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.device-image:hover {
    filter: brightness(1) contrast(1.2);
    box-shadow: 0 15px 30px rgba(108, 78, 166, 0.4);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Smooth section transitions */
section:not(.netflix-hero) {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section:not(.netflix-hero).animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Movie poster styling */
.movie-poster {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-poster:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(108, 78, 166, 0.4);
}

/* Netflix-style Hero Section */
.netflix-hero {
    position: relative;
    min-height: 100vh;
}

.netflix-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.netflix-hero .drop-shadow-2xl {
    text-shadow:
        0 4px 25px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(108, 78, 166, 0.4),
        0 0 80px rgba(108, 78, 166, 0.2);
    font-weight: 900;
    letter-spacing: -0.025em;
    position: relative;
}

.netflix-hero .drop-shadow-lg {
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(108, 78, 166, 0.3);
    font-weight: 600;
}

/* Enhanced hero container */
.netflix-hero .bg-black\/50 {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(108, 78, 166, 0.3);
}

/* Button enhancements */
.netflix-hero a.bg-\[\#6C4EA6\] {
    box-shadow: 0 10px 25px rgba(108, 78, 166, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.netflix-hero a.bg-\[\#6C4EA6\]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.netflix-hero a.bg-\[\#6C4EA6\]:hover::after {
    left: 100%;
}

.netflix-hero a.bg-white\/20 {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Purple theme button styling */
.bg-\[\#6C4EA6\] {
    background-color: #6C4EA6 !important;
}

.hover\:bg-\[\#5a3e8c\]:hover {
    background-color: #5a3e8c !important;
}

/* Horizontal scrolling movies container */
.movies-scroll-container {
    position: relative;
}

.movies-scroll {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    cursor: grab;
}

.movies-scroll:active {
    cursor: grabbing;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.movies-scroll::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.movies-scroll {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.movie-item {
    flex: 0 0 auto;
    width: 12rem; /* 192px */
    transition: transform 0.3s ease;
}

.movie-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

@media (min-width: 768px) {
    .movie-item {
        width: 14rem; /* 224px */
    }
}

@media (min-width: 1024px) {
    .movie-item {
        width: 16rem; /* 256px */
    }
}

/* Content category headers */
section#trending h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 4px solid #6C4EA6;
}

/* Scroll hint styling */
.scroll-hint {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Netflix-like navigation */
nav {
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent) !important;
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(0,0,0,0.9) !important;
}

/* Improve movie poster hover effects */
.movie-poster {
    transition: all 0.3s ease;
    cursor: pointer;
}

.movie-poster:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

/* Netflix-style gradient overlays */
.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
}

/* Edge scroll indicators */
.movies-scroll-container {
    position: relative;
}

.movies-scroll-container::before,
.movies-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.movies-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent);
}

.movies-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.7), transparent);
}

.movies-scroll-container:hover::before,
.movies-scroll-container:hover::after {
    opacity: 1;
}

/* Scroll hint animation */
@keyframes edge-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.movies-scroll-container.scrollable-left::before {
    animation: edge-pulse 1.5s infinite;
}

.movies-scroll-container.scrollable-right::after {
    animation: edge-pulse 1.5s infinite;
}

/* Mobile Menu Styles */
#mobile-menu-button {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

#mobile-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

#mobile-menu {
    top: -100%;
    opacity: 0;
    transition: top 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    top: 5rem; /* 80px, height of nav */
    opacity: 1;
    display: block !important;
}
