/* ================================================
   Basic Page Styles
   ================================================
   Description: basic.html 페이지 전용 CSS
   Created: 2025-11-06
   Dependencies: styles_base.css, styles_main.css
   ================================================ */

/* 헤더 중앙 버튼 스타일 */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 20px;
}

.page-navigation {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* 메인 콘텐츠와의 간격 조정 */
main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.nav-btn i {
    font-size: 14px;
}

.premium-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    border-color: rgba(255, 215, 0, 0.6);
}

.excel-btn:hover {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.3), rgba(76, 175, 80, 0.3));
    border-color: rgba(76, 175, 80, 0.6);
}


/* 토스트 메시지 스타일 */
.toast-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.toast-message.show {
    opacity: 1;
}


.premium-modal {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000 !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    contain: layout style paint !important;
    isolation: isolate !important;
    pointer-events: auto !important;
}

.premium-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    position: relative !important;
    overflow: hidden;
    transform: scale(0.9) translate(0, 0) !important;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform-origin: center center !important;
    margin: 0 auto;
    contain: layout style !important;
    will-change: transform, opacity;
    flex-shrink: 0 !important;
}

.premium-modal.show {
    opacity: 1;
    visibility: visible;
}

.premium-modal.show .premium-modal-content {
    transform: scale(1) translate(0, 0) !important;
    opacity: 1;
}

.premium-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 10px;
    color: white;
}

.premium-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.premium-modal-header i.fa-crown {
    color: #ffd700;
    margin-right: 10px;
}

.premium-modal-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.premium-modal-body {
    padding: 0 25px 30px;
    color: white;
}

.premium-features {
    text-align: center;
}

.premium-icon {
    font-size: 50px;
    color: #ffd700;
    margin-bottom: 20px;
}

.premium-features h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.premium-features p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.premium-benefits {
    text-align: left;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.benefit-item i {
    color: #4ade80;
    margin-right: 15px;
    font-size: 18px;
}

.premium-status {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.coming-soon i {
    margin-right: 10px;
    color: #ffd700;
}


@media (min-width: 769px) {
    .premium-modal-content {
        max-width: 450px;
        max-height: 80vh;
    }
}

/* 간단한 로그인 모달 스타일 - 랜딩페이지와 동일 */
.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: 1000;
    justify-content: center;
    align-items: center;
}

.login-prompt-modal.show {
    display: flex;
}

.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 {
    text-align: right;
    margin-bottom: 5px;
}

.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);
}

.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);
}

.body h3 {
    margin: 10px 0 15px 0;
    font-size: 18px;
    color: white;
    font-weight: 700;
}

.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 {
    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-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;
}

/* 세로로 짧은 화면 대응 (높이 기준 반응형) */
@media (max-height: 700px) {
    .login-prompt-modal-content {
        max-height: 95vh;
        padding: 20px;
        margin: 10px 0;
    }

    .login-prompt-modal-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;
    }
}

@media (max-height: 600px) {
    .login-prompt-modal-content {
        max-height: 98vh;
        padding: 12px;
        margin: 5px 0;
    }

    .login-prompt-modal-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;
    }
}

@media (max-height: 500px) {
    .login-prompt-modal-content {
        max-height: 100vh;
        padding: 10px;
        margin: 0;
        border-radius: 16px;
    }

    .login-prompt-modal-header {
        margin-bottom: 3px;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .login-prompt-modal-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: 1px 0;
        font-size: 11px;
    }

    .price-highlight {
        font-size: 13px;
    }

    .free-text {
        font-size: 12px;
    }

    /* 혜택 항목들 숨기기 */
    .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;
    }
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-center {
        padding: 0 10px;
    }

    .page-navigation {
        gap: 8px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nav-btn-text {
        display: none;
    }

    .nav-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-center {
        padding: 0 5px;
    }

    .nav-btn {
        padding: 6px 10px;
    }
}


/* 모바일 햄버거 메뉴 스타일 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 2001;
    pointer-events: auto;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    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: 999;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block !important;  /* active 시: 즉시 표시 */
    pointer-events: auto !important;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}


.mobile-menu-items {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #3498db;
    transform: translateX(5px);
}

.mobile-menu-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 20px;
}

.mobile-auth-section {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-user-info {
    color: white;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
    display: block;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 10px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.mobile-login-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.mobile-login-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.mobile-info-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.mobile-info-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.mobile-logout-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.mobile-logout-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

/* 마지막 버튼 margin 제거 */
.mobile-auth-btn:last-child {
    margin-bottom: 0;
}

/* 반응형 디자인 */
/* 모바일 환경 (768px 이하) */
@media (max-width: 768px) {
    /* 데스크탑 메뉴 숨김 */
    .desktop-menu,
    .desktop-auth {
        display: none;
    }

    /* 모바일 메뉴 표시 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 모바일 메뉴는 기본 스타일 사용 (미디어 쿼리에서 추가 설정 불필요) */

    /* 헤더 조정 */
    .header-container {
        padding: 0 15px;
    }

    /* 모바일에서 로고 링크 클릭 가능하도록 z-index 조정 */
    .logo-link {
        position: relative;
        z-index: 1001;
    }

    /* 모바일에서는 모든 모달과 해당 닫기 버튼들을 완전히 숨기기 */
    #searchModal,
    #detailModal,
    #closeSearchModal,
    #closeDetailBtn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* 모든 close 관련 버튼들 숨기기 */
    .close-btn,
    .close-detail-btn,
    button[id^="close"],
    button[class*="close"] {
        display: none !important;
        visibility: hidden !important;
    }
}

/* 소형 모바일 (480px 이하) - 전체 화면 메뉴 + 추가 최적화 */
@media (max-width: 480px) {
    .mobile-menu-content {
        width: 100%;
    }

    .logo-link h1 {
        font-size: 0.9rem;
    }
}

/* ================================================
   🆕 NEW 배지 스타일 (테마 신선도 표시)
   ================================================ */

.theme-badge-new {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: newBadgePulse 2s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
    }
}

/* 테마 카드에 호버 시 배지 강조 */
.thema-card:hover .theme-badge-new {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.7);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .theme-badge-new {
        font-size: 9px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }
}
