/* STAR-ME Competition — Custom Styles */

/* ── Carousel ─────────────────────────────────────── */
.carousel-track { transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.carousel-dot.active { background-color: #f5c518; transform: scale(1.3); }

/* ── Scroll animations ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Glassmorphism card ──────────────────────────── */
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ── Nav scroll effect ───────────────────────────── */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    background: rgba(10, 22, 40, 0.99) !important;
}

/* ── Hero gradient text ──────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #f5c518 0%, #ffee58 50%, #f5c518 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero overlay ────────────────────────────────── */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.7) 50%,
        rgba(10, 22, 40, 0.4) 100%
    );
}

/* ── Section divider ─────────────────────────────── */
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(to right, #f5c518, #e5a800);
    border-radius: 2px;
}

/* ── Stat counter ────────────────────────────────── */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ── Table Styles ────────────────────────────────── */
.data-table th { background: #0a1628; color: #f5c518; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tbody tr:hover { background: rgba(245, 197, 24, 0.05); }
.data-table tbody tr:nth-child(even) { background: rgba(10,22,40,0.03); }

/* ── Badge ───────────────────────────────────────── */
.badge-active   { background: #dcfce7; color: #15803d; }
.badge-closed   { background: #fee2e2; color: #dc2626; }
.badge-upcoming { background: #dbeafe; color: #1d4ed8; }
.badge-pending  { background: #fef9c3; color: #a16207; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-rejected { background: #fee2e2; color: #dc2626; }

/* ── Team card hover ─────────────────────────────── */
.team-card:hover .team-overlay { opacity: 1; }
.team-overlay { opacity: 0; transition: opacity 0.3s ease; }

/* ── Form input focus ────────────────────────────── */
.form-input:focus { outline: none; border-color: #f5c518; box-shadow: 0 0 0 3px rgba(245,197,24,0.15); }

/* ── Video thumbnail ─────────────────────────────── */
.video-thumb { position: relative; overflow: hidden; }
.video-thumb::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 60%);
    z-index: 1;
}
.video-play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    width: 56px; height: 56px;
    background: rgba(245,197,24,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.video-play-btn:hover { transform: translate(-50%,-50%) scale(1.1); background: #f5c518; }

/* ── Admin sidebar ───────────────────────────────── */
.admin-sidebar-link.active,
.admin-sidebar-link:hover {
    background: rgba(245,197,24,0.1);
    color: #f5c518;
    border-left-color: #f5c518;
}
.admin-sidebar-link { border-left: 3px solid transparent; }

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #0a1628; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f5c518; }

/* ── Loading skeleton ────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Mobile Bottom Nav ───────────────────────────── */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
#mobile-bottom-nav a { position: relative; min-height: 56px; }
#mobile-bottom-nav a.text-gold span:last-child { display: none; }

/* ── Print Styles ────────────────────────────────── */
@media print {
    #navbar, #mobile-bottom-nav, footer, .no-print { display: none !important; }
    body { font-size: 12px; }
}
