/* File: static/style.css */

/* --- 1. BRAND COLORS --- */
:root {
    --brand-blue: #003366;
    --brand-light: #004d99;
    --brand-accent: #ffc107; /* The "Buy" yellow */
    
    /* TYPOGRAPHY REBRAND: "Lemon Squeezy" Style */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: #f9fafb; 
    color: #1f2937; 
    -webkit-font-smoothing: antialiased; 
}

/* --- MODERN TYPOGRAPHY (Fixed Again) --- */
/* We set the default color, but allow it to be overridden by utility classes */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.02em; 
    color: #111827; /* Default dark color */
}

/* This is the fix: If a header has the text-white class, FORCE it white */
h1.text-white, h2.text-white, h3.text-white, 
h4.text-white, h5.text-white, h6.text-white {
    color: #ffffff !important;
}

/* Also fix if the parent has text-white (e.g. in Hero section) */
.text-white h1, .text-white h2, .text-white h3, 
.text-white h4, .text-white h5, .text-white h6 {
    color: #ffffff !important;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--brand-blue) !important;
}

/* Buttons: Soft and Round */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 8px; 
    padding: 10px 20px;
    letter-spacing: normal;
    text-transform: none; 
}

/* --- 2. ANIMATIONS --- */
.container {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. GENERAL COMPONENTS --- */
.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
    background-color: var(--brand-light);
    transform: translateY(-1px);
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #d1e7dd;
    color: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px auto;
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2.25rem;
        font-weight: 800;
        letter-spacing: -0.03em;
    }
}

/* =========================================
   VERTICAL GRID LAYOUT 
   ========================================= */
.scrolling-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-bottom: 20px;
}

.bundle-card {
    width: 100%;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e5e7eb; 
    border-radius: 12px;
    transition: all 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.bundle-card:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bundle-card.active {
    border: 2px solid var(--brand-blue);
    background-color: #f0f9ff; 
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1); 
    transform: scale(1);
}

.network-badge {
    background-color: #f3f4f6;
    color: #374151;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   SMART VIDEO PLAYER
   ========================================= */
.video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: black;
    border-radius: 12px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.video-wrapper:hover .video-thumbnail {
    opacity: 0.8;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    padding-left: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.video-wrapper:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #fff;
}

/* =========================================
   RENTABLE AD SPACE 
   ========================================= */
.ad-billboard {
    border: 2px dashed #e5e7eb;
    background-color: #f9fafb;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ad-billboard:hover {
    border-color: var(--brand-blue);
    background-color: #f0f9ff;
}

.ad-billboard .badge-traffic {
    background-color: #10b981; 
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    position: absolute;
    top: 12px;
    right: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* =========================================
   SMART BOTTOM NAV & FOOTER
   ========================================= */
#mobileBottomNav {
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    border-top: 1px solid #f3f4f6 !important; 
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-hidden {
    transform: translateY(100%) !important;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 12px;
    display: block;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #fff;
    padding-left: 0; 
}

/* =========================================
   HOVER EFFECTS
   ========================================= */
.hover-lift {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.hover-glow:hover {
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    color: #fff !important;
}

/* =========================================
   NEW: VOUCHER CARD IMAGE STYLING
   ========================================= */
.voucher-img-container {
    height: 140px;
    background-color: #fff;
    overflow: hidden; 
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucher-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.hover-lift:hover .voucher-img-container img {
    transform: scale(1.05);
}