/**
 * Thai Pronunciation Trainer - Gender Selection Popup
 */

.tpt-gender-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    animation: genderFadeIn 0.3s ease;
    padding: 16px;
    box-sizing: border-box;
}

.tpt-gender-modal-overlay.active {
    display: flex;
}

@keyframes genderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tpt-gender-popup {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 32px;
    max-width: 100%;
    width: 460px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
    animation: genderSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Header */
.tpt-gender-header {
    text-align: center;
    margin-bottom: 24px;
}

.tpt-gender-icon {
    font-size: 48px;
    display: block;
}

.tpt-gender-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

/* Info section */
.tpt-gender-info {
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.tpt-gender-info-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 12px 0;
}

.tpt-gender-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tpt-gender-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
}

.tpt-gender-info-list li strong {
    color: white;
}

.tpt-gender-info-icon {
    flex-shrink: 0;
}

/* Subtitle */
.tpt-gender-subtitle {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0 0 16px 0;
    text-align: center;
}

/* Buttons */
.tpt-gender-buttons {
    display: flex;
    gap: 12px;
}

.tpt-gender-btn {
    flex: 1;
    padding: 16px 12px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tpt-gender-btn-male {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.tpt-gender-btn-male:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.tpt-gender-btn-female {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}

.tpt-gender-btn-female:hover {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.tpt-gender-btn:active {
    transform: scale(0.98);
}

.tpt-gender-btn-icon {
    font-size: 28px;
}

.tpt-gender-btn-label {
    font-size: 15px;
    font-weight: 600;
}

.tpt-gender-btn-thai {
    font-size: 12px;
    opacity: 0.75;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .tpt-gender-popup {
        padding: 24px 20px;
    }
    
    .tpt-gender-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .tpt-gender-title {
        font-size: 20px;
    }
    
    .tpt-gender-info {
        padding: 14px;
        margin-bottom: 20px;
    }
    
    .tpt-gender-info-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .tpt-gender-info-list li {
        font-size: 13px;
    }
    
    .tpt-gender-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .tpt-gender-btn {
        padding: 14px;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    .tpt-gender-btn-icon {
        font-size: 24px;
    }
    
    .tpt-gender-btn-thai {
        display: none;
    }
}