/*
 * Water Flow — Daily Challenge Styles (Module 08)
 * High-fidelity glassmorphic casual game UI matching the reference design.
 */

.daily-page {
    background: #06172A url('../assets/images/innerpage.png') no-repeat center top / cover;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100dvh;
    padding-top: calc(var(--safe-top) + 12px);
    padding-bottom: calc(var(--safe-bottom) + 16px);
    user-select: none;
    -webkit-user-select: none;
    overflow-y: auto;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

/* Background Video (innervideo.mp4) */
.daily-bg-video {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* Ambient Underwater Caustic Light Rays Overlay */
.daily-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 5%,
        rgba(56, 189, 248, 0.26) 0%,
        rgba(14, 165, 233, 0.12) 40%,
        rgba(6, 23, 42, 0.82) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Main Content Area */
.daily__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 18px 24px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* ════════════════════════════════════
   Top Navigation Bar
   ════════════════════════════════════ */
.daily-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 2px 2px 4px;
    z-index: 10;
}

.daily-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 26, 47, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.daily-nav-btn:hover {
    background: rgba(14, 38, 68, 0.85);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(56, 189, 248, 0.35);
}

.daily-nav-btn:active {
    transform: scale(0.92);
}

.daily-coins-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(10, 26, 47, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.daily-coins-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FDE047;
    letter-spacing: 0.3px;
    font-family: inherit;
}

/* ════════════════════════════════════
   1. Daily Hero Card (Top Card)
   ════════════════════════════════════ */
.daily-hero-card {
    background: rgba(10, 26, 47, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    border-radius: 28px;
    padding: 24px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6),
                inset 0 1px 2px rgba(255, 255, 255, 0.18),
                0 0 24px rgba(0, 180, 216, 0.12);
    position: relative;
    overflow: hidden;
}

/* Subtle glass shimmer reflection highlight across the card */
.daily-hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}

/* Streak Pill */
.daily-hero-card__streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 87, 34, 0.12);
    border: 1.2px solid rgba(255, 87, 34, 0.45);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #FF7A50;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
    z-index: 2;
}

.daily-hero-card__streak-pill svg {
    filter: drop-shadow(0 0 6px rgba(255, 112, 67, 0.6));
}

/* Title & Subtitle */
.daily-hero-card__title {
    font-size: 1.68rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 12px 0 4px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.daily-hero-card__subtitle {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
    z-index: 2;
}

/* Reward Badge */
.daily-hero-card__reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1.2px solid rgba(251, 191, 36, 0.4);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.84rem;
    font-weight: 800;
    color: #FBBF24;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 22px;
    z-index: 2;
}

.daily-hero-card__reward-badge svg {
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

/* 3D Glossy Play CTA Button */
.daily-play-btn {
    width: 100%;
    max-width: 320px;
    height: 54px;
    border-radius: 20px;
    background: linear-gradient(180deg, #00D2FF 0%, #0096C7 55%, #0077B6 100%);
    border: none;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.75),
                inset 0 -3px 4px rgba(0, 0, 0, 0.35),
                0 8px 24px rgba(0, 180, 216, 0.5),
                0 4px 0 #005F73;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    z-index: 2;
}

.daily-play-btn:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.8),
                inset 0 -3px 4px rgba(0, 0, 0, 0.35),
                0 10px 28px rgba(0, 180, 216, 0.6),
                0 4px 0 #005F73;
}

.daily-play-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.75),
                inset 0 -2px 3px rgba(0, 0, 0, 0.35),
                0 4px 14px rgba(0, 180, 216, 0.45),
                0 2px 0 #005F73;
}

.daily-play-btn:disabled,
.daily-play-btn--completed {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5),
                inset 0 -3px 4px rgba(0, 0, 0, 0.3),
                0 6px 18px rgba(16, 185, 129, 0.4),
                0 3px 0 #047857;
    cursor: default;
    filter: none;
    transform: none;
}

/* ════════════════════════════════════
   2. Calendar Progress Card (Bottom Card)
   ════════════════════════════════════ */
.daily-calendar-card {
    background: rgba(10, 26, 47, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    border-radius: 28px;
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6),
                inset 0 1px 2px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.daily-calendar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}

.daily-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #38BDF8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
    padding: 0 4px;
    z-index: 2;
}

.daily-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    z-index: 2;
}

/* Day Tile Cells */
.daily-day-cell {
    aspect-ratio: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: #94A3B8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    user-select: none;
    cursor: default;
}

.daily-day-cell:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* Today's Active Cell (Distinct Cyan Neon Highlight) */
.daily-day-cell--today {
    border: 2px solid #00F5D4;
    background: rgba(0, 245, 212, 0.16);
    color: #FFFFFF;
    font-weight: 900;
    box-shadow: 0 0 16px rgba(0, 245, 212, 0.5), inset 0 0 10px rgba(0, 245, 212, 0.25);
    transform: scale(1.03);
    cursor: pointer;
    animation: dailyTodayPulse 2.5s infinite ease-in-out;
}

@keyframes dailyTodayPulse {
    0%, 100% {
        box-shadow: 0 0 14px rgba(0, 245, 212, 0.45), inset 0 0 8px rgba(0, 245, 212, 0.2);
        border-color: #00F5D4;
    }
    50% {
        box-shadow: 0 0 22px rgba(0, 245, 212, 0.75), inset 0 0 14px rgba(0, 245, 212, 0.35);
        border-color: #70FFE9;
    }
}

/* Completed Days (Emerald Checkmark Glow) */
.daily-day-cell--completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.22) 100%);
    border: 1.5px solid #10B981;
    color: #34D399;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
