/* ======================================================= */
/*      WHITE CARD THEME (MATCHING OPT-IN PAGE)          */
/* ======================================================= */

/* General Body & Background Styling */
body {
    font-family: 'Poppins', sans-serif;
    color: #333333; /* Dark text for readability */
    line-height: 1.6;
    
    /* Background: Light faded holiday icons (purple removed) */
    background-color: #fdfdfd;
    background-image: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), url('holiday-icons-background.png');
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-attachment: fixed, fixed;
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

/* Main App Container - THE WHITE CARD */
main.container {
    background: rgba(246, 231, 202, 0.85); /* Frosted Warm Cream */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 30px;
    box-shadow: 0 20px 45px -15px rgba(0,0,0,0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Header Styles */
header { text-align: center; }
.header-title {
    font-family: 'Baloo 2', cursive;
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.header-title .title-accent {
    color: #e02424;
}

.header-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333333; /* Grey text */
}

/* Last Updated Box - Light Grey Pill */
.last-updated-box {
    background-color: #f0e2c5;
    color: #7a6a4a;
    text-align: center;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3rem;
    display: inline-block;
    border: 1px solid #e0cfa0;
}
.last-updated-box #last-updated-date { font-weight: 700; color: #333; }


/* --- INFO BOXES (Date, Time, Ads) - LIGHT GREY STYLE --- */
.info-box, .ad-placeholder-top {
    background-color: #f8fafc; /* Very light grey */
    border-radius: 20px;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    color: #475569;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

/* Main Page Ad Placements */
.ad-placeholder-top,
.ad-placeholder-bottom {
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1; /* Dashed grey border */
    background-color: #f1f5f9;
}

.ad-placeholder-bottom {
    margin-top: 2rem;
}

.ad-placeholder-top:hover,
.ad-placeholder-bottom:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.ad-placeholder-top img, .ad-placeholder-bottom img {
    max-width: 100%; max-height: 80px; object-fit: contain;
}

/* Current Date/Time Styling */
.current-date-box, .current-time-box { padding: 1.5rem; }

.current-date-box .title, .current-time-box .title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #94a3b8; /* Muted label */
    margin-bottom: 0.5rem;
}

.current-date-box .date-display, .current-time-box .time-display {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #1e293b; /* Dark Blue-Grey */
}
.current-date-box .date-display { font-size: 1.5rem; }
.current-time-box .time-display { font-size: 2.2rem; color: #ff0000; /* Red Time for emphasis */ }

.section-title { 
    font-family: 'Poppins', sans-serif; 
    font-weight: 800; 
    font-size: 1.6rem; 
    margin-bottom: 1.5rem; 
    color: #1a1a1a; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
}

/* ================================================== */
/*           HOLIDAY CARD GRID                        */
/* ================================================== */
#holiday-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0;
    overflow: visible;
}

.holiday-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.holiday-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: var(--card-accent);
}

.holiday-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.85rem 0.9rem 0.25rem 0.9rem;
}

.holiday-card-num {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 1px;
}

.holiday-card-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.holiday-card-body {
    padding: 0 0.9rem 1rem 0.9rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.holiday-card-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.25;
}

.holiday-card-date {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.3;
}

.holiday-card-days {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--card-accent);
    margin-top: 0.35rem;
}

/* Colored accent bar at bottom — matches holiday theme color */
.holiday-card-bar {
    height: 4px;
    background: var(--card-accent);
    width: 100%;
    margin-top: auto;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 768px) {
    #holiday-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .holiday-card-icon { font-size: 1.9rem; }
    .holiday-card-name { font-size: 0.9rem; }
}

/* Responsive: 1 column on mobile */
@media (max-width: 480px) {
    #holiday-list-container {
        grid-template-columns: 1fr;
    }
}

/* Detail View Styles */
.detail-header { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 0.5rem; }
#detail-holiday-icon { font-size: 3rem; }
#detail-holiday-name { font-family: 'Poppins', sans-serif; font-size: 2.8rem; font-weight: 900; line-height: 1.2; color: #1a1a1a; }
#detail-holiday-date { font-size: 1.2rem; font-weight: 500; color: #64748b; text-align: center; }

/* Countdown Grid */
.detail-countdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.detail-countdown-box { 
    background-color: #f8fafc;
    border-radius: 18px; 
    padding: 2rem 1rem; 
    text-align: center; 
    font-family: 'Poppins', sans-serif; 
    line-height: 1; 
    border: 1px solid #e2e8f0;
}
.detail-countdown-box span:first-child { font-size: 3.5rem; font-weight: 800; color: #333; }
.detail-countdown-box span:last-child { font-size: 0.9rem; font-weight: 600; margin-top: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }

/* Market Opportunities */
.market-opportunities-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.market-opportunities-section-link { text-decoration: none; display: block; transition: all 0.3s ease; }
.market-opportunities-section-link:hover .market-opportunities-section { background-color: #f1f5f9; border-radius: 16px; padding: 1.5rem; margin: -1.5rem; margin-top: 1rem; }
#market-opportunities-container { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.market-opportunities-tag { color: #475569; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 600; border: 1px solid #e2e8f0; background: #fff; }

/* Affiliate Buttons */
.affiliate-buttons-container { display: flex; flex-direction: row; justify-content: center; gap: 1rem; margin-top: 2rem; }
.affiliate-detail-button { 
    padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 600; border-radius: 12px; transition: all 0.2s ease-in-out; 
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; border: none; cursor: pointer; font-family: 'Poppins', sans-serif;
}
.affiliate-detail-button:hover { transform: translateY(-2px); }

/* Amazon/Shop Buttons */
.affiliate-detail-button.shop, .affiliate-detail-button.amazon { 
    background-color: #f6e05e; color: #744210; box-shadow: 0 4px 10px rgba(246, 224, 94, 0.4); 
}
.affiliate-detail-button.shop:hover, .affiliate-detail-button.amazon:hover { 
    background-color: #ecc94b; box-shadow: 0 6px 15px rgba(246, 224, 94, 0.6); 
}

/* Back Button (Grey) */
.affiliate-detail-button.back { 
    background-color: #f1f5f9; 
    color: #64748b; 
    border: 1px solid #cbd5e1;
    display: block; margin: 2rem auto 0 auto; width: fit-content; 
}
.affiliate-detail-button.back:hover { background-color: #e2e8f0; color: #333; border-color: #94a3b8; }
.affiliate-detail-button.back svg { width: 1.25rem; height: 1.25rem; }

/* Holiday Page Current Date Box */
.holiday-current-date-box {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}
.holiday-current-date-box .title { font-size: 0.9rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 0.5rem; }
.holiday-current-date-box .date-display { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: #333; }

/* Detail Page Ad Placement */
.ad-placeholder-detail-top {
    background-color: #f1f5f9;
    text-align: center;
    color: #94a3b8;
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 2px dashed #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-placeholder-detail-top:hover { background-color: #e2e8f0; border-color: #94a3b8; transform: translateY(-2px); }
.ad-placeholder-detail-top.has-link { border-style: solid; }
.ad-placeholder-detail-top img { max-width: 100%; max-height: 80px; object-fit: contain; }

/* --- PRODUCT CARDS (Clean White Cards) --- */
.holiday-article { background: #ffffff; border-radius: 20px; border: 1px solid #eee8f5; padding: 1.75rem; margin: 1.5rem 0; line-height: 1.7; color: #334155; }
.holiday-article h2 { font-family: 'Poppins', sans-serif; font-size: 1.3rem; margin-bottom: 0.75rem; color: #1a1a1a; }
.holiday-article p { margin-bottom: 1rem; }
.holiday-article p:last-child { margin-bottom: 0; }
.products-section { margin: 3rem 0; }
.products-section-title { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: #333; text-align: center; margin-bottom: 2rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.product-image-container { position: relative; width: 100%; padding-top: 100%; background: #f8fafc; overflow: hidden; }
.product-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-image { transform: scale(1.1); }
.product-badge { position: absolute; top: 10px; right: 10px; background: #ff0000; color: white; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3); }
.product-info { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-name { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; line-height: 1.3; min-height: 2.6rem; }
.product-description { font-size: 0.9rem; color: #64748b; margin-bottom: 1rem; line-height: 1.5; flex-grow: 1; }
.product-footer { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.product-price { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: #16a34a; /* Green for price */ }
.product-old-price { font-size: 1rem; color: #94a3b8; text-decoration: line-through; margin-left: 0.5rem; opacity: 1; }

/* --- BUY BUTTON (RED PILL) --- */
.product-buy-btn {
    background: #ff0000; 
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px; /* Pill Shape */
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #cc0000; /* Hard shadow */
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
}
.product-buy-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 0 #cc0000; 
}
.product-buy-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #cc0000;
}

.product-network { position: absolute; bottom: 8px; left: 8px; background: rgba(255, 255, 255, 0.55); color: rgba(50, 50, 50, 0.8); padding: 0.15rem 0.45rem; border-radius: 10px; font-size: 0.6rem; font-weight: 500; backdrop-filter: blur(2px); }

/* Footer */
footer.footer-content { text-align: center; color: #333333; opacity: 1; margin-top: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; }
.footer-links a { color: #475569; text-decoration: none; font-weight: 500; transition: color 0.2s ease-in-out; }
.footer-links a:hover { color: #333; text-decoration: underline; }
.hidden { display: none !important; }

/* Advertise Section */
.advertise-section { text-align: center; padding: 2.5rem 1rem 1rem 1rem; border-top: 1px solid #e2e8f0; margin-top: 2.5rem; }
.advertise-section h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.6rem; color: #333; margin-bottom: 1rem; }
.advertise-section p { color: #64748b; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; margin-bottom: 1rem; }
.advertise-section a { color: #3b82f6; font-weight: 600; text-decoration: none; }
.advertise-section a:hover { color: #2563eb; text-decoration: underline; }
.ai-credit { font-size: 0.8rem; color: #cbd5e1; opacity: 1; margin-top: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
    .product-info { padding: 1rem; }
    .product-buy-btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
}
@media (max-width: 640px) { 
    body { padding: 1rem; } 
    main.container { padding: 1.5rem; margin-top: 1rem; } 
    .header-title { font-size: 1.9rem; } 
    .detail-countdown-grid { grid-template-columns: 1fr 1fr; } 
    .affiliate-buttons-container { flex-direction: column; align-items: center; }
    .affiliate-detail-button { width: 100%; max-width: 280px; }
}

/* ================================================== */
/*       CRITICAL FIXES FOR CLICKING & CONFETTI       */
/* ================================================== */
.confetti {
    pointer-events: none !important;
    z-index: 1 !important;
}

/* ================================================== */
/*        IN-PAGE CHECKLIST OFFER (email capture)     */
/* ================================================== */
.checklist-offer {
    background: linear-gradient(135deg, #fff8f0, #fff3e8);
    border: 2px solid #ff0000;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.1);
}
.checklist-offer-title { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: #1a1a1a; margin: 0 0 0.5rem 0; }
.checklist-offer-text { color: #475569; max-width: 520px; margin: 0 auto 1.25rem auto; font-size: 1rem; }
.checklist-offer-text strong { color: #e02424; }
.checklist-offer-urgency { font-size: 0.85rem; font-weight: 700; color: #e02424; margin-top: 0.75rem; }
.checklist-offer-form { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; max-width: 560px; margin: 0 auto; }
.checklist-offer-input {
    flex: 1 1 260px;
    padding: 0.9rem 1.25rem;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.checklist-offer-input:focus { outline: 2px solid #ff0000; border-color: transparent; }
.checklist-offer-button {
    padding: 0.9rem 1.75rem;
    border: none;
    border-radius: 50px;
    background: #ff0000;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 0 #cc0000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
}
.checklist-offer-button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #cc0000; }
.checklist-offer-button:disabled { background: #999999; box-shadow: none; cursor: not-allowed; transform: none; }
.checklist-offer-privacy { font-size: 0.8rem; color: #94a3b8; margin-top: 1rem; }
.insider-upsell-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1a1a1a;
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    margin-top: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}
.insider-upsell-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.insider-upsell-badge {
    background: #ff0000;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.insider-upsell-text {
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.4;
}
.insider-upsell-text strong {
    color: #ffffff;
}
.checklist-offer-privacy a { color: #94a3b8; text-decoration: underline; }
.checklist-offer-success-title { font-family: 'Poppins', sans-serif; font-weight: 800; color: #166534; font-size: 1.2rem; margin-bottom: 0.75rem; }
.checklist-offer-download {
    display: inline-block;
    background: #16a34a;
    color: #ffffff;
    padding: 0.9rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
@media (max-width: 640px) {
    .checklist-offer-form { flex-direction: column; }
    .checklist-offer-button { width: 100%; }
}
.affiliate-notice {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.5rem;
    font-style: italic;
}