/**
 * Süper Lig Takımları Sayfası CSS
 * 6'lı Grid Kart Tasarımı
 */

/* ========================================
   SAYFA BAŞLIĞI
   ======================================== */
.sl-page-header {
    background: linear-gradient(135deg, #1e6f9f 0%, #134e6f 100%);
    color: #fff;
    padding: 15px 0;
    margin: 0 0 30px 0;
    box-sizing: border-box;
}

.sl-page-header-inner {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.sl-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.sl-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.sl-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0px;
}

/* ========================================
   SAYFA CONTAINER
   ======================================== */
.super-lig-takimlar-page {
    padding: 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.sl-container {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* ========================================
   6'LI GRID LAYOUT
   ======================================== */
.takimlar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ========================================
   TAKIM KARTLARI
   ======================================== */
.takim-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 15px 25px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Sıra Numarası */
.takim-position {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #1e6f9f 0%, #134e6f 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(30, 111, 159, 0.3);
}

.takim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1e6f9f, #134e6f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.takim-card:hover::before {
    transform: scaleX(1);
}

.takim-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(30, 111, 159, 0.15);
    border-color: #1e6f9f;
}

/* ========================================
   TAKIM LOGO
   ======================================== */
.takim-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.takim-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.takim-card:hover .takim-logo {
    transform: scale(1.1);
}

/* ========================================
   TAKIM BİLGİLERİ
   ======================================== */
.takim-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.takim-card:hover .takim-name {
    color: #1e6f9f;
}

.takim-points {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

.takim-points strong {
    color: #1e6f9f;
    font-weight: 700;
    font-size: 15px;
}

/* Loading & Error Messages */
.loading-message,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e6f9f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #e74c3c;
    font-weight: 500;
}

/* ========================================
   DARK MODE
   ======================================== */
   
/* Sayfa Header Dark Mode */
body.dark-mode .sl-page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

body.dark-mode .sl-title {
    color: #ffffff;
}

/* Sayfa Background Dark Mode */
body.dark-mode .super-lig-takimlar-page {
    background: #0d0d0d;
}

/* Takım Kartları Dark Mode */
body.dark-mode .takim-card {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .takim-card:hover {
    background: #2a2a2a;
    border-color: #1e6f9f;
    box-shadow: 0 8px 20px rgba(30, 111, 159, 0.25);
}

body.dark-mode .takim-card::before {
    background: linear-gradient(90deg, #1e6f9f, #134e6f);
}

/* Sıra Numarası Dark Mode */
body.dark-mode .takim-position {
    background: linear-gradient(135deg, #1e6f9f 0%, #134e6f 100%);
    box-shadow: 0 2px 6px rgba(30, 111, 159, 0.4);
}

/* Takım Bilgileri Dark Mode */
body.dark-mode .takim-name {
    color: #ffffff;
}

body.dark-mode .takim-card:hover .takim-name {
    color: #4a9fd8;
}

body.dark-mode .takim-points {
    color: #b0b0b0;
}

body.dark-mode .takim-points strong {
    color: #4a9fd8;
}

/* Loading & Error Dark Mode */
body.dark-mode .loading-message {
    color: #b0b0b0;
}

body.dark-mode .error-message {
    color: #ff6b6b;
}

body.dark-mode .loading-spinner {
    border-color: #333333;
    border-top-color: #1e6f9f;
}

/* ========================================
   RESPONSIVE - 5 SÜTUN (max-width: 1200px)
   ======================================== */
@media (max-width: 1200px) {
    .sl-page-header-inner,
    .sl-container {
        width: 100%;
        max-width: 100%;
    }
    
    .takimlar-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

/* ========================================
   RESPONSIVE - 4 SÜTUN (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .takimlar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .takim-logo {
        width: 90px;
        height: 90px;
    }
}

/* ========================================
   RESPONSIVE - 3 SÜTUN (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    .sl-page-header {
        padding: 10px 0 !important;
    }
    
    .sl-page-header-inner,
    .sl-container {
        padding: 0 15px;
    }
    
    .sl-logo {
        height: 16px !important;
        max-width: 80px !important;
        width: auto !important;
    }
    
    .sl-title {
        font-size: 15px !important;
    }
    
    .sl-container {
        padding: 30px 15px;
    }
    
    .takimlar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .takim-card {
        padding: 20px 12px;
    }
    
    .takim-logo {
        width: 80px;
        height: 80px;
    }
    
    .takim-position {
        width: 26px;
        height: 26px;
        font-size: 12px;
        top: 8px;
        left: 8px;
    }
    
    .takim-name {
        font-size: 15px;
    }
    
    .takim-points {
        font-size: 12px;
    }
    
    .takim-points strong {
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE - 2 SÜTUN (max-width: 540px)
   ======================================== */
@media (max-width: 540px) {
    .sl-logo {
        height: 14px !important;
        max-width: 70px !important;
        width: auto !important;
    }
    
    .sl-title {
        font-size: 14px !important;
    }
    
    .takimlar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .takim-logo {
        width: 70px;
        height: 70px;
    }
    
    .takim-position {
        width: 24px;
        height: 24px;
        font-size: 11px;
        top: 8px;
        left: 8px;
    }
    
    .takim-name {
        font-size: 14px;
    }
    
    .takim-points {
        font-size: 11px;
    }
    
    .takim-points strong {
        font-size: 13px;
    }
}

/* ========================================
   RESPONSIVE - 1 SÜTUN (max-width: 400px)
   ======================================== */
@media (max-width: 400px) {
    .sl-header-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .sl-logo {
        height: 12px !important;
        max-width: 60px !important;
        width: auto !important;
    }
    
    .sl-title {
        font-size: 13px !important;
    }
    
    .takimlar-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .takim-card {
        padding: 25px 20px;
    }
    
    .takim-logo {
        width: 100px;
        height: 100px;
    }
}