/* CBE Alumni Community Platform - Light Glassmorphic Styling */

/* ========================
   Root Variables & Colors
   ======================== */
:root {
    --cbe-blue-primary: #003366;
    --cbe-blue-mid: #1e40af;
    --accent-cyan: #0891b2;
    --text-body: #475569;
    /* slate-600 */
    --text-heading: #0f172a;
    /* slate-900 */
    --text-muted: #64748b;
    /* slate-500 */
    --border-light: rgba(203, 213, 225, 0.6);
    /* slate-200/60 */
}

/* ========================
   Base & Scrollbar
   ======================== */
html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(140deg, #f8fafc 0%, #f1f5f9 50%, #e0e7ff 100%);
    color: var(--text-body);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
    background-clip: content-box;
    border: 2px solid transparent;
}

/* ========================
   Glass Panels
   ======================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.08);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ========================
   Interactive Cards
   ======================== */
.interactive-card {
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 20px 40px -12px rgba(0, 51, 102, 0.10),
        0 0 0 1px rgba(59, 130, 246, 0.12);
    background: rgba(255, 255, 255, 0.88);
}

/* ========================
   Buttons
   ======================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.28s ease;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}

/* Legacy alias */


.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.28s ease;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-primary-glow:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1e40af;
    border: 1.5px solid #bfdbfe;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.28s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.12);
    transform: translateY(-1px);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.22s ease;
    backdrop-filter: blur(8px);
}

.btn-download:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    transform: scale(1.05);
}

/* ========================
   Tab Active State
   ======================== */
.tab-active {
    border-bottom: 2.5px solid #1d4ed8;
    color: #1e40af !important;
    font-weight: 700;
}

/* ========================
   Calendar Badge
   ======================== */
.calendar-badge {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(29, 78, 216, 0.18);
}

/* ========================
   Text Glow / Accent
   ======================== */
.text-glow-cyan {
    text-shadow: none;
}

/* ========================
   Animations
   ======================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 0.45s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.45s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.35s ease-out forwards;
}

/* ========================
   Gallery Grid & Photo Cards
   ======================== */
.gallery-photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #e2e8f0;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-photo-card:hover img {
    transform: scale(1.06);
}

.gallery-photo-card .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0) 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.gallery-photo-card:hover .photo-overlay {
    opacity: 1;
}

.gallery-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.2);
}

/* Album cover card */
.album-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
}

.album-card .album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.1) 60%);
}

.album-placeholder {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
}

/* ========================
   Lightbox
   ======================== */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
}

#lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

#lightbox-prev:hover,
#lightbox-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ========================
   Search / Filter Bar
   ======================== */
.filter-bar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}