/* SportID Application Styles */

/* Import component styles */
@import url('components/club-card.css');

/* Event Header */
.event-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem 0;
    margin: -1.5rem -15px 2rem -15px;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2rem 0;
    margin: -1.5rem -15px 2rem -15px;
}

/* Configuration Header */
.configuration-header {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 2rem 0;
    margin: -1.5rem -15px 2rem -15px;
}

/* Athlete Header */
.athlete-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem 0;
    margin: -1.5rem -15px 2rem -15px;
}

/* Info Cards */
.event-info-card, .team-info-card, .stats-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Results Tables */
.results-table {
    font-size: 0.9rem;
}

.results-table.team-detail {
    font-size: 0.95rem;
}

/* Place Badges */
.place-badge {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin: 0 auto;
}

.place-badge.small {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
}

.place-1 { 
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.place-2 { 
    background: linear-gradient(135deg, #e8f4fd, #b3d9ff);
    color: #0056b3;
}

.place-3 { 
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

/* Time Display */
.time-cell, .time-display {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.best-time {
    color: #28a745;
    font-weight: bold;
}

/* Attempt Containers */
.attempt-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 5px;
}

.attempt-time-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

.attempt-badge {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Track Configuration */
.track-config-name {
    font-size: 0.75rem;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.config-info {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Category Items */
.category-item {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item:last-child {
    border-bottom: none;
}

.category-badge {
    font-size: 0.75rem;
}

/* Participation Cards */
.participation-card {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.participation-card:hover {
    border-left-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Google Maps */
#map {
    height: 250px;
    width: 100%;
    border-radius: 8px;
}

/* Event List */
.event-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.event-date {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    margin-right: 1rem;
    min-width: 80px;
}

.event-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.event-sport-types {
    margin-top: 0.5rem;
}

.sport-type-group {
    margin-bottom: 0.5rem;
}

.sport-type-name {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
}

.sport-subtype-list {
    margin-top: 0.25rem;
}

.sport-badge {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.filter-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Athletes Search */
.search-header {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 2rem 0;
    margin: -1.5rem -15px 2rem -15px;
}

.search-input {
    font-size: 1.1rem;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.athlete-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.athlete-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.athlete-name {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.athlete-name:hover {
    color: #0056b3;
    text-decoration: none;
}

.loading-spinner {
    display: none;
}

.search-stats {
    font-size: 0.9rem;
    color: #6c757d;
}

.no-results {
    text-align: center;
    color: #6c757d;
    padding: 3rem 0;
}

.search-placeholder {
    text-align: center;
    color: #adb5bd;
    padding: 4rem 0;
}

/* Avatar System */
.avatar {
    -webkit-border-radius: 50% !important;
    border-radius: 50% !important;
    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
    aspect-ratio: 1/1;
    object-fit: cover;
    -webkit-appearance: none;
}

.avatar-placeholder {
    -webkit-border-radius: 50% !important;
    border-radius: 50% !important;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Avatar Sizes */
.avatar-xs, .avatar-placeholder-xs {
    width: 24px;
    height: 24px;
}

/* Custom size for lists (30px) */
.avatar-list, .avatar-placeholder-list {
    width: 30px;
    height: 30px;
}

.avatar-sm, .avatar-placeholder-sm {
    width: 40px;
    height: 40px;
}

.avatar-md, .avatar-placeholder-md {
    width: 100px;
    height: 100px;
}

/* Custom size for profile (150px) */
.avatar-profile, .avatar-placeholder-profile {
    width: 150px;
    height: 150px;
}

.avatar-lg, .avatar-placeholder-lg {
    width: 200px;
    height: 200px;
}

.avatar-xl, .avatar-placeholder-xl {
    width: 200px;
    height: 200px;
}

/* Avatar Placeholder Icon Sizes */
.avatar-placeholder-xs svg {
    width: 12px;
    height: 12px;
}

.avatar-placeholder-list svg {
    width: 16px;
    height: 16px;
}

.avatar-placeholder-sm svg {
    width: 20px;
    height: 20px;
}

.avatar-placeholder-md svg {
    width: 50px;
    height: 50px;
}

.avatar-placeholder-profile svg {
    width: 60px;
    height: 60px;
}

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

.avatar-placeholder-xl svg {
    width: 80px;
    height: 80px;
}

/* Team Name Styling - Legacy (kept for backward compatibility) */
.team-name-badge {
    color: inherit;
    text-decoration: none;
}

.team-name-badge:hover {
    color: #0056b3;
    text-decoration: none;
}

.team-name-link {
    color: inherit;
    text-decoration: none;
}

.team-name-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Legacy support for rounded-circle (override Bootstrap) */
.rounded-circle {
    -webkit-border-radius: 50% !important;
    border-radius: 50% !important;
    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
    aspect-ratio: 1/1;
}

img.rounded-circle {
    object-fit: cover;
    -webkit-appearance: none;
}

div.rounded-circle {
    flex-shrink: 0;
}

/* Child Indicator */
.child-indicator {
    display: inline-block;
    margin-left: 0.25rem;
    cursor: help;
}

.child-indicator i {
    font-size: 0.9em;
}

.child-indicator sup {
    font-size: 0.7em;
    margin-left: -0.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-header, .category-header, .configuration-header, .athlete-header, .search-header {
        margin: -1rem -15px 1.5rem -15px;
        padding: 1.5rem 0;
    }
    
    .results-table {
        font-size: 0.8rem;
    }
    
    .place-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .event-date {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        min-width: 60px;
    }
}