/* ----------------------------------------------------
   ROOT THEMES
---------------------------------------------------- */
:root {
    --primary: #CC3399;
    --primary-rgb: 204, 51, 153; /* Added this */
    --primary-light: #c7b7ff;
    --primary-dark: #A52A7A;
    --bg: #f9f7ff;
    --text: #333;
    --card-bg: #ffffff;
    --glow: 0 0 20px rgba(var(--primary-rgb), 0.6);
    --radius: 12px;
    --gradient: linear-gradient(135deg, #ffdd99, #cc3399);
    --color-light: #fefefe;
    --color-dark: #f0f4f8;
    --gradient-energy: linear-gradient(135deg, #f3f8ff 0%, #e0f7ff 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg: #1c1529;
    --text: #f0eaff;
    --card-bg: #291e3a;
    --glow: 0 0 20px rgba(200, 168, 255, 0.7);
    --gradient: linear-gradient(135deg, #3d2a63, #5f3ea8, #8e54c9);
}

/* ----------------------------------------------------
   GLOBAL
---------------------------------------------------- */
html {
    scroll-behavior: smooth;
/*    scroll-padding-top: 100px;*/
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    transition: background .4s, color .4s;
}

/*body[data-theme="light"] {
        --bg: var(--color-light);
        --gradient: var(--gradient-energy);
        color: #333;
    }

    body[data-theme="dark"] {
        --bg: #111;
        --gradient: linear-gradient(135deg, #222 0%, #333 100%);
        color: #eee;
    }*/

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--primary-dark);
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    padding: 12px 24px;
    box-shadow: var(--glow);
    transition: transform .2s, box-shadow .3s;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 25px rgba(142, 142, 246, 0.8);
    }

.btn-outline-primary {
    padding-bottom: 10px;
    padding-top: 10px;
}

.section {
    padding: 80px 0;
    transition: all 1s ease;
}

.section-light {
    background: var(--bg);
}

.section-dark {
    background: var(--color-dark);
}

.section-gradient {
    background: var(--gradient);
    color: #fff;
}

    .section-gradient .card-energy {
        background-color: white;
        color: #333; /* Dark text for contrast */
    }

/* ----------------------------------------------------
   BACKGROUNDS
---------------------------------------------------- */
.energy-mesh-bg {
    background-color: #ffffff;
    /* A soft blend of rose, lavender, and pale blue */
    background-image: radial-gradient(at 80% 0%, hsla(289, 100%, 96%, 1) 0px, transparent 50%), radial-gradient(at 0% 20%, hsla(255, 100%, 94%, 1) 0px, transparent 50%), radial-gradient(at 80% 50%, hsla(340, 100%, 96%, 1) 0px, transparent 50%), radial-gradient(at 0% 100%, hsla(22, 100%, 96%, 1) 0px, transparent 50%);
    background-attachment: fixed; /* Keeps the background still while you scroll */
    background-size: cover;
}

/* Ensure text remains readable on this new background */
.section-transparent {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Custom Brand Backgrounds */
.bg-primary-light {
    background-color: var(--primary-light) !important;
}

/* Subtle Backgrounds for Avatars & Badges */
.bg-primary-subtle {
    background-color: rgba(var(--primary-rgb), 0.15) !important;
}

.bg-info-subtle {
    background-color: #e0f7ff !important;
}

.bg-success-subtle {
    background-color: #e6fffa !important;
}

.bg-warning-subtle {
    background-color: #fff9db !important;
}

/* Ensure text inside subtle backgrounds remains readable */
.text-info {
    color: #0891b2 !important;
}

.text-success {
    color: #059669 !important;
}

.text-warning {
    color: #d97706 !important;
}

/* ----------------------------------------------------
   HOVER EFFECTS
---------------------------------------------------- */
/* Ensures smooth transition for the hover effect */
.group-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Visual cue that the whole box is clickable */
}

    /* On hover, lift the card and increase the glow */
    .group-hover-effect:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(204, 51, 153, 0.4); /* Stronger magenta glow */
        border-color: var(--primary);
    }

        /* Optional: Make the button look active when hovering the card */
        .group-hover-effect:hover .btn-outline-primary {
            background-color: var(--primary);
            color: white;
            box-shadow: 0 0 10px var(--primary);
        }

/* ----------------------------------------------------
   ANIMATIONS
---------------------------------------------------- */
/* Animated fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    /*transition: opacity 1s ease-out, transform 1s ease-out;*/
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glow-hover:hover {
    box-shadow: 0 0 35px rgba(142, 142, 246, 0.8);
}

/* ----------------------------------------------------
   CARDS
---------------------------------------------------- */
.card-energy {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--glow);
    transition: transform .2s;
}

    .card-energy:hover {
        transform: translateY(-6px);
    }

    .card-energy img {
        border-radius: var(--radius);
        box-shadow: var(--glow);
    }

/* ----------------------------------------------------
   TESTIMONIALS (For Pages.zip/Testimonials.razor)
---------------------------------------------------- */
.card-testimonial {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--glow);
    position: relative;
    border-left: 5px solid var(--primary);
}

    .card-testimonial .quote-icon {
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 15px;
    }

    .card-testimonial .quote-text {
        font-style: italic;
        font-size: 1.05rem;
        margin-bottom: 15px;
    }

    .card-testimonial .client-info strong {
        color: var(--primary-dark);
        display: block;
        margin-top: 5px;
    }

/* FOOTER */
.footer {
    padding: 25px;
    text-align: center;
    background: #1e1e2f;
    color: #f0f0f0;
}

    .footer a {
        color: #ffdd99; /* Soft accent for links */
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin-bottom: 8px;
    display: inline-block;
}

    .footer-link:hover {
        color: var(--primary);
        text-decoration: underline;
    }

footer {
    padding: 40px 0;
}

    footer .app-footer-dark {
        background: linear-gradient(135deg, #1e1e2f, #2a2a3f);
        color: #f0f0f0; /* Light gray text */
    }

.disclaimer-box {
    border-top: 1px solid #333;
    padding-top: 0.5rem;
}

/* Live Status Pulse Dot */
.status-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: status-ring 1.5s infinite;
}

@keyframes status-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Contact Icon Buttons */
.contact-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .contact-icon-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        color: white;
        filter: brightness(1.1);
    }

.email {
    background-color: var(--primary);
}

.facebook {
    background-color: #1877F2;
}

.instagram {
    background: linear-gradient( 45deg, #feda75, /* yellow */
    #fa7e1e, /* orange */
    #d62976, /* pink */
    #962fbf, /* purple */
    #4f5bd5 /* blue */
    );
}

.telegram {
    background-color: #0088cc;
}

.whatsapp {
    background-color: #25D366;
}

.footer-links li a:hover {
    color: var(--primary) !important;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* ----------------------------------------------------
   GRID
---------------------------------------------------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ----------------------------------------------------
   Testimonial
---------------------------------------------------- */
.card-testimonial {
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

    .card-testimonial:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
    }

.italic {
    font-style: italic;
}

/* Avatar Base Style */
.avatar-circle, .avatar-circle-sm {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
}

/* Pulse Animation for Video Play Button */
.pulse-button {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
    background-color: white;
    transition: transform 0.2s ease;
}

    .pulse-button:hover {
        transform: scale(1.1);
        background-color: var(--primary-light);
    }

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(var(--primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* Responsive Video Container */
.ratio {
    position: relative;
    width: 100%;
}

    .ratio::before {
        display: block;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        content: "";
    }

    .ratio > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Ensure the card keeps a good height on mobile */
@media (max-width: 768px) {
    .col-md-6.bg-dark {
        min-height: 250px !important;
    }
}

/* GDPR Compliance */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--primary-light);
    z-index: 10000; /* Higher than footer and nav */
    padding: 12px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

body.has-cookie-banner {
    padding-bottom: 80px; /* Adjust this to match your banner height */
}

@media (max-width: 768px) {
    body.has-cookie-banner {
        padding-bottom: 140px; /* More space for stacked mobile banner */
    }
}

.cookie-banner.d-none {
    display: none !important;
}

/* ----------------------------------------------------
   FEATURED PRODUCT STYLES
---------------------------------------------------- */
.card-featured {
    border: 2px solid var(--primary-light) !important;
    box-shadow: var(--glow) !important;
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(204, 51, 153, 0.3);
}

.featured-reason {
    background-color: var(--bg);
    border-left: 4px solid var(--primary);
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.card-content-body ul {
    list-style: none;
    padding-left: 0;
}

.card-content-body li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.category-block {
    scroll-margin-top: 100px; /* Prevents the header from covering the title when jumping to a category */
}

.product-feature-list {
    list-style: none;
    padding-left: 0;
}

    .product-feature-list li {
        position: relative;
        padding-left: 1.5rem; /* Space for the icon */
        margin-bottom: 0.5rem;
    }

        .product-feature-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 3px; /* Centers with first line of text */
            width: 16px;
            height: 16px;
            background-color: var(--primary);
            /* Using a Bootstrap Check Circle as a mask */
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-check-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-check-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E");
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-size: contain;
            mask-size: contain;
        }

/* ----------------------------------------------------
   Products Overview
---------------------------------------------------- */

/* Healy Comparison Table Styles */
/* Ensure the table scrolls smoothly on mobile */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

/* Custom shadow for the PDF section */
.btn-primary.glow-hover:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Make Obsidian Edition stand out slightly */
.product-col:last-child {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.healy-comparison-table .table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Feature column stays left-aligned */
.feature-col {
    text-align: left;
    background-color: #f8f9fa;
    width: 30%;
}

/* Vertical alignment for all cells */
.healy-comparison-table td,
.healy-comparison-table th {
    vertical-align: middle;
}

/* Add a slight hover effect to rows */
.healy-comparison-table tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.02);
}

/* Sticky header fix for better UX */
.healy-comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.accordion-button {
    background-color: white !important;
    border: 1px solid rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
}

    .accordion-button:not(.collapsed) {
        box-shadow: none;
        background-color: var(--primary) !important;
        color: white !important;
    }

        .accordion-button:not(.collapsed)::after {
            filter: brightness(0) invert(1); /* Turns the arrow white when expanded */
        }

.accordion-item {
    transition: all 0.3s ease;
}

    /* Give the expanded accordion a slight "lift" effect */
    .accordion-item:has(.show) {
        box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
    }

/* Ensure the table inside the accordion handles overflow correctly */
.accordion-body {
    overflow-x: auto;
}

    .accordion-body.bg-light {
        background-color: #f8f9fa !important; /* Light grey backdrop for the table */
    }

    /* Ensure table looks sharp inside the light background */
    .accordion-body .healy-comparison-table .table {
        border: 1px solid rgba(0,0,0,0.05);
    }

.bg-primary-dark {
    background-color: #1a1a1a; /* Matches your footer */
}

.rounded-5 {
    border-radius: 2.5rem !important;
}

.btn-lg {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .btn-lg:hover {
        transform: scale(1.05);
    }

/* ----------------------------------------------------
   Products Details
---------------------------------------------------- */

/* Custom styling for the program accordion in details */
.custom-program-accordion .accordion-item {
    border: 1px solid rgba(0,0,0,0.08) !important;
}

.custom-program-accordion .accordion-button::after {
    margin-left: initial;
}

.custom-program-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

    .custom-program-accordion .accordion-button:not(.collapsed) small {
        color: rgba(255,255,255,0.8) !important;
    }

    .custom-program-accordion .accordion-button:not(.collapsed) .badge {
        background-color: var(--primary-light);
    }

.custom-program-accordion .accordion-button.collapsed .badge {
    background-color: rgba(var(--primary-rgb), 0.15);
}

/* Breadcrumb styling */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    vertical-align: middle;
    line-height: 1;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

    .breadcrumb a:hover {
        color: var(--primary);
    }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

/* ----------------------------------------------------
   Product Recommendation
---------------------------------------------------- */

/* --- Floating Animation for Product Images --- */
.floating-anim {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Progress Bar Polish --- */
.progress {
    background-color: #e9ecef;
    overflow: visible; /* Allows the glow of the bar to show */
}

.progress-bar {
    box-shadow: 0 0 10px var(--primary);
}

@media print {
    /* Hide everything except the result card */
    nav, footer, .btn, .btn-link, .progress, .quiz-header, .breadcrumb, .no-print {
        display: none !important;
    }

    /* Reset layout for paper */
    body {
        background: white !important;
        font-size: 12pt;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Professional Card Styling */
    .card {
        border: 1px solid #eee !important;
        box-shadow: none !important;
    }

    .card-energy {
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }

    .bg-primary-subtle {
        background-color: #f0f7ff !important;
        -webkit-print-color-adjust: exact; /* Forces background color in Chrome/Safari */
    }

    /* Ensure table is legible */
    .table {
        border: 1px solid #dee2e6 !important;
    }

    th {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
    }

    main:has(.product-recommendation) > *:not(.product-recommendation) {
        display: none;
    }

    .product-recommendation {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

        /* Create a "Report" Header */
        .product-recommendation::before {
            content: "Frequency & Wellness - Personalized Device Analysis";
            display: block;
            text-align: center;
            font-weight: bold;
            font-size: 18pt;
            margin-bottom: 20px;
            color: #1a3a5f;
            border-bottom: 2px solid #1a3a5f;
            padding-bottom: 10px;
        }

        .product-recommendation img {
            max-height: 180px;
        }
}

/* ----------------------------------------------------
   WhatsApp floating button
---------------------------------------------------- */

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px; /* Icon size */
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hide text on mobile, show only icon */
.whatsapp-text {
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
    font-family: sans-serif;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: translateY(-5px);
}

/* Pulse Animation */
.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        /* Force a perfect circle */
        padding: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        /* Center the icon perfectly */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .whatsapp-text {
        display: none; /* Icon only on mobile to save space */
    }

    .whatsapp-float i {
        margin: 0;
        font-size: 30px; /* Slightly larger icon for thumb-tapping */
    }
}
