/* CinemAI - Modern Dark Theme Stylesheet */
   
   /* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* CSS VARIABLES */

:root {
    /* Background Colors */
    --bg-primary: #121417;
    --bg-surface: #1A1D22;
    
    /* Text Colors */
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;      
    
    /* Brand Colors */
    --accent: #3FA897;
    --accent-hover: #359680;
    --accent-text: #0F1F1B;         
    
    /* UI Colors */
    --border-subtle: #2A2F36;
    --error: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
}

/* GLOBAL STYLES */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    min-height: 100vh;
    padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* UTILITY CLASSES */

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary,
.text-muted {
    color: var(--text-secondary);
}

.text-light-grey {
    color: var(--text-secondary) !important;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--error);
}

.text-warning {
    color: var(--warning) !important;
}

.bg-primary {
    background-color: var(--accent) !important;
    color: var(--accent-text) !important;
}

.bg-secondary {
    background-color: var(--bg-surface) !important;
}

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

.bg-danger {
    background-color: var(--error) !important;
}

/* NAVIGATION */

.navbar {
    background-color: var(--bg-surface) !important;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1030;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    color: var(--accent);
    display: inline;
    vertical-align: middle;
}

.nav-link {
    color: var(--text-secondary) !important;
    margin: 0 0.75rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.nav-link i {
    color: var(--accent);
    margin-right: 0.35rem;
}

/* HERO SECTIONS */

.hero-landing {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: url(../images/hero-section-image.webp);
    background-size: cover;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 20, 23, 0) 0%, rgba(18, 20, 23, 0.5) 50%, rgba(18, 20, 23, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero-title {
    font-family: "DM Sans", sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title i {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* BUTTONS */

.btn-primary {
    background: var(--accent);
    color: var(--accent-text) !important;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--accent-text) !important;
    transform: translateY(-1px);
}

.btn-primary:focus,
.btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: none;
    background: var(--accent);
}

.btn-outline-primary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: var(--accent-text) !important;
}

.btn-outline-danger {
    border: 2px solid var(--error);
    color: var(--error);
    background: transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background: var(--error);
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.btn-secondary:hover {
    background: var(--border-subtle);
    color: var(--text-primary);
}

.btn-link {
    color: var(--accent);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--accent-hover);
}

.btn-hero {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(63, 168, 151, 0.3);
}

/* Watchlist Buttons */

.watchlist-buttons {
    display: flex;
    gap: 0.5rem;
}

.watchlist-buttons .btn,
.watchlist-buttons form {
    flex: 1;
}

.watchlist-buttons .btn,
.watchlist-buttons form button {
    width: 100%;
    height: 38px;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
}

/* CARDS */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--accent);
}

.card-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
}

.card-body {
    padding: 1.75rem;
    color: var(--text-primary);
}

.card-body h1, .card-body h2, .card-body h3,
.card-body h4, .card-body h5, .card-body h6 {
    color: var(--text-primary);
}

.card-body p,
.card-body small {
    color: var(--text-secondary);
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-subtle);
}

/* Movie Cards */

.movie-card {
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.movie-card:hover {
    border-color: var(--accent);
}

.movie-card .card-img-top {
    object-fit: cover;
    height: 320px;
    border-radius: 10px 10px 0 0;
}

.movie-card .card-body {
    flex: 1;
    max-height: 205px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    padding: 1.25rem;
}

.movie-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.movie-card .card-footer {
    margin-top: auto;
}

/* Subscription Cards */

.subscription-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subscription-card .list-unstyled {
    flex: 1;
}

.subscription-card .btn {
    margin-top: auto;
}

/* Pricing Cards */

.pricing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured {
    border-color: var(--accent);
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.pricing-header h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pricing-card .btn {
    margin-top: auto;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

/* Feature Cards */

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-card .feature-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* FORMS */

.form-control {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: var(--bg-surface);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(63, 168, 151, 0.1);
}

.form-control::placeholder {
    color: var(--text-primary);
    opacity: 0.6;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Browser autofill override */

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-surface) inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* ALERTS */

.alert {
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-info {
    background: rgba(63, 168, 151, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* BADGES */

.badge.bg-success {
    background-color: var(--accent) !important;
    color: var(--accent-text) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* SEARCH INTERFACE */

.search-container {
    margin-top: 2.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    padding: 8px;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(63, 168, 151, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.7;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 16px 20px 16px 55px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-primary) !important;
    opacity: 0.8 !important;
}

.search-btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 8px;
}

/* LINKS & TYPOGRAPHY */
.upgrade-link {
    color: var(--accent) !important;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.upgrade-link:hover {
    color: var(--accent-hover) !important;
    text-decoration: none;
}

/* SECTIONS */
.features-section {
    background: var(--bg-primary);
}

.features-section h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-section {
    background: var(--bg-surface);
}

.pricing-section h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cta-section-final {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.cta-section-final h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Email Icon Styling */
.email-icon {
    font-size: 5rem;
    color: var(--accent);
}

/* Success Icon Styling */
.success-icon {
    font-size: 5rem;
    color: var(--success);
}

/* Movie Detail Page - Rating Display */
.rating-display {
    color: var(--accent);
    font-size: 1.75rem;
}

.rating-display .vote-count {
    font-size: 1rem;
}

/* FOOTER */
footer {
    background-color: var(--bg-surface);
    padding: 2rem 0;
    margin-top: 0;
    border-top: 1px solid var(--border-subtle);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent);
}

.social-links a {
    color: var(--accent);
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-hover);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 2rem !important;
}

/* TEST MODE BANNER */

.test-mode-banner {
    background: var(--accent);
    color: var(--accent-text);
    text-align: center;
    padding: 1rem;
    margin: 0;
    margin-top: 1rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.test-mode-banner i {
    font-size: 1.1rem;
}

/* ERROR PAGES */

.error-page-container {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-icon {
    font-size: 8rem;
    color: var(--text-secondary);
    opacity: 0.3;
}

.error-code {
    font-family: "DM Sans", sans-serif;
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

/* CUSTOM SCROLLBAR */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* RESPONSIVE DESIGN - MEDIA QUERIES */

/* Medium devices (tablets) */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-hero {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    .features-section h2,
    .pricing-section h2 {
        font-size: 2rem;
    }
    
    .feature-card .feature-icon {
        font-size: 3rem;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .search-input {
        font-size: 0.95rem;
        padding: 14px 16px 14px 45px;
    }
    
    .search-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Small devices (phones) */
@media screen and (max-width: 576px) {
    body {
        padding-top: 60px;
    }
}