/* SVCC Competitions Custom Stylesheet */
:root {
    --bg-dark: #090d16;
    --card-bg: rgba(15, 23, 42, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --house-flynn: #ef4444;
    --house-ridley: #22c55e;
    --house-sturt: #3b82f6;
    --house-taplin: #eab308;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Cards */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel-glow {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-glow:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px -12px rgba(59, 130, 246, 0.25);
}

/* House Accent Borders & Glows */
.border-flynn { border-color: rgba(239, 68, 68, 0.4); }
.border-ridley { border-color: rgba(34, 197, 94, 0.4); }
.border-sturt { border-color: rgba(59, 130, 246, 0.4); }
.border-taplin { border-color: rgba(234, 179, 8, 0.4); }

.glow-flynn { box-shadow: 0 0 25px -5px rgba(239, 68, 68, 0.35); }
.glow-ridley { box-shadow: 0 0 25px -5px rgba(34, 197, 94, 0.35); }
.glow-sturt { box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.35); }
.glow-taplin { box-shadow: 0 0 25px -5px rgba(234, 179, 8, 0.35); }

/* Tile Flip Animations for Wordle & Verse-le */
.tile {
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    user-select: none;
    border: 2px solid #334155;
    border-radius: 0.5rem;
    background: #1e293b;
    color: #f8fafc;
    transition: transform 0.2s, background-color 0.4s, border-color 0.4s;
}

.tile.filled {
    border-color: #64748b;
    animation: popIn 0.1s ease-in-out;
}

.tile.correct {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff;
}

.tile.present {
    background-color: #eab308 !important;
    border-color: #eab308 !important;
    color: #ffffff;
}

.tile.absent {
    background-color: #334155 !important;
    border-color: #334155 !important;
    color: #94a3b8;
}

@keyframes popIn {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes flipTile {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

.flip {
    animation: flipTile 0.5s ease-in-out forwards;
}

/* On-screen Keyboard */
.keyboard-key {
    min-width: 2.25rem;
    height: 3.25rem;
    background: #334155;
    color: #f8fafc;
    font-weight: 700;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}

.keyboard-key:hover {
    background: #475569;
}

.keyboard-key:active {
    transform: scale(0.95);
}

.keyboard-key.wide {
    min-width: 4rem;
    font-size: 0.85rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
