/* product-detail.css - Reusable styles for Single Application Pages */

/* --- THEME VARIABLES (Defaults) --- 
   These are overridden in the HTML of specific pages.
*/
:root {
    --theme-color: #3b82f6;
    --theme-glow: rgba(59, 130, 246, 0.5);
    --theme-dark: #1e3a8a;
}

/* --- HERO SECTION --- */
.pd-hero {
    position: relative;
    height: 90vh; /* Cinematic height */
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background: #020617;
}

.pd-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
    z-index: 0;
}

/* Gradient Overlay based on Theme Color */
.pd-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient goes from solid dark to transparent theme tint */
    background: linear-gradient(to right, #020617 30%, rgba(2, 6, 23, 0.6) 100%);
    z-index: 1;
}
.pd-hero-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 50%, var(--theme-glow) 0%, transparent 60%);
    opacity: 0.3;
}

/* Theme Text Utilities */
.text-theme { color: var(--theme-color) !important; }
.bg-theme { background-color: var(--theme-color) !important; }

/* Buttons */
.btn-theme-glow {
    background: var(--theme-color);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 20px var(--theme-glow);
    transition: 0.3s;
    font-weight: 600;
}
.btn-theme-glow:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--theme-glow);
}

/* Floating Glass Card in Hero */
.glass-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.float-anim {
    animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- PROBLEM / SOLUTION SECTION --- */
.image-stack {
    position: relative;
    padding: 20px;
}
.image-stack .main-img {
    position: relative;
    z-index: 1;
}
.floating-badge {
    position: absolute;
    bottom: -10px;
    right: 0px;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 2;
    text-align: center;
    border: 4px solid var(--bg-body);
}
body.dark-mode .floating-badge {
    border-color: #0f172a;
}

/* --- VIDEO SECTION --- */
.video-glass-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px; /* Slightly larger than inner radius for border effect */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
body.dark-mode .video-glass-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}
.text-shadow {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- FEATURE GRID --- */
.bg-glass-dark {
    background: #0f172a; /* Fallback */
    background: linear-gradient(180deg, rgba(15,23,42,0.5) 0%, rgba(var(--theme-color), 0.05) 100%);
    position: relative;
}
body.dark-mode .bg-glass-dark {
    background: rgba(0,0,0,0.2);
}

.feature-card-detail {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
body.dark-mode .feature-card-detail {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255,255,255,0.05);
}

.feature-card-detail:hover {
    transform: translateY(-10px);
    border-color: var(--theme-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
    color: var(--theme-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: 0.3s;
}
.feature-card-detail:hover .icon-wrapper {
    background: var(--theme-color);
    color: white;
}

/* --- PRICING --- */
.pricing-card-detail {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
body.dark-mode .pricing-card-detail {
    background: #1e293b;
    border-color: #334155;
}

/* Hover Action for ALL cards */
.pricing-card-detail:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Featured (Annual) Style */
.pricing-card-detail.featured {
    border-color: #0f172a; /* Dark border */
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
body.dark-mode .pricing-card-detail.featured {
    background: #1e293b;
    border-color: #fff;
}

/* POPULAR (Semi-Annual) Style - Bold */
.pricing-card-detail.popular {
    border: 2px solid var(--theme-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: scale(1.02); /* Slightly larger by default */
    z-index: 2;
}
.pricing-card-detail.popular:hover {
    transform: scale(1.02) translateY(-10px); /* Keep scale on hover */
    box-shadow: 0 25px 60px rgba(var(--theme-color), 0.15);
}

.price-tag {
    display: flex;
    align-items: baseline;
    margin: 15px 0;
}
.price-tag .currency { font-size: 1.2rem; font-weight: 600; margin-right: 4px; }
.price-tag .amount { font-size: 3rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.price-tag .period { color: var(--text-muted); font-weight: 500; }

body.dark-mode .amount { color: white; }

/* Horizontal Contact Box */
.glass-contact-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.glass-contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
body.dark-mode .glass-contact-box {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255,255,255,0.05);
}

.icon-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.from-left { transform: translateX(-50px); }
.from-left.active { transform: translateX(0); }

.from-right { transform: translateX(50px); }
.from-right.active { transform: translateX(0); }


.scale-on-hover {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .scale-on-hover:hover {
        transform: scale(1.15);
    }

/* Ensure container acts as a flex parent for centering */
.video-glass-wrapper .video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- DARK MODE FIXES FOR NEW MODULES --- */

/* 1. Fix Module Cards Background */
body.dark-mode .module-card {
    background: rgba(30, 41, 59, 0.6); /* Dark Blue/Gray */
    border-color: rgba(255, 255, 255, 0.1);
}

    body.dark-mode .module-card .text-dark {
        color: #fff !important; /* Force prices to be white */
    }

    /* 2. Fix Active State for Module Cards */
    body.dark-mode .module-card.active {
        background: rgba(59, 130, 246, 0.15); /* Slight blue tint */
        border-color: var(--theme-color);
    }

/* 3. Fix "Select Plan" Buttons (Quarterly & Annual) */
/* These were using btn-outline-dark which disappears on dark backgrounds */
body.dark-mode .btn-outline-dark {
    color: #cbd5e1;
    border-color: #475569;
}

    body.dark-mode .btn-outline-dark:hover {
        background-color: #cbd5e1;
        color: #0f172a;
    }

/* 4. Fix Pricing Text Colors */
body.dark-mode .text-dark {
    color: #fff !important;
}

/* 5. Fix Toggle Switch Unchecked State */
body.dark-mode .module-switch .form-check-input {
    background-color: #475569;
    border-color: #475569;
}