/**
 * TBF Takvim - Components
 * Butonlar, kartlar, badges, tabs ve diğer bileşenler
 */

/* ===== BUTONLAR ===== */
.tbf-btn,
.tbf-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--tbf-border-radius);
    background: var(--tbf-primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--tbf-transition);
    text-align: center;
    line-height: 1.2;
}

.tbf-btn:hover,
.tbf-button:hover {
    box-shadow: var(--tbf-box-shadow-hover);
}

.tbf-btn.primary {
    background: var(--tbf-primary-color);
}

.tbf-btn.secondary {
    background: var(--tbf-secondary-color);
}

.tbf-btn.success {
    background: #27ae60;
}

.tbf-btn.danger {
    background: #e74c3c;
}

/* Disabled buttons */
.tbf-btn.disabled,
.tbf-btn[disabled] {
    background: linear-gradient(180deg, #8d9fb7 0%, #cfd4db 100%);
    cursor: not-allowed;
    pointer-events: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--tbf-transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.tbf-btn.disabled:hover,
.tbf-btn[disabled]:hover {
    background: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
}

/* Detay Butonu */
.tbf-details-btn,
.tbf-org-detail-btn {
    background: linear-gradient(135deg, var(--tbf-primary-color) 0%, var(--tbf-secondary-color) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--tbf-transition);
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.tbf-details-btn:hover,
.tbf-org-detail-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    background: #005a87;
    text-decoration: none;
    color: white;
}

.tbf-details-btn:active,
.tbf-org-detail-btn:active {
    box-shadow: 0 3px 12px rgba(0, 124, 186, 0.3);
}

/* Filter Butonları */
.tbf-filter-btn {
    background: var(--tbf-light-gray);
    border: 1px solid var(--tbf-medium-gray);
    color: var(--tbf-text-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--tbf-transition);
    font-weight: 500;
    margin: 5px;
    white-space: nowrap;
}

.tbf-filter-btn:hover {
    background: var(--tbf-medium-gray);
    box-shadow: var(--tbf-box-shadow);
}

.tbf-filter-btn.active {
    background: var(--tbf-primary-color);
    color: white;
    border-color: var(--tbf-primary-color);
}

/* View Butonları */
.tbf-view-btn {
    background: white;
    border: 1px solid var(--tbf-medium-gray);
    color: var(--tbf-text-color);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--tbf-transition);
    font-size: 0.9rem;
}

.tbf-view-btn:hover {
    background-color: var(--tbf-light-gray);
}

.tbf-view-btn.active {
    background-color: var(--tbf-primary-color);
    color: white;
    border-color: var(--tbf-primary-color);
}

/* ===== KARTLAR ===== */
.tbf-card {
    background: white;
    border: 1px solid var(--tbf-medium-gray);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--tbf-box-shadow);
    transition: var(--tbf-transition);
}

.tbf-card:hover {
    box-shadow: var(--tbf-box-shadow-hover);
}

.tbf-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tbf-text-color);
    margin-bottom: 15px;
}

.tbf-card-content {
    color: var(--tbf-text-muted);
    line-height: 1.6;
}

/* ===== BADGES ===== */
.tbf-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badges */
.tbf-status-draft { background:#6c757d; color:#fff; }
.tbf-status-open { background:#28a745; color:#fff; }
.tbf-status-closed { background:#ff9800; color:#fff; }
.tbf-status-completed { background:#007bff; color:#fff; }
.tbf-status-cancelled { background:#dc3545; color:#fff; }

/* Disiplin Badges */
.tbf-discipline-badge {
    background: var(--tbf-discipline-default);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    transition: var(--tbf-transition);
}

.tbf-discipline-badge:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tbf-discipline-badge.tbf-discipline-yol { 
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.tbf-discipline-badge.tbf-discipline-mtb { 
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.tbf-discipline-badge.tbf-discipline-bmx { 
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.tbf-discipline-badge.tbf-discipline-pist { 
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.tbf-org-badge,
.tbf-race-type-badge,
.tbf-race-distance-badge,
.tbf-race-status-badge,
.tbf-discipline-badge,
.tbf-status-draft,
.tbf-status-open,
.tbf-status-closed,
.tbf-status-completed,
.tbf-status-cancelled {
    display:inline-flex;
    align-items:center;
    gap:4px;
}

/* ===== TABS SİSTEMİ ===== */
.tbf-tabs {
    display: flex;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
}

.tbf-tab-link,
.tbf-tab-btn {
    background: none;
    border: none;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.tbf-tab-link:hover,
.tbf-tab-btn:hover {
    background: #f8f9fa;
    color: #3498db;
}

.tbf-tab-link.active,
.tbf-tab-btn.active {
    color: #3498db;
    background: #f8f9fa;
}

.tbf-tab-link.active::after,
.tbf-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 3px 3px 0 0;
}

.tbf-tab-content {
    min-height: 400px;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: none;
    padding: 30px;
}

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

.tbf-tab-content-inner {
    width: 100%;
}

/* ===== INFO GRIDS ===== */
.tbf-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tbf-info-item {
    background: var(--tbf-light-gray);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--tbf-medium-gray);
}

.tbf-info-label {
    font-size: 0.8rem;
    color: var(--tbf-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tbf-info-value {
    font-size: 1rem;
    color: var(--tbf-text-color);
    font-weight: 600;
} 