/**
 * Premium Features CSS
 * 프리미엄 전용 기능 UI 스타일
 */

/* ========================================
   프리미엄 잠금 타임프레임 탭
   ======================================== */

.timeframe-tab.premium-locked {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.3);
}

.timeframe-tab.premium-locked:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
}

.premium-lock-icon {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.8;
}

/* 프리미엄 사용자는 잠금 해제 */
body.premium-user .timeframe-tab.premium-locked {
    opacity: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

body.premium-user .timeframe-tab.premium-locked:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
}

body.premium-user .premium-lock-icon {
    display: none;
}

/* ========================================
   프리미엄 기능 안내 배너
   ======================================== */

.premium-feature-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    animation: pulse-glow-subtle 3s infinite;
}

@keyframes pulse-glow-subtle {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
        border-color: rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
        border-color: rgba(255, 193, 7, 0.5);
    }
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
}

.notice-text strong {
    display: block;
    color: #FFC107;
    font-size: 15px;
    margin-bottom: 5px;
}

.notice-text p {
    color: #ccc;
    font-size: 13px;
    margin: 0;
}

.btn-upgrade-small {
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-upgrade-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* 프리미엄 사용자는 안내 숨김 */
body.premium-user .premium-feature-notice {
    display: none !important;
}

/* ========================================
   프리미엄 툴팁 (간단한 알림)
   ======================================== */

.premium-tooltip {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 152, 0, 0.95));
    color: #000;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    animation: tooltipFadeIn 0.3s ease, tooltipPulse 1.5s ease infinite;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tooltipPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.6);
    }
}

/* 프리미엄 사용자는 툴팁 숨김 */
body.premium-user .premium-tooltip {
    display: none !important;
}

/* ========================================
   프리미엄 업그레이드 모달
   ======================================== */

.premium-upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.premium-upgrade-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

/* 간소화 버전 (워터마크 스타일) */
.premium-upgrade-modal.premium-simple {
    max-width: 400px;
    border-radius: 16px;
}

.premium-upgrade-modal.premium-simple .premium-modal-content {
    padding: 30px 25px;
}

.premium-upgrade-modal.premium-simple .premium-modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.premium-upgrade-modal.premium-simple h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.premium-upgrade-modal.premium-simple .premium-modal-message {
    font-size: 14px;
    margin-bottom: 20px;
}

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

.premium-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    z-index: 1;
}

.premium-modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    color: white;
    transform: scale(1.1);
}

.premium-modal-content {
    padding: 40px 30px;
    text-align: center;
}

.premium-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.premium-modal-content h2 {
    color: #FFC107;
    font-size: 24px;
    margin-bottom: 15px;
}

.premium-modal-message {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.premium-features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.premium-features-list li {
    padding: 12px 0;
    color: #aaa;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-features-list li:last-child {
    border-bottom: none;
}

.premium-features-list li::before {
    content: '✅';
    font-size: 16px;
    flex-shrink: 0;
}

.premium-price-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.premium-price-label {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.premium-price {
    color: #FFC107;
    font-size: 32px;
    font-weight: bold;
}

/* 간소화 가격 표시 */
.premium-price-simple {
    margin: 20px 0;
}

.premium-price-simple .price-amount {
    color: #FFC107;
    font-size: 28px;
    font-weight: bold;
}

.premium-price-note {
    color: #888;
    font-size: 12px;
    margin-top: 8px;
}

.btn-upgrade-primary {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-upgrade-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.5);
}

.premium-modal-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 12px;
}

/* ========================================
   알림 모달 프리미엄 잠금
   ======================================== */

.notif-card.premium-locked {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.notif-card.premium-locked::after {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0.8;
}

.notif-card.premium-locked:hover {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.3);
}

.notif-card.premium-locked .notif-badge {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: #000;
}

/* 프리미엄 사용자는 잠금 해제 */
body.premium-user .notif-card.premium-locked {
    opacity: 1;
    cursor: pointer;
}

body.premium-user .notif-card.premium-locked::after {
    display: none;
}

/* ========================================
   프리미엄 배지
   ======================================== */

.premium-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.premium-badge::before {
    content: '💎';
    font-size: 12px;
}

/* ========================================
   모바일 반응형
   ======================================== */

@media (max-width: 768px) {
    .premium-upgrade-modal {
        max-width: 95%;
        border-radius: 15px;
    }

    .premium-modal-content {
        padding: 30px 20px;
    }

    .premium-modal-content h2 {
        font-size: 20px;
    }

    .premium-modal-icon {
        font-size: 48px;
    }

    .notice-content {
        flex-direction: column;
        text-align: center;
    }

    .notice-icon {
        font-size: 40px;
    }

    .btn-upgrade-small {
        width: 100%;
    }
}

/* ========================================
   프리미엄 강조 효과
   ======================================== */

.premium-highlight {
    position: relative;
    overflow: hidden;
}

.premium-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.3), transparent);
    animation: premium-shine 3s infinite;
}

@keyframes premium-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}
