/**
 * TBF Takvim - Base Styles
 * Temel stiller ve genel kurallar
 */

/* Utility Classes */
.tbf-hidden {
    display: none !important;
}

/* Aktif Organizasyon Göstergeleri */
.tbf-org-active {
    border: 2px solid #ff4444 !important;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3) !important;
    position: relative;
    overflow: visible;
}

.tbf-active-indicator {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 16px;
    height: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbf-active-indicator-list {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 14px;
    height: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulse animasyonu */
.tbf-active-pulse {
    width: 100%;
    height: 100%;
    background: #ff4444;
    border-radius: 50%;
    animation: tbf-pulse 2s infinite;
}

@keyframes tbf-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Temel Container */
.tbf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

/* Genel Metin Stilleri */
.tbf-title {
    color: var(--tbf-text-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.tbf-subtitle {
    color: var(--tbf-text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Loading ve Empty States */
.tbf-loader,
.tbf-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--tbf-text-muted);
}

.tbf-spinner {
    border: 3px solid var(--tbf-light-gray);
    border-top: 3px solid var(--tbf-primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.tbf-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--tbf-text-muted);
    background: linear-gradient(135deg, var(--tbf-light-gray) 0%, var(--tbf-medium-gray) 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.tbf-empty-icon {
    font-size: 3em;
    opacity: 0.6;
    margin-bottom: 20px;
    display: block;
}

/* Specific Loading States */
.tbf-loading-races {
    padding: 20px;
    text-align: center;
    background: white;
    color: #6b7280;
    border-radius: 8px;
    margin: 20px 0;
}

.tbf-loading-races p {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
}

.tbf-results-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.tbf-no-races-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tbf-no-races-icon {
    font-size: 3em;
    opacity: 0.6;
    margin-bottom: 20px;
}

.tbf-no-races h5 {
    color: #495057;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.tbf-no-races p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    margin-bottom: 20px;
    display: block;
}

.tbf-empty-state h5 {
    color: #495057;
    font-size: 1.3rem;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.tbf-empty-state p {
    color: var(--tbf-text-muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== ENHANCED EMPTY STATE & ANIMATIONS ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: tbf-fade-in 0.5s ease-out;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.05) 0%, transparent 70%);
    animation: tbf-pulse-bg 3s ease-in-out infinite;
}

.empty-state .tbf-no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #2196f3;
    animation: tbf-bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.empty-state h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.empty-state p {
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0 0 25px 0;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.empty-state .tbf-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    position: relative;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
}

.empty-state .tbf-btn.secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.empty-state .tbf-btn.secondary:active {
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

/* Enhanced loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #2196f3;
    border-radius: 50%;
    animation: tbf-spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Error States */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: tbf-fade-in 0.5s ease-out;
}

.error-state::before {
    content: '⚠️';
    font-size: 48px;
    margin-bottom: 20px;
    animation: tbf-bounce 2s ease-in-out infinite;
}

.error-state h3 {
    color: #c53030;
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.error-state p {
    color: #e53e3e;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes tbf-pulse-bg {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes tbf-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes tbf-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tbf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* ===== ENHANCED LOADING ANIMATIONS ===== */

/* Modern Loading Spinner with Brand Colors */
.tbf-modern-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
}

.tbf-modern-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid #e9ecef;
    border-top: 4px solid #005AD8;
    border-radius: 50%;
    animation: tbf-spin-smooth 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.tbf-modern-spinner::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 2px solid transparent;
    border-top: 2px solid #001F5A;
    border-radius: 50%;
    animation: tbf-spin-smooth 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}

@keyframes tbf-spin-smooth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Loading State Container */
.tbf-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 31, 90, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.tbf-loading-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 90, 216, 0.03) 0%, transparent 70%);
    animation: tbf-pulse-background 3s ease-in-out infinite;
}

.tbf-loading-state .tbf-loading-content {
    position: relative;
    z-index: 2;
}

.tbf-loading-state h3 {
    color: #001F5A;
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.tbf-loading-state p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 300px;
}

.tbf-loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.tbf-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #005AD8;
    animation: tbf-dot-bounce 1.4s ease-in-out infinite both;
}

.tbf-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.tbf-loading-dot:nth-child(2) { animation-delay: -0.16s; }
.tbf-loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes tbf-dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes tbf-pulse-background {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
} 

/* Enhanced Error and No Results States */
.tbf-error-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fef7f7 0%, #fecaca 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
    border: 1px solid #fca5a5;
}

.tbf-error-enhanced .tbf-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dc2626;
    animation: tbf-shake 0.5s ease-in-out;
}

.tbf-error-enhanced h3 {
    color: #991b1b;
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.tbf-error-enhanced p {
    color: #dc2626;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

@keyframes tbf-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.tbf-no-results-enhanced {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 31, 90, 0.05);
    position: relative;
    overflow: hidden;
}

.tbf-no-results-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 90, 216, 0.02) 0%, transparent 70%);
}

.tbf-no-results-enhanced .tbf-no-results-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin: 0 auto;
}

.tbf-no-results-enhanced .tbf-no-results-icon {
    font-size: 64px;
    margin-bottom: 24px;
    color: #cbd5e1;
    display: block;
    animation: tbf-float 3s ease-in-out infinite;
}

.tbf-no-results-enhanced h3 {
    color: #001F5A;
    margin: 0 0 16px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.tbf-no-results-enhanced p {
    color: #64748b;
    margin: 0 0 24px 0;
    font-size: 1rem;
    line-height: 1.6;
}

@keyframes tbf-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
} 

/* ===== SKELETON LOADING ===== */

.tbf-skeleton-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.tbf-skeleton-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tbf-skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: tbf-skeleton-shimmer 2s infinite;
    border-radius: 6px;
    width: 60%;
}

.tbf-skeleton-badge {
    height: 16px;
    width: 80px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: tbf-skeleton-shimmer 2s infinite;
    border-radius: 8px;
}

.tbf-skeleton-body {
    padding: 16px 20px;
}

.tbf-skeleton-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.tbf-skeleton-meta-item {
    height: 14px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: tbf-skeleton-shimmer 2s infinite;
    border-radius: 4px;
}

.tbf-skeleton-meta-item:nth-child(1) { animation-delay: 0.1s; }
.tbf-skeleton-meta-item:nth-child(2) { animation-delay: 0.2s; }
.tbf-skeleton-meta-item:nth-child(3) { animation-delay: 0.3s; }

.tbf-skeleton-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tbf-skeleton-button {
    height: 32px;
    width: 80px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: tbf-skeleton-shimmer 2s infinite;
    border-radius: 6px;
}

@keyframes tbf-skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
} 