/**
 * Anasayfa Süper Lig Puan Durumu Modülü CSS
 */

/* ========================================
   MODULE CONTAINER
   ======================================== */
.home-puan-durumu-module {
    background: #fff;
    padding: 20px 0;
    margin: 20px 0;
    overflow: hidden;
}

/* ========================================
   HEADER
   ======================================== */
.hpd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hpd-icon {
    font-size: 24px;
    margin-right: 10px;
}

.hpd-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hpd-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #2c3e50;
    border-radius: 2px;
}

/* Navigation Buttons */
.hpd-nav {
    display: flex;
    gap: 10px;
}

.hpd-prev,
.hpd-next {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hpd-prev:hover,
.hpd-next:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* ========================================
   SLIDER
   ======================================== */
.hpd-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.hpd-slider {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

/* ========================================
   TEAM CARDS
   ======================================== */
.hpd-team-card {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.hpd-team-card:hover {
    transform: translateY(-5px);
}

/* Points */
.hpd-points {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
}

/* Logo */
.hpd-logo {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.hpd-team-card:hover .hpd-logo {
    transform: scale(1.1);
}

.hpd-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Color Bar */
.hpd-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    transition: height 0.3s ease;
}

.hpd-team-card:hover .hpd-bar {
    height: 6px;
}

/* ========================================
   LOADING & ERROR
   ======================================== */
.hpd-loading,
.hpd-error {
    text-align: center;
    padding: 40px 20px;
    color: #2c3e50;
    width: 100%;
}

.hpd-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top: 4px solid #2c3e50;
    border-radius: 50%;
    animation: hpd-spin 1s linear infinite;
}

@keyframes hpd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hpd-error {
    color: #e74c3c;
}

/* ========================================
   DARK MODE
   ======================================== */
body.dark-mode .home-puan-durumu-module {
    background: var(--dark-bg-primary, #121212);
}

body.dark-mode .hpd-title {
    color: #e8eaed !important;
}

body.dark-mode .hpd-title::before {
    background: #e8eaed !important;
}

body.dark-mode .hpd-prev,
body.dark-mode .hpd-next {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e8eaed !important;
}

body.dark-mode .hpd-prev:hover,
body.dark-mode .hpd-next:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode .hpd-points {
    color: #e8eaed !important;
}

body.dark-mode .hpd-logo {
    background: #2a2e35 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .hpd-loading,
body.dark-mode .hpd-error {
    color: #e8eaed !important;
}

body.dark-mode .hpd-spinner {
    border-color: rgba(255, 255, 255, 0.2) !important;
    border-top-color: #e8eaed !important;
}

body.dark-mode .hpd-error {
    color: #ff6b6b !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .home-puan-durumu-module {
        padding: 20px 0 !important;
        margin: 20px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .home-puan-durumu-module .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .hpd-header {
        margin-bottom: 15px;
        width: 100% !important;
    }
    
    .hpd-title {
        font-size: 18px;
    }
    
    .hpd-icon {
        font-size: 20px;
    }
    
    .hpd-prev,
    .hpd-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .hpd-slider-wrapper {
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .hpd-team-card {
        width: 70px;
    }
    
    .hpd-points {
        font-size: 16px;
    }
    
    .hpd-logo {
        width: 50px;
        height: 50px;
    }
    
    .hpd-slider {
        gap: 12px;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .home-puan-durumu-module {
        padding: 15px 0 !important;
        margin: 15px 0 !important;
    }
    
    .home-puan-durumu-module .container {
        padding: 0 12px !important;
    }
    
    .hpd-title {
        font-size: 16px;
    }
    
    .hpd-team-card {
        width: 60px;
    }
    
    .hpd-points {
        font-size: 14px;
    }
    
    .hpd-logo {
        width: 45px;
        height: 45px;
    }
    
    .hpd-slider {
        gap: 10px;
    }
}