/* ============================================
   LTF WEBSCORER FRONTEND STYLES v1.3
   Comprehensive styling with full customization
   ============================================ */

/* CSS VARIABLES - Customize these to match your theme */
:root {
    /* Brand Colors */
    --ltf-primary-color: #e31e24;
    --ltf-secondary-color: #000000;
    --ltf-text-color: #333333;
    --ltf-text-light: #666666;
    --ltf-background: #ffffff;
    --ltf-background-alt: #f9f9f9;
    
    /* Table Colors */
    --ltf-table-header-bg: #000000;
    --ltf-table-header-text: #ffffff;
    --ltf-table-border: #e0e0e0;
    --ltf-table-hover: #f5f5f5;
    
    /* Podium Colors */
    --ltf-gold-start: #ffd700;
    --ltf-gold-end: #ffed4e;
    --ltf-silver-start: #c0c0c0;
    --ltf-silver-end: #e8e8e8;
    --ltf-bronze-start: #cd7f32;
    --ltf-bronze-end: #e9967a;
    
    /* Typography */
    --ltf-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --ltf-title-size: 32px;
    --ltf-subtitle-size: 22px;
    --ltf-text-size: 16px;
    
    /* Spacing */
    --ltf-spacing-xs: 8px;
    --ltf-spacing-sm: 12px;
    --ltf-spacing-md: 20px;
    --ltf-spacing-lg: 30px;
    --ltf-spacing-xl: 40px;
    
    /* Borders & Shadows */
    --ltf-border-radius: 8px;
    --ltf-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --ltf-box-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CONTAINER STYLES
   ============================================ */

.ltf-ws-standings,
.ltf-ws-race-results,
.ltf-ws-athlete-card {
    margin: var(--ltf-spacing-lg) 0;
    padding: var(--ltf-spacing-md);
    font-family: var(--ltf-font-family);
    background: var(--ltf-background);
    border-radius: var(--ltf-border-radius);
    box-shadow: var(--ltf-box-shadow);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.ltf-ws-title {
    font-size: var(--ltf-title-size);
    font-weight: 700;
    margin: 0 0 var(--ltf-spacing-md) 0;
    color: var(--ltf-primary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ltf-ws-group-title {
    font-size: var(--ltf-subtitle-size);
    font-weight: 600;
    margin: var(--ltf-spacing-xl) 0 var(--ltf-spacing-md) 0;
    color: var(--ltf-secondary-color);
    padding-bottom: var(--ltf-spacing-xs);
    border-bottom: 3px solid var(--ltf-primary-color);
}

.ltf-ws-date {
    text-align: center;
    color: var(--ltf-text-light);
    font-size: 14px;
    margin-bottom: var(--ltf-spacing-md);
}

/* ============================================
   TABLE STYLES
   ============================================ */

.ltf-ws-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--ltf-spacing-lg) 0;
    background: var(--ltf-background);
    box-shadow: var(--ltf-box-shadow);
    border-radius: var(--ltf-border-radius);
    overflow: hidden;
}

/* Table Header */
.ltf-ws-table thead {
    background: var(--ltf-table-header-bg);
    color: var(--ltf-table-header-text);
}

.ltf-ws-table th {
    padding: var(--ltf-spacing-md) var(--ltf-spacing-sm);
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--ltf-primary-color);
}

.ltf-ws-table th:first-child {
    padding-left: var(--ltf-spacing-md);
}

.ltf-ws-table th:last-child {
    padding-right: var(--ltf-spacing-md);
}

/* Table Body */
.ltf-ws-table td {
    padding: var(--ltf-spacing-sm) var(--ltf-spacing-sm);
    border-bottom: 1px solid var(--ltf-table-border);
    font-size: var(--ltf-text-size);
    color: var(--ltf-text-color);
}

.ltf-ws-table td:first-child {
    padding-left: var(--ltf-spacing-md);
    font-weight: 600;
}

.ltf-ws-table td:last-child {
    padding-right: var(--ltf-spacing-md);
}

.ltf-ws-table tbody tr {
    transition: background-color 0.2s ease;
}

.ltf-ws-table tbody tr:hover {
    background: var(--ltf-table-hover);
}

.ltf-ws-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   PODIUM HIGHLIGHTING
   ============================================ */

.ltf-ws-gold {
    background: linear-gradient(135deg, var(--ltf-gold-start) 0%, var(--ltf-gold-end) 100%) !important;
    font-weight: 700 !important;
}

.ltf-ws-gold td:first-child::before {
    content: "🥇 ";
}

.ltf-ws-silver {
    background: linear-gradient(135deg, var(--ltf-silver-start) 0%, var(--ltf-silver-end) 100%) !important;
    font-weight: 600 !important;
}

.ltf-ws-silver td:first-child::before {
    content: "🥈 ";
}

.ltf-ws-bronze {
    background: linear-gradient(135deg, var(--ltf-bronze-start) 0%, var(--ltf-bronze-end) 100%) !important;
    font-weight: 600 !important;
}

.ltf-ws-bronze td:first-child::before {
    content: "🥉 ";
}

/* ============================================
   ATHLETE CARD
   ============================================ */

.ltf-ws-athlete-card {
    padding: var(--ltf-spacing-lg);
    background: var(--ltf-background);
    border: 2px solid var(--ltf-table-border);
    border-radius: var(--ltf-border-radius);
    box-shadow: var(--ltf-box-shadow-lg);
}

.athlete-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 var(--ltf-spacing-md) 0;
    color: var(--ltf-primary-color);
    text-align: center;
}

.athlete-place,
.athlete-points {
    font-size: 18px;
    margin: var(--ltf-spacing-xs) 0;
    text-align: center;
    color: var(--ltf-text-color);
}

.athlete-place strong,
.athlete-points strong {
    color: var(--ltf-secondary-color);
    font-weight: 700;
}

.athlete-races {
    list-style: none;
    padding: 0;
    margin-top: var(--ltf-spacing-lg);
}

.athlete-races li {
    padding: var(--ltf-spacing-sm) 0;
    border-bottom: 1px solid var(--ltf-table-border);
    font-size: var(--ltf-text-size);
}

.athlete-races li:last-child {
    border-bottom: none;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */

.ltf-ws-error {
    padding: var(--ltf-spacing-md);
    background: #fee;
    border: 2px solid #fcc;
    border-radius: var(--ltf-border-radius);
    color: #c00;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 768px) {
    .ltf-ws-table {
        font-size: 14px;
    }
    
    .ltf-ws-table th,
    .ltf-ws-table td {
        padding: var(--ltf-spacing-xs);
    }
    
    .ltf-ws-title {
        font-size: 24px;
    }
    
    .ltf-ws-group-title {
        font-size: 18px;
    }
    
    /* Hide less important columns on mobile */
    .ltf-ws-table th:nth-child(4),
    .ltf-ws-table td:nth-child(4) {
        display: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .ltf-ws-standings,
    .ltf-ws-race-results {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .ltf-ws-table {
        box-shadow: none;
    }
    
    .ltf-ws-table tbody tr:hover {
        background: transparent;
    }
}

/* ============================================
   CUSTOM THEME OVERRIDES
   Add your custom styles below this line
   ============================================ */
