/* ==========================================================================
   Ultra Modern Glassmorphism (Card Blur) Presentation Frame
   ========================================================================== */

:root {
    --accent: #0284c7; /* BRI suitable modern blue */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.15);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    /* Soft mesh gradient background */
    background: linear-gradient(135deg, #e0f2fe, #f1f5f9, #dbeafe, #e0f2fe);
    background-size: 300% 300%;
    animation: liquidGradient 18s ease infinite;
    height: 100vh;
    overflow: hidden; 
    color: #0f172a;
}

@keyframes liquidGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Add floating background orbs for enhanced glass effect */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
}
.orb-1 {
    width: 500px; height: 500px;
    background: rgba(56, 189, 248, 0.3); /* Soft Sky Blue */
    top: -150px; left: -100px;
    animation: float 10s ease-in-out infinite alternate;
}
.orb-2 {
    width: 450px; height: 450px;
    background: rgba(99, 102, 241, 0.2); /* Soft Indigo */
    bottom: -150px; right: 5%;
    animation: float 14s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(60px) scale(1.1); }
}

/* --------------------------------------------------------------------------
   1. Elevated Glass Canvas Wrapper
   -------------------------------------------------------------------------- */
.canvas-wrapper {
    padding: 3vh 4vw; 
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.presentation-container {
    /* The Authentic Glass Blur Card */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255,255,255,0.4);
    
    width: 100%;
    height: 100%;
    border-radius: 28px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* When fullscreen, expand natively and remove padding */
:fullscreen .presentation-container,
:-webkit-full-screen .presentation-container,
:-ms-fullscreen .presentation-container {
    border-radius: 0;
    padding: 0;
    border: none;
    background: #ffffff; /* Fills screen solidly */
    backdrop-filter: none;
}

/* --------------------------------------------------------------------------
   2. Carousel Images
   -------------------------------------------------------------------------- */
.carousel-inner {
    height: 100%;
    border-radius: 20px;
    background: transparent; /* Changed from white to transparent to unblock outer card blur */
    overflow: hidden;
}

.slide-img {
    object-fit: contain; 
    height: 100%;
    width: 100%;
    background-color: #ffffff; /* Moved white background strictly to only affect real image slides */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Individual shadow for images */
}

/* --------------------------------------------------------------------------
   3. Glassmorphism Navigation Arrows 
   -------------------------------------------------------------------------- */
.custom-nav-btn {
    width: 12vw; 
    opacity: 0;
    transition: opacity 0.5s ease;
}

.presentation-container:hover .custom-nav-btn {
    opacity: 1; 
}

.nav-indicator {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #334155;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-control-prev:hover .nav-indicator,
.carousel-control-next:hover .nav-indicator {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   4. Minimalist Progress Indicator Bars
   -------------------------------------------------------------------------- */
.sleek-indicators {
    bottom: -15px; 
    margin: 0;
    padding: 1rem 0;
    width: 100%;
    left: 0;
}

.sleek-indicators button {
    width: 40px !important; 
    height: 6px !important;
    border-radius: 6px !important;
    background-color: rgba(15, 23, 42, 0.2) !important; 
    border: none !important;
    margin: 0 6px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.sleek-indicators button.active {
    background-color: var(--accent) !important; 
    width: 65px !important; 
}

/* --------------------------------------------------------------------------
   5. Floating Glass Interaction Hub
   -------------------------------------------------------------------------- */
.sleek-controls {
    position: fixed;
    bottom: 30px;
    right: 35px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.control-group {
    display: flex;
    /* Glass Pill */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
    
    border-radius: 50px;
    padding: 6px 10px; 
}

.btn-sleek {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    color: #334155;
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.btn-sleek:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    transform: translateY(-2px);
}

.divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 10px 5px;
}

/* Badge specific UI */
.hint-badge .badge {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.8em 1.4em;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #334155 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Animations Override */
.animate__animated {
    --animate-duration: 0.8s; 
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .canvas-wrapper {
        padding: 4vw; 
    }
    .presentation-container {
        border-radius: 20px;
        padding: 0.7rem;
    }
    .nav-indicator {
        opacity: 0.9; 
        width: 45px; height: 45px;
    }
    .custom-nav-btn {
        opacity: 1;
    }
    .sleek-controls {
        bottom: 20px; 
        right: 20px;
    }
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
}

/* --------------------------------------------------------------------------
   6. Custom Leaderboard Slide Content
   -------------------------------------------------------------------------- */
.slide-content-wrapper {
    background: transparent;
    border-radius: 16px;
    /* Removed the opaque white background to let the outer presentation-container's blur handle the ambient coloring */
}

.title-glow {
    background: linear-gradient(to right, #0284c7, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 25px rgba(56, 189, 248, 0.25);
    letter-spacing: -1px;
}

.category-header h4 {
    letter-spacing: -0.5px;
}

.content-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 5px;
}

.content-scroll::-webkit-scrollbar {
    width: 6px;
}

.content-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Authentic Glassy Winner Card */
.winner-card {
    background: rgba(255, 255, 255, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column; /* Stack progress bar below content */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.winner-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
    border-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.55);
}

.active-winner {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 15px 45px rgba(245, 158, 11, 0.15) !important;
}

.active-winner:hover {
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.25) !important;
}

/* Score Progress Bar */
.score-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1); /* Animate growth */
}

.winner-card:hover .progress-fill {
    filter: brightness(1.1) saturate(1.2);
}

.area-badge {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
    flex-shrink: 0;
}

.growth-area .area-badge {
    background: linear-gradient(135deg, #ff52b7, #b10505); 
    box-shadow: 0 2px 8px rgba(233, 31, 75, 0.4);
}

.bo-name {
    font-size: 1.1rem;
    color: #1e293b;
    flex-grow: 1;
    text-align: left;
    margin: 0 15px;
    line-height: 1.2;
}

.bo-score {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0284c7;
    flex-shrink: 0;
}

/* Make font sizes responsive for smaller laptops */
@media (max-width: 992px) {
    .bo-name {
        font-size: 0.95rem;
        margin: 0 10px;
    }
    .bo-score {
        font-size: 1.1rem;
    }
    .area-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}
