/**
 * Login Modal Component Styles
 *
 * Purpose: 가입 이벤트 홍보를 위한 로그인 프롬프트 모달
 * Features:
 * - Glassmorphism 디자인
 * - 카카오 로그인 버튼
 * - 무료 강의 혜택 하이라이트
 * - 반응형 디자인 (높이 기준)
 *
 * Dependencies:
 * - Font Awesome (icons)
 *
 * Version: 1.0.0
 * Created: 2025-11-05
 */

/* ===== Modal Overlay ===== */
.login-prompt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.login-prompt-modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.login-prompt-modal.show .login-prompt-modal-content {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== Modal Content ===== */
.login-prompt-modal-content {
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0f0c29 0%, #24243e 50%, #302b63 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    color: white;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    margin: 20px 0;
}

.login-prompt-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    border-radius: 24px 24px 0 0;
}

/* ===== Header & Close Button ===== */
.login-prompt-modal-content .header {
    text-align: right;
    margin-bottom: 5px;
}

.login-prompt-modal-content .close-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-prompt-modal-content .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Modal Body ===== */
.login-prompt-modal-content .body h3 {
    margin: 10px 0 15px 0;
    font-size: 18px;
    color: white;
    font-weight: 700;
}

/* ===== Gift Icon Animation ===== */
.gift-icon {
    font-size: 32px;
    margin-bottom: 5px;
    color: #ffd700;
    animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===== Benefit Highlight Box ===== */
.benefit-highlight {
    margin: 15px 0;
    padding: 16px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.benefit-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    transition: left 0.6s ease;
}

.benefit-highlight:hover::before {
    left: 100%;
}

.benefit-highlight p {
    margin: 3px 0;
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.price-highlight {
    color: #ffd700;
    font-size: 16px;
    font-weight: 700;
}

.free-text {
    color: #4fffb8;
    font-size: 15px;
    font-weight: 700;
}

/* ===== Kakao Login Button ===== */
.kakao-login-section {
    margin-top: 0;
}

.kakao-login-btn {
    background:
        linear-gradient(135deg,
            #fee500 0%,
            #ffd700 50%,
            #fee500 100%);
    color: #2c1810;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(254, 229, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kakao-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    transition: left 0.6s ease;
}

.kakao-login-btn:hover {
    background:
        linear-gradient(135deg,
            #ffd700 0%,
            #ffed4e 50%,
            #ffd700 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(254, 229, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.kakao-login-btn:hover::before {
    left: 100%;
}

.login-note {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ===== Responsive Design (Height-based) ===== */

/* 세로로 짧은 화면 대응 (700px 이하) */
@media (max-height: 700px) {
    .login-prompt-modal-content {
        max-height: 95vh;
        padding: 20px;
        margin: 10px 0;
    }

    .login-prompt-modal-content .body h3 {
        margin: 5px 0 10px 0;
        font-size: 16px;
    }

    .gift-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .benefit-highlight {
        margin: 8px 0;
        padding: 12px;
    }

    .benefit-highlight p {
        margin: 2px 0;
        font-size: 13px;
    }

    .additional-benefits {
        display: none;
    }

    .kakao-login-btn {
        padding: 14px 24px;
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* 매우 짧은 화면 (600px 이하) */
@media (max-height: 600px) {
    .login-prompt-modal-content {
        max-height: 98vh;
        padding: 12px;
        margin: 5px 0;
    }

    .login-prompt-modal-content .body h3 {
        margin: 3px 0 8px 0;
        font-size: 15px;
    }

    .gift-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .benefit-highlight {
        margin: 6px 0;
        padding: 10px;
    }

    .benefit-highlight p {
        margin: 1px 0;
        font-size: 12px;
    }

    .additional-benefits {
        display: none;
    }

    .kakao-login-section {
        margin-top: 10px;
    }

    .kakao-login-btn {
        padding: 14px 24px;
        font-size: 15px;
        margin-bottom: 10px;
    }

    .login-note {
        font-size: 10px;
    }
}

/* 극도로 짧은 화면 (500px 이하) */
@media (max-height: 500px) {
    .login-prompt-modal-content {
        max-height: 100vh;
        padding: 10px;
        margin: 0;
        border-radius: 16px;
    }

    .login-prompt-modal-content .header {
        margin-bottom: 3px;
    }

    .login-prompt-modal-content .close-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .login-prompt-modal-content .body h3 {
        margin: 2px 0 6px 0;
        font-size: 14px;
    }

    .gift-icon {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .benefit-highlight {
        margin: 4px 0;
        padding: 8px;
    }

    .benefit-highlight p {
        margin: 0;
        font-size: 11px;
    }

    .price-highlight,
    .free-text {
        font-size: 13px;
    }

    .additional-benefits {
        display: none;
    }

    .kakao-login-section {
        margin-top: 8px;
    }

    .kakao-login-btn {
        padding: 14px 24px;
        font-size: 15px;
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .login-note {
        font-size: 9px;
    }
}
