/* vocabulary.html의 My Modal CSS를 그대로 복사한 통합 모듈 CSS */

/* 로그인 유도 메시지 배경 스타일 - 밝은 회색 배경 */
.login-prompt {
    text-align: center;
    padding: 30px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px;
    margin-bottom: 20px;
}

.login-prompt-content {
    max-width: 600px;
    margin: 0 auto;
}

.login-prompt-title {
    font-size: 18px;
    font-weight: 600;
    color: #333 !important;
    margin-bottom: 20px !important;
    padding-bottom: 8px !important;
    line-height: 1.4;
    text-align: center !important;
}

.login-prompt-description {
    font-size: 14px;
    color: #666 !important;
    margin-bottom: 35px !important;
    padding-bottom: 15px !important;
    line-height: 1.5;
    text-align: center !important;
}

.login-prompt-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    max-width: 500px;
    min-width: 370px;
    margin: 0 auto 35px auto !important;
    padding-bottom: 15px !important;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}

/* Modal 전체 배경은 원래 어두운 색 유지 */
#profileModal .modal-content {
    background: #2D2D2D !important;
    color: #E0E0E0 !important;
}

#profileModal .modal-header h3 {
    color: #E0E0E0 !important;
}

#profileModal .modal-close {
    color: #666 !important;
}

#profileModal .modal-close:hover {
    color: #333 !important;
}

.nickname-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.edit-nickname-btn {
    background: transparent;
    border: none;
    color: #007AFF;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.edit-nickname-btn:hover {
    background-color: #f0f8ff;
}

.nickname-edit-form {
    margin-top: 10px;
}

.nickname-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nickname-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.nickname-save-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.nickname-save-btn:hover {
    background: #0056CC;
}

.nickname-cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
}

.nickname-cancel-btn:hover {
    background: #545b62;
}

/* 사용자 프로필 섹션 */
.user-profile {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #007AFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-name-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.user-level-large {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.user-email {
    font-size: 0.9rem;
    color: #888;
}

.profile-email {
    font-size: 0.9rem;
    color: #666 !important;
    margin-top: 8px;
    text-align: center;
}

.edit-profile-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.edit-profile-btn:hover {
    background: #0056CC;
}

/* 로그인 프롬프트 스타일 */
.login-prompt {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px;
    margin-bottom: 20px;
}

.login-prompt-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 8px !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

.login-prompt-description {
    font-size: 1rem !important;
    color: #666 !important;
    margin: 0 !important;
}

.login-prompt-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 370px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.social-login-btn {
    width: 180px !important;
    height: 56px !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    border: none !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.google-login-btn {
    background: #4285f4 !important;
    color: white !important;
}

.apple-login-btn {
    background: #000 !important;
    color: white !important;
}

/* 통계 카드 스타일 */
.profile-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.stat-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    text-align: center;
    min-width: 100px;
    border: 1px solid #e9ecef;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    color: #F7931E;
    margin-bottom: 0.05rem;
    font-weight: 600;
}

.stat-unit {
    display: block;
    font-size: 1.05rem;
    color: #F7931E;
    font-weight: 500;
}

/* 로그인 버튼 기본 스타일 */

/* 모바일 반응형 스타일 추가 */
@media (max-width: 768px) {
    .login-prompt {
        padding: 20px 15px !important;
    }
    
    .login-prompt-title {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    .login-prompt-description {
        font-size: 0.9rem !important;
        margin-bottom: 25px !important;
    }
    
    .login-prompt-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        min-width: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .social-login-btn {
        width: 100% !important;
        max-width: 280px !important;
        height: 50px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    

}

/* 작은 모바일 화면 */
@media (max-width: 480px) {
    .login-prompt {
        padding: 15px 10px !important;
    }
    
    .login-prompt-title {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }
    
    .login-prompt-description {
        font-size: 0.85rem !important;
        margin-bottom: 20px !important;
    }
    
    .social-login-btn {
        height: 45px !important;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    body .modal .modal-content .modal-body .login-prompt .login-prompt-buttons.force-single-line button {
        height: 45px !important;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
}
