/**
 * TBF Takvim - Race
 * Yarış stilleri ve race cards
 */

/* ===== RACE DAY TABS ===== */
.tbf-race-day-tabs {
    width: 100%;
    margin-top: 20px;
}

.tbf-race-day-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.tbf-race-day-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.tbf-race-day-btn:hover {
    background-color: var(--tbf-secondary-color);
    color: white;
    border-color: var(--tbf-secondary-color);
    box-shadow: var(--tbf-box-shadow);
}

.tbf-race-day-btn.active {
    background: var(--tbf-primary-color);
    border-color: var(--tbf-primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.tbf-race-day-content {
    width: 100%;
}

.tbf-race-day-panel {
    display: none;
    width: 100%;
}

.tbf-race-day-panel.active {
    display: block;
}

/* ===== RACE CARDS ===== */
.tbf-day-races-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tbf-race-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tbf-race-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.tbf-race-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.tbf-race-name,
.tbf-race-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tbf-race-time,
.tbf-race-card-time {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
}

.tbf-race-card-body {
    padding: 20px;
}

.tbf-race-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tbf-race-type-badge, 
.tbf-race-distance-badge, 
.tbf-race-status-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbf-race-type-badge {
    background: #e3f2fd;
    color: #1565c0;
}

.tbf-race-distance-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tbf-race-details {
    margin-top: 15px;
}

.tbf-race-locations {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.tbf-race-location {
    font-size: 0.9em;
    color: #495057;
    line-height: 1.4;
}

.tbf-race-location strong {
    color: #2c3e50;
}

/* Race Categories */
.tbf-race-categories {
    margin-top: 15px;
}

.tbf-race-categories strong {
    color: #2c3e50;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.tbf-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tbf-category-chip {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tbf-race-extra-info {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tbf-race-elevation {
    font-size: 0.9rem;
    color: #495057;
}

.tbf-race-card-footer {
    padding:16px 20px;
    border-top:1px solid #e9ecef;
    background:#fafbfc;
    display:flex;
    justify-content:flex-end;
}

.tbf-race-detail-link {
    background: var(--tbf-primary-color);
    color:#fff;
    padding:8px 14px;
    border-radius:20px;
    font-size:0.85rem;
    font-weight:600;
    text-decoration:none;
    transition:all 0.3s ease;
}

.tbf-race-detail-link:hover {
    background: var(--tbf-primary-dark);
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

/* ===== RACE TABS ===== */
.tbf-race-tabs {
    background: white;
    border-radius: var(--tbf-border-radius);
    box-shadow: var(--tbf-box-shadow);
    border: 1px solid var(--tbf-medium-gray);
    overflow: hidden;
}

.tbf-tab-buttons {
    display: flex;
    background: var(--tbf-light-gray);
    border-bottom: 1px solid var(--tbf-medium-gray);
    overflow-x: auto;
}

.tbf-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--tbf-dark-gray);
    transition: none;
    white-space: nowrap;
}

.tbf-tab-btn:hover {
    background: rgba(var(--tbf-primary-color), 0.1);
    color: var(--tbf-primary-color);
}

.tbf-tab-btn.active {
    background: var(--tbf-primary-color);
    color: white;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.3);
}

.tbf-tab-panel {
    display: none;
    padding: 25px;
    animation: none;
}

.tbf-tab-panel.active {
    display: block;
}

.tbf-tab-panel h4 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    color: var(--tbf-primary-color);
    font-weight: 600;
}

.tbf-tab-panel h5 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--tbf-text-color);
    font-weight: 600;
}

/* ===== RACE RESULTS ===== */
.tbf-race-results {
    margin-top: 30px;
}

.tbf-results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--tbf-box-shadow);
}

.tbf-results-table th,
.tbf-results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--tbf-light-gray);
}

.tbf-results-table th {
    background: var(--tbf-primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tbf-results-table tr:hover {
    background: var(--tbf-light-gray);
}

/* ===== RACE FILES ===== */
.tbf-race-files {
    margin-top: 25px;
}

.tbf-file-card {
    background: white;
    border: 1px solid var(--tbf-medium-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--tbf-box-shadow);
    transition: var(--tbf-transition);
    position: relative;
    overflow: hidden;
}

.tbf-file-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tbf-primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tbf-file-card:hover {
    border-color: var(--tbf-primary-color);
    box-shadow: var(--tbf-box-shadow-hover);
}

.tbf-file-card:hover::before {
    transform: scaleY(1);
}

.tbf-file-icon-large {
    font-size: 2.5rem;
    margin-right: 15px;
    color: var(--tbf-primary-color);
    opacity: 0.8;
}

.tbf-file-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.tbf-file-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tbf-text-color);
    margin: 0;
}

.tbf-file-description {
    color: var(--tbf-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tbf-file-actions {
    display: flex;
    gap: 10px;
}

.tbf-file-btn {
    background: var(--tbf-primary-color);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tbf-transition);
    text-decoration: none;
    display: inline-block;
}

.tbf-file-btn:hover {
    background: var(--tbf-secondary-color);
    color: white;
    text-decoration: none;
} 

/* === HOVER DETAY GÖRÜNÜRLÜĞÜ === */
.tbf-race-details,
.tbf-race-extra-info,
.tbf-race-categories {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.tbf-race-card:hover .tbf-race-details,
.tbf-race-card:hover .tbf-race-extra-info,
.tbf-race-card:hover .tbf-race-categories {
    opacity: 1;
    max-height: 600px; /* yeterli yüksek limit */
} 