/**
 * 운명이당 - 사주클럽 인증 모달 스타일
 */

/* 로그인 모달 오버레이 */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 모달 컨테이너 */
.auth-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 닫기 버튼 */
.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 로고/아이콘 영역 */
.auth-modal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* 타이틀 */
.auth-modal-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 소셜 로그인 버튼 컨테이너 */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 소셜 로그인 버튼 공통 스타일 */
.social-login-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.social-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-login-btn:active {
    transform: translateY(0);
}

/* 구글 로그인 */
.google-login {
    background: white;
    color: #333;
}

/* 카카오 로그인 */
.kakao-login {
    background: #FEE500;
    color: #000000;
}

/* 네이버 로그인 */
.naver-login {
    background: #03C75A;
    color: white;
}

/* 로그인 정보 표시 영역 */
.user-info-container {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    color: white;
    text-align: center;
}

.user-info-container.active {
    display: block !important;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 헤더 로그인 버튼 */
.header-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 25px;
    color: var(--text-gold, #D4AF37);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.header-login-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 480px) {
    .auth-modal {
        padding: 40px 30px;
    }

    .auth-modal-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .auth-modal-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .social-login-btn {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .header-login-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
