/* ===== YETKİLİ PANELİ CSS MODÜLÜ ===== */
/* Premium design system for Yetkili (Authority) panel views */
/* Uses --theme-* variables from site.css for automatic dark mode support */

/* ==========================================================================
   1. LAYOUT & CONTAINERS
   ========================================================================== */

.yt-page {
    background: var(--theme-bg);
    padding: var(--spacing-lg) 0;
    font-family: 'Inter', sans-serif;
}

.yt-page .container-fluid {
    max-width: 1600px;
}

/* ==========================================================================
   2. PAGE HEADER - Premium gradient hero banner
   ========================================================================== */

.yt-header {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xxl);
    padding: var(--spacing-3xl) var(--spacing-xl);
    text-align: center;
    color: #fff;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, #0f172a 0%, var(--akdeniz-mavi) 60%, var(--akdeniz-turuncu) 140%);
    box-shadow: 0 20px 50px rgba(10, 77, 140, 0.25);
}

.yt-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--akdeniz-turuncu), #fff, var(--akdeniz-turuncu));
    background-size: 200% 100%;
    animation: yt-shimmer 4s ease-in-out infinite;
}

.yt-header::after {
    content: '';
    position: absolute;
    top: -50%; right: -15%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(232, 119, 34, 0.08);
    filter: blur(60px);
    pointer-events: none;
}

@keyframes yt-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.yt-header__icon {
    width: 72px; height: 72px;
    margin: 0 auto var(--spacing-md);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.yt-header__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.yt-header__subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.yt-header__actions {
    margin-top: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Compact header variant */
.yt-header--compact {
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.yt-header--compact .yt-header__title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.yt-header--compact .yt-header__subtitle {
    margin: 0;
    max-width: none;
}

/* ==========================================================================
   3. STAT CARDS - Mini dashboard statistics
   ========================================================================== */

.yt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.yt-stat {
    background: var(--theme-card-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.yt-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--akdeniz-mavi);
    transition: height var(--transition-normal);
}

.yt-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.yt-stat:hover::before {
    height: 4px;
    background: var(--gradient-accent);
}

.yt-stat--success::before { background: var(--success-color); }
.yt-stat--warning::before { background: var(--warning-color); }
.yt-stat--danger::before { background: var(--danger-color); }
.yt-stat--info::before { background: var(--info-color); }
.yt-stat--secondary::before { background: var(--theme-text-muted); }

.yt-stat__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    line-height: 1.1;
    margin-bottom: var(--spacing-xs);
}

.yt-stat--success .yt-stat__value { color: var(--success-color); }
.yt-stat--warning .yt-stat__value { color: var(--warning-color); }
.yt-stat--danger .yt-stat__value { color: var(--danger-color); }
.yt-stat--info .yt-stat__value { color: var(--info-color); }

.yt-stat__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mini stat row (horizontal) */
.yt-stat-mini {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-xs);
}

.yt-stat-mini__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.yt-stat-mini__icon--primary { background: rgba(10, 77, 140, 0.1); color: var(--akdeniz-mavi); }
.yt-stat-mini__icon--success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.yt-stat-mini__icon--warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.yt-stat-mini__icon--danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.yt-stat-mini__icon--info { background: rgba(14, 165, 233, 0.1); color: var(--info-color); }

[data-theme="dark"] .yt-stat-mini__icon--primary { background: rgba(59, 130, 246, 0.15); }
[data-theme="dark"] .yt-stat-mini__icon--success { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .yt-stat-mini__icon--warning { background: rgba(245, 158, 11, 0.15); }
[data-theme="dark"] .yt-stat-mini__icon--danger { background: rgba(239, 68, 68, 0.15); }
[data-theme="dark"] .yt-stat-mini__icon--info { background: rgba(14, 165, 233, 0.15); }

.yt-stat-mini__value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    line-height: 1;
}

.yt-stat-mini__label {
    font-size: 0.7rem;
    color: var(--theme-text-muted);
    font-weight: 600;
}

/* ==========================================================================
   4. CARDS - Premium content cards
   ========================================================================== */

.yt-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    transition: box-shadow var(--transition-normal);
}

.yt-card:hover {
    box-shadow: var(--shadow-md);
}

.yt-card__header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    background: var(--theme-card-bg);
}

.yt-card__header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
}

.yt-card__header-title i {
    color: var(--akdeniz-mavi);
    opacity: 0.6;
}

.yt-card__body {
    padding: var(--spacing-xl);
}

.yt-card__footer {
    padding: var(--spacing-md) var(--spacing-xl);
    border-top: 1px solid var(--theme-border);
    background: var(--theme-card-footer-bg);
}

/* Sport card variant */
.yt-sport-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.yt-sport-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--akdeniz-mavi);
}

.yt-sport-card__image {
    height: 160px;
    object-fit: cover;
    width: 100%;
}

.yt-sport-card__placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.08), rgba(232, 119, 34, 0.06));
    color: var(--akdeniz-mavi);
    font-size: 3rem;
    opacity: 0.5;
}

[data-theme="dark"] .yt-sport-card__placeholder {
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.2), rgba(232, 119, 34, 0.1));
}

.yt-sport-card__body {
    padding: var(--spacing-lg);
    flex: 1;
}

.yt-sport-card__footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--theme-border);
    display: grid;
    gap: var(--spacing-xs);
}

/* Kort card variant */
.yt-kort-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
}

.yt-kort-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.yt-kort-card__header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   5. TABLES - Premium data tables with gradient headers
   ========================================================================== */

.yt-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.yt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.yt-table thead th {
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.06), rgba(10, 77, 140, 0.02));
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--theme-text-secondary);
    border-bottom: 2px solid var(--theme-border);
    white-space: nowrap;
}

[data-theme="dark"] .yt-table thead th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
}

.yt-table tbody tr {
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--theme-border);
}

.yt-table tbody tr:last-child {
    border-bottom: none;
}

.yt-table tbody tr:hover {
    background: var(--theme-table-row-hover);
    box-shadow: inset 3px 0 0 var(--akdeniz-turuncu);
}

.yt-table tbody td {
    padding: var(--spacing-md) var(--spacing-lg);
    vertical-align: middle;
    color: var(--theme-text-primary);
}

.yt-table tbody td:first-child {
    font-weight: 600;
}

/* ==========================================================================
   6. BADGES & STATUS INDICATORS
   ========================================================================== */

.yt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.yt-badge--success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}
.yt-badge--danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}
.yt-badge--warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
.yt-badge--info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}
.yt-badge--secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}
.yt-badge--primary {
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.15), rgba(10, 77, 140, 0.08));
    color: var(--akdeniz-mavi);
}
.yt-badge--orange {
    background: linear-gradient(135deg, rgba(232, 119, 34, 0.15), rgba(232, 119, 34, 0.08));
    color: var(--akdeniz-turuncu);
}

[data-theme="dark"] .yt-badge--success { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
[data-theme="dark"] .yt-badge--danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
[data-theme="dark"] .yt-badge--warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
[data-theme="dark"] .yt-badge--info { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
[data-theme="dark"] .yt-badge--secondary { background: rgba(255, 255, 255, 0.08); color: #94a3b8; }

/* ==========================================================================
   7. BUTTONS - Premium action buttons
   ========================================================================== */

.yt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.yt-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.yt-btn--primary {
    background: var(--akdeniz-mavi);
    color: #fff;
}
.yt-btn--primary:hover { background: var(--akdeniz-koyu-mavi); color: #fff; }

.yt-btn--orange {
    background: var(--akdeniz-turuncu);
    color: #fff;
}
.yt-btn--orange:hover { background: var(--akdeniz-turuncu-koyu); color: #fff; }

.yt-btn--success {
    background: var(--success-color);
    color: #fff;
}
.yt-btn--success:hover { background: #059669; color: #fff; }

.yt-btn--danger {
    background: var(--danger-color);
    color: #fff;
}

.yt-btn--outline {
    background: transparent;
    border: 2px solid var(--theme-border-strong);
    color: var(--theme-text-secondary);
}
.yt-btn--outline:hover {
    background: var(--theme-surface-hover);
    border-color: var(--akdeniz-mavi);
    color: var(--akdeniz-mavi);
}

.yt-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.yt-btn--ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.yt-btn--white {
    background: #fff;
    color: var(--akdeniz-mavi);
    box-shadow: var(--shadow-md);
}
.yt-btn--white:hover { color: var(--akdeniz-koyu-mavi); }

.yt-btn--sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: var(--radius-md);
}

.yt-btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.yt-btn--icon {
    width: 38px; height: 38px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* Quick action tiles */
.yt-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
    text-align: center;
}

.yt-quick-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--akdeniz-turuncu);
    color: var(--akdeniz-turuncu);
}

.yt-quick-action i {
    font-size: 1.5rem;
    color: var(--akdeniz-mavi);
    transition: color var(--transition-normal);
}

.yt-quick-action:hover i {
    color: var(--akdeniz-turuncu);
}

/* ==========================================================================
   8. FORMS - Enhanced form controls
   ========================================================================== */

.yt-form-group {
    margin-bottom: var(--spacing-lg);
}

.yt-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.yt-input,
.yt-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--theme-input-border);
    background: var(--theme-input-bg);
    color: var(--theme-input-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.yt-input:focus,
.yt-select:focus {
    border-color: var(--akdeniz-mavi);
    box-shadow: 0 0 0 4px var(--theme-focus-ring);
    outline: none;
}

.yt-input::placeholder {
    color: var(--theme-input-placeholder);
}

/* Floating label integration */
.yt-form-floating {
    position: relative;
}

.yt-form-floating .form-control,
.yt-form-floating .form-select {
    border-radius: var(--radius-lg);
    border: 2px solid var(--theme-input-border);
    background: var(--theme-input-bg);
    color: var(--theme-input-text);
}

.yt-form-floating .form-control:focus,
.yt-form-floating .form-select:focus {
    border-color: var(--akdeniz-mavi);
    box-shadow: 0 0 0 4px var(--theme-focus-ring);
}

/* ==========================================================================
   9. FILTERS - Premium filter bars
   ========================================================================== */

.yt-filters {
    background: var(--theme-card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--theme-border);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-xs);
}

.yt-filters .form-label,
.yt-filters .yt-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-text-muted);
    margin-bottom: 6px;
}

.yt-filters .form-control,
.yt-filters .form-select {
    border-radius: var(--radius-md);
    border: 2px solid var(--theme-border);
    background: var(--theme-input-bg);
    color: var(--theme-input-text);
    font-weight: 500;
    padding: 10px 14px;
    transition: all var(--transition-fast);
}

.yt-filters .form-control:focus,
.yt-filters .form-select:focus {
    border-color: var(--akdeniz-mavi);
    box-shadow: 0 0 0 3px var(--theme-focus-ring);
}

/* ==========================================================================
   10. PAGINATION
   ========================================================================== */

.yt-pagination .page-link {
    border: none;
    background: transparent;
    color: var(--theme-text-muted);
    font-weight: 700;
    margin: 0 2px;
    border-radius: var(--radius-md) !important;
    padding: 8px 14px;
    transition: all var(--transition-fast);
}

.yt-pagination .page-item.active .page-link {
    background: var(--akdeniz-mavi) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(10, 77, 140, 0.3);
}

.yt-pagination .page-link:hover {
    background: var(--theme-surface-hover);
    color: var(--theme-text-primary);
}

/* ==========================================================================
   11. EMPTY STATES
   ========================================================================== */

.yt-empty {
    text-align: center;
    padding: var(--spacing-4xl) var(--spacing-xl);
}

.yt-empty__icon {
    width: 100px; height: 100px;
    margin: 0 auto var(--spacing-lg);
    background: var(--theme-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--theme-text-muted);
    opacity: 0.5;
}

.yt-empty__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: var(--spacing-sm);
}

.yt-empty__text {
    color: var(--theme-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   12. MODALS - Premium styled modals
   ========================================================================== */

.yt-modal .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--theme-modal-bg);
    box-shadow: 0 25px 60px var(--theme-shadow-color);
}

.yt-modal .modal-header {
    background: linear-gradient(135deg, #0f172a 0%, var(--akdeniz-mavi) 100%);
    color: #fff;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: none;
}

.yt-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.yt-modal .modal-body {
    padding: var(--spacing-xl);
    color: var(--theme-text-primary);
}

.yt-modal .modal-footer {
    border-top: 1px solid var(--theme-border);
    background: var(--theme-modal-footer-bg);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ==========================================================================
   13. PROFILE CARD - Used in KullaniciGecmisi
   ========================================================================== */

.yt-profile {
    position: relative;
    z-index: 1;
    background: var(--theme-card-bg);
    border-radius: 28px;
    box-shadow: 0 20px 50px var(--theme-shadow-color);
    overflow: hidden;
    border: 1px solid var(--theme-border);
}

.yt-profile__sidebar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: var(--spacing-3xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-profile__avatar {
    width: 150px; height: 150px;
    border-radius: 30%;
    border: 4px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    transition: transform 0.4s;
}

.yt-profile__avatar:hover {
    transform: scale(1.05);
}

.yt-profile__avatar-placeholder {
    width: 150px; height: 150px;
    border-radius: 30%;
    background: rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 3rem;
}

.yt-profile__status {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 24px; height: 24px;
    border-radius: 8px;
    border: 3px solid #fff;
}

.yt-profile__content {
    padding: var(--spacing-3xl);
}

.yt-profile__name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--theme-text-primary);
    letter-spacing: -0.5px;
}

/* Info fields */
.yt-info-field {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--theme-border);
}

.yt-info-field:last-child {
    border-bottom: none;
}

.yt-info-field__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.yt-info-field__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

/* ==========================================================================
   14. TABS - Premium navigation tabs
   ========================================================================== */

.yt-tabs {
    background: var(--theme-card-bg);
    padding: 6px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-xs);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yt-tabs .nav-link {
    border-radius: var(--radius-lg);
    padding: 10px 20px;
    color: var(--theme-text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none !important;
    transition: all var(--transition-fast);
}

.yt-tabs .nav-link.active {
    background: var(--akdeniz-mavi) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(10, 77, 140, 0.3);
}

.yt-tabs .nav-link:hover:not(.active) {
    background: var(--theme-surface-hover);
    color: var(--theme-text-primary);
}

/* ==========================================================================
   15. PREMIUM TABLE FEATURES - Row borders, avatars
   ========================================================================== */

.yt-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.1), rgba(232, 119, 34, 0.08));
    display: flex; align-items: center; justify-content: center;
    color: var(--akdeniz-mavi);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

[data-theme="dark"] .yt-avatar {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(232, 119, 34, 0.12));
}

.yt-avatar--sm { width: 32px; height: 32px; font-size: 0.7rem; border-radius: 8px; }
.yt-avatar--lg { width: 48px; height: 48px; font-size: 1rem; border-radius: 14px; }

.yt-avatar img {
    width: 100%; height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

/* ==========================================================================
   16. KORT GRID - Court status grid (KortDurumlari)
   ========================================================================== */

.yt-kort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    padding: var(--spacing-md);
}

.yt-kort-cell {
    border-radius: var(--radius-md);
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 2px solid transparent;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.yt-kort-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--theme-shadow-color);
}

.yt-kort-cell--empty {
    background: linear-gradient(135deg, #d4edda, #e8f5e9);
    border-color: var(--success-color);
    color: #155724;
}

.yt-kort-cell--occupied {
    background: linear-gradient(135deg, #f8d7da, #fce4ec);
    border-color: var(--danger-color);
    color: #721c24;
}

.yt-kort-cell--maintenance {
    background: linear-gradient(135deg, #fff3cd, #fff8e1);
    border-color: var(--warning-color);
    color: #856404;
}

.yt-kort-cell--course {
    background: linear-gradient(135deg, #e8daef, #f3e5f5);
    border-color: #9333ea;
    color: #6c3483;
}

[data-theme="dark"] .yt-kort-cell--empty {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    color: #6ee7b7;
}
[data-theme="dark"] .yt-kort-cell--occupied {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    color: #fca5a5;
}
[data-theme="dark"] .yt-kort-cell--maintenance {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
    color: #fcd34d;
}
[data-theme="dark"] .yt-kort-cell--course {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(147, 51, 234, 0.08));
    color: #c084fc;
}

/* ==========================================================================
   17. PERMISSION PILLS
   ========================================================================== */

.yt-permission {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition-fast);
    cursor: help;
}

.yt-permission:hover { transform: scale(1.15); }

.yt-permission--attendance { background: rgba(10, 77, 140, 0.1); color: var(--akdeniz-mavi); }
.yt-permission--approve { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.yt-permission--register { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.yt-permission--transfer { background: rgba(14, 165, 233, 0.1); color: var(--info-color); }
.yt-permission--list { background: var(--theme-bg-alt); color: var(--theme-text-secondary); }

[data-theme="dark"] .yt-permission--attendance { background: rgba(59, 130, 246, 0.15); }
[data-theme="dark"] .yt-permission--approve { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .yt-permission--register { background: rgba(245, 158, 11, 0.15); }
[data-theme="dark"] .yt-permission--transfer { background: rgba(14, 165, 233, 0.15); }
[data-theme="dark"] .yt-permission--list { background: rgba(255, 255, 255, 0.06); }

/* ==========================================================================
   18. YOKLAMA (ATTENDANCE) SWITCH
   ========================================================================== */

.yt-yoklama-switch {
    display: inline-flex;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-full);
    padding: 3px;
    background: var(--theme-bg-alt);
}

.yt-yoklama-switch .btn-check:checked + .yt-yoklama-btn--present {
    background: var(--success-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.yt-yoklama-switch .btn-check:checked + .yt-yoklama-btn--absent {
    background: var(--danger-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.yt-yoklama-btn {
    border: none !important;
    opacity: 0.35;
    transition: all var(--transition-fast);
    border-radius: var(--radius-full) !important;
    padding: 6px 14px;
}

.btn-check:checked + .yt-yoklama-btn {
    opacity: 1;
    transform: scale(1.05);
}

/* ==========================================================================
   19. ATTENDANCE MATRIX (YoklamaGecmisi)
   ========================================================================== */

.yt-matrix-cell {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    font-size: 0.85rem;
}

.yt-matrix-cell--present {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.yt-matrix-cell--absent {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

.yt-matrix-cell--none {
    background: var(--theme-bg-alt);
    color: var(--theme-text-muted);
    opacity: 0.3;
}

/* ==========================================================================
   20. PROGRESS BARS
   ========================================================================== */

.yt-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--theme-bg-alt);
    overflow: hidden;
}

.yt-progress__bar {
    height: 100%;
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.yt-progress__bar--success { background: var(--success-color); }
.yt-progress__bar--warning { background: var(--warning-color); }
.yt-progress__bar--danger { background: var(--danger-color); }

/* ==========================================================================
   21. INFO ROWS & STATUS DOTS (KursiyerGecmisi)
   ========================================================================== */

.yt-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--surface-bg-sunken);
}

.yt-info-row__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.yt-info-row__value {
    font-weight: 600;
    color: var(--theme-text-primary);
}

.yt-status-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    flex-shrink: 0;
}

.yt-status-dot--success { background: var(--success-color); }
.yt-status-dot--danger { background: var(--danger-color); }
.yt-status-dot--warning { background: var(--warning-color); }
.yt-status-dot--info { background: var(--info-color); }

/* ==========================================================================
   22. ANIMATIONS
   ========================================================================== */

.yt-fade-in {
    animation: ytFadeIn 0.5s ease-out;
}

.yt-fade-up {
    animation: ytFadeUp 0.6s ease-out;
}

.yt-slide-in {
    animation: ytSlideIn 0.5s ease-out;
}

@keyframes ytFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ytFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ytSlideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   22. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 992px) {
    .yt-profile__sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: var(--spacing-xl);
    }

    .yt-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .yt-header--compact {
        text-align: center;
        justify-content: center;
    }

    .yt-kort-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .yt-header {
        padding: var(--spacing-xl) var(--spacing-md);
        border-radius: var(--radius-xl);
    }

    .yt-header__title {
        font-size: 1.3rem;
    }

    .yt-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .yt-stat__value {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   23. UTILITY HELPERS
   ========================================================================== */

.yt-text-xs { font-size: 0.65rem; }
.yt-text-sm { font-size: 0.78rem; }
.yt-ls-wide { letter-spacing: 0.5px; }
.yt-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-license-plate {
    background: #1e293b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-size: 0.9rem;
}

[data-theme="dark"] .yt-license-plate {
    background: rgba(255, 255, 255, 0.15);
}

/* ID badge */
.yt-id-badge {
    background: var(--theme-card-bg);
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    flex-direction: column;
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-xs);
}

.yt-id-badge__label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--akdeniz-mavi);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yt-id-badge__value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 800;
    color: var(--theme-text-primary);
}

/* Spinner */
.yt-spinner {
    width: 44px; height: 44px;
    border: 4px solid var(--theme-border);
    border-top-color: var(--akdeniz-mavi);
    border-radius: 50%;
    animation: ytSpin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    display: inline-block;
}

@keyframes ytSpin {
    to { transform: rotate(360deg); }
}

/* Count-down badge */
.yt-countdown {
    font-weight: 800;
    color: var(--akdeniz-turuncu);
}

/* Link styling in tables */
.yt-user-link {
    color: var(--akdeniz-mavi) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.yt-user-link:hover {
    color: var(--akdeniz-turuncu) !important;
    text-decoration: underline !important;
}
