/* ============================================
   PILA - THEME LAYER
   Dark-Only Design | 60-30-10 Color Rule
   60%: Black #000000 | 30%: Neon Green #CCFF00 (components) | 10%: White #CAC1BD (text)

   NOTE: Color variables are defined in app.css.
   This file provides supplementary component styles,
   special components, and animations only.
   ============================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ============================================
   HIGHLIGHT / ACTIVE STATE STYLES
   ============================================ */

.btn-highlight {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #000000;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-highlight:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #000000;
    filter: brightness(0.85);
}

.active-state,
.is-active {
    background-color: var(--brand-primary-light);
    border-left: 3px solid var(--brand-primary);
}

.badge-highlight {
    background-color: var(--brand-primary);
    color: #000000;
}

/* ============================================
   QUEUE CARDS STYLING
   ============================================ */

.bg-primary.bg-opacity-10 {
    background-color: var(--brand-primary-light) !important;
    border-left: 3px solid var(--brand-primary);
}

.bg-secondary.bg-opacity-10 {
    background-color: var(--brand-secondary-light) !important;
    border-left: 3px solid var(--brand-secondary);
}

.bg-warning.bg-opacity-10 {
    background-color: var(--brand-warning-light) !important;
    border-left: 3px solid var(--brand-warning);
}

.bg-danger.bg-opacity-10 {
    background-color: var(--brand-error-light) !important;
    border-left: 3px solid var(--brand-error);
}

.bg-success.bg-opacity-10 {
    background-color: var(--brand-success-light) !important;
    border-left: 3px solid var(--brand-success);
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.form-check-label,
.form-label {
    color: var(--text-primary) !important;
}

.form-check-label small,
.form-check-label .small {
    color: var(--text-secondary) !important;
    display: block;
    font-size: 0.875rem;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.lead {
    color: var(--text-secondary) !important;
    font-weight: 400;
}

.card-text {
    color: var(--text-secondary) !important;
}

small,
.small {
    color: var(--text-secondary) !important;
}

small.text-muted,
.small.text-muted,
.form-text,
.text-muted.small,
.text-muted small {
    color: var(--text-secondary) !important;
    opacity: 0.9;
}

.card-body small,
.card small {
    color: var(--text-secondary) !important;
}

.card-body small.text-muted,
.card .text-muted.small {
    color: var(--text-secondary) !important;
    opacity: 1;
}

.text-muted.d-block,
small.d-block.text-muted {
    color: var(--text-secondary) !important;
}

/* ============================================
   BORDERS & DIVIDERS
   ============================================ */

.border {
    border-color: var(--border-color) !important;
}

hr {
    border-color: var(--border-color);
    opacity: 1;
}

/* ============================================
   SPECIAL COMPONENTS
   ============================================ */

/* Tournament Cards */
.tournament-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.tournament-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

/* Court Display */
.court-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s ease;
}

.court-card.active {
    border-color: var(--brand-success);
    background-color: var(--brand-success-light);
}

/* Live Match Indicator */
.live-indicator {
    background-color: var(--brand-primary);
    color: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px var(--brand-primary-light);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Stats Display */
.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

.fade-in {
    animation: thFadeIn 0.3s ease-in;
}

@keyframes thFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: thSlideIn 0.3s ease-out;
}

@keyframes thSlideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Smooth transitions on interactive elements */
button,
.btn,
.card,
.form-control,
.form-select {
    transition: all 0.2s ease;
}

/* Hover lift effect for interactive cards */
.card.interactive:hover {
    box-shadow: var(--shadow-lg);
}
