/**
 * Rostr - Default Stylesheet
 * Version: 1.0.0
 */

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
    --rostr-primary: #2c3e50;
    --rostr-secondary: #3498db;
    --rostr-accent: #e74c3c;
    --rostr-success: #27ae60;
    --rostr-warning: #f39c12;
    --rostr-dark: #1a252f;
    --rostr-light: #ecf0f1;
    --rostr-gray: #95a5a6;
    --rostr-body-bg: #f8f9fa;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--rostr-body-bg);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--rostr-secondary);
    text-decoration: none;
}

a:hover {
    color: var(--rostr-primary);
    text-decoration: underline;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--rostr-primary);
    font-weight: 600;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--rostr-primary);
}

/* ============================================
   Navigation
   ============================================ */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark {
    background-color: var(--rostr-primary) !important;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: #fff;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background-color: var(--rostr-secondary);
    border-color: var(--rostr-secondary);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-dark {
    background-color: var(--rostr-primary);
    border-color: var(--rostr-primary);
}

.btn-dark:hover {
    background-color: var(--rostr-dark);
    border-color: var(--rostr-dark);
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* ============================================
   Forms
   ============================================ */
.form-label {
    font-weight: 500;
    color: var(--rostr-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rostr-secondary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-text {
    color: var(--rostr-gray);
}

/* Required field indicator */
.required::after {
    content: ' *';
    color: var(--rostr-accent);
}

/* ============================================
   Tables
   ============================================ */
.table {
    background-color: #fff;
}

.table thead th {
    background-color: var(--rostr-primary);
    color: #fff;
    border: none;
    font-weight: 500;
}

.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* ============================================
   Badges & Labels
   ============================================ */
.badge-player-status-active {
    background-color: var(--rostr-success);
}

.badge-player-status-injured {
    background-color: var(--rostr-warning);
}

.badge-player-status-suspended {
    background-color: var(--rostr-accent);
}

.badge-player-status-inactive {
    background-color: var(--rostr-gray);
}

/* ============================================
   Player Avatar
   ============================================ */
.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--rostr-light);
}

.player-avatar-lg {
    width: 80px;
    height: 80px;
}

.player-avatar-xl {
    width: 120px;
    height: 120px;
}

/* ============================================
   Club Logo
   ============================================ */
.club-logo {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

.club-logo-sm {
    max-width: 50px;
    max-height: 50px;
}

.club-logo-lg {
    max-width: 150px;
    max-height: 150px;
}

/* ============================================
   Stats Cards
   ============================================ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rostr-primary);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--rostr-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ============================================
   Color Preview (for club colours)
   ============================================ */
.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--rostr-gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--rostr-gray);
    font-weight: 500;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-rostr-primary {
    color: var(--rostr-primary) !important;
}

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

.bg-rostr-primary {
    background-color: var(--rostr-primary) !important;
}

.bg-rostr-secondary {
    background-color: var(--rostr-secondary) !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    .navbar, footer {
        display: none !important;
    }
    
    body {
        background-color: #fff;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
