/* AttelGO - Public Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hover effects */
.hover-shadow {
    transition: box-shadow 0.3s ease-in-out, transform 0.2s;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

/* Card enhancements */
.card {
    border: 0px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px !important;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Table improvements */
.table {
    font-size: 0.95rem;
    border-radius: 5px;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    background-color: #f8f9fa !important;
}
.table td {
    padding: 0 5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}
.table>:not(caption)>*>*{
    background-color: transparent !important;
}

/* Status badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* Competition status colors */
.status-ouvert {
    color: var(--success-color);
}

.status-clos {
    color: var(--secondary-color);
}

.status-attente {
    color: var(--warning-color);
}

.status-annule {
    color: var(--danger-color);
}

/* Result display */
.result-score {
    font-weight: 600;
    font-size: 1.1rem;
}

.ranking-position {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.ranking-position.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.ranking-position.silver {
    background: linear-gradient(135deg, #C0C0C0, #999999);
}

.ranking-position.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

/* Tab styling */
.nav-tabs .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
}

.nav-tabs .nav-link:hover {
    border-color: transparent transparent var(--primary-color);
}

/* Alert improvements */
.alert {
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Utility classes */
.text-primary-hover:hover {
    color: var(--primary-color) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Responsive tables for mobile */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.5rem;
    }
    .nav-tabs .nav-link {
        padding: 5px !important;
    }
    .table-responsive table {
        font-size: 0.5rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.25rem !important;
        font-size: 0.5rem;
        line-height: 1.2;
    }

    .table-responsive th {
        font-size: 0.55rem !important;
        white-space: nowrap;
    }

    /* Reduce medal images on mobile */
    .medaille {
        width: 12px !important;
        height: auto;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .table-responsive {
        font-size: 0.45rem;
    }

    .table-responsive table {
        font-size: 0.45rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.2rem !important;
        font-size: 0.45rem;
    }

    .table-responsive th {
        font-size: 0.5rem !important;
    }
}
