/* Acil Liderlik Sistemi CSS */

.acil-liderlik-tablosu {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.acil-liderlik-tablosu h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: bold;
}

.liderlik-container {
    position: relative;
}

.liderlik-yukleniyor {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.liderlik-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.liderlik-table thead {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.liderlik-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.liderlik-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.liderlik-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.liderlik-table tbody tr.top-three {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
    font-weight: bold;
}

.liderlik-table tbody tr.top-three:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.liderlik-table .siralama {
    font-weight: bold;
    font-size: 16px;
}

.liderlik-table .kullanici-adi {
    text-align: left;
    font-weight: 500;
}

.liderlik-table .puan {
    font-weight: bold;
    color: #27ae60;
    font-size: 16px;
}

.liderlik-table .dogru {
    color: #27ae60;
    font-weight: 500;
}

.liderlik-table .yanlis {
    color: #e74c3c;
    font-weight: 500;
}

/* Kullanıcı Puanı Bölümü */
.kullanici-puani {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.kullanici-puani h3 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    font-weight: bold;
}

.puan-bilgileri {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.puan-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.puan-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.puan-deger {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #f1c40f;
}

/* Mesaj Stilleri */
.cevap-mesaj {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.cevap-mesaj.success-message {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.cevap-mesaj.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hata ve Boş Veri Mesajları */
.no-data, .error {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.error {
    color: #e74c3c;
    background: #fdf2f2;
}

/* Yenile Butonu */
.liderlik-yenile {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin: 20px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.liderlik-yenile:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Cevap Kaydetme Butonu */
.cevap-kaydet {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.cevap-kaydet:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .acil-liderlik-tablosu {
        padding: 15px;
        margin: 10px;
    }
    
    .liderlik-table {
        font-size: 12px;
    }
    
    .liderlik-table th,
    .liderlik-table td {
        padding: 8px 5px;
    }
    
    .puan-bilgileri {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cevap-mesaj {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .acil-liderlik-tablosu h2 {
        font-size: 1.5em;
    }
    
    .liderlik-table {
        font-size: 11px;
    }
    
    .liderlik-table th,
    .liderlik-table td {
        padding: 6px 3px;
    }
    
    .kullanici-puani {
        padding: 20px 15px;
    }
    
    .puan-deger {
        font-size: 20px;
    }
}

/* Newspaper Teması Uyumluluğu */
.td-main-content .acil-liderlik-tablosu {
    margin: 0;
}

.td-main-content .kullanici-puani {
    margin: 20px 0;
}

/* Loading Animasyonu */
.liderlik-yukleniyor::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
