/* ==========================================
   KARTIKA - Zorluk Seçim Modalı Stilleri
   ========================================== */

/* Modal Overlay */
#difficultyModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#difficultyModal.active {
    display: flex;
}

/* Modal İçerik */
.difficulty-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    position: relative;
    animation: difficultyModalIn 0.4s ease;
}

@keyframes difficultyModalIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Başlık */
.difficulty-modal-content h2 {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* Zorluk Kartları Container */
.difficulty-selection {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Zorluk Kartı */
.difficulty-card {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.difficulty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.difficulty-card.easy::before {
    background: #4CAF50;
}

.difficulty-card.normal::before {
    background: #FF9800;
}

.difficulty-card.hard::before {
    background: #F44336;
}

.difficulty-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.difficulty-card.easy:hover {
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.difficulty-card.normal:hover {
    border-color: rgba(255, 152, 0, 0.6);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

.difficulty-card.hard:hover {
    border-color: rgba(244, 67, 54, 0.6);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.2);
}

/* İkon */
.difficulty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

/* İsim */
.difficulty-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

/* Açıklama */
.difficulty-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

/* Detay (kill sayısı, deste çarpanı) */
.difficulty-detail {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.08);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-top: 0.5rem;
}

/* Kapat Butonu */
.difficulty-modal-content .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.difficulty-modal-content .close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   MOBİL UYUM
   ========================================== */

@media (max-width: 600px) {
    .difficulty-modal-content {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }

    .difficulty-modal-content h2 {
        font-size: 1.3rem;
    }

    .difficulty-selection {
        flex-direction: column;
        align-items: center;
    }

    .difficulty-card {
        min-width: unset;
        max-width: 280px;
        width: 100%;
        padding: 1rem;
    }

    .difficulty-icon {
        font-size: 2rem;
    }

    .difficulty-name {
        font-size: 1rem;
    }
}
