/* css/style.css */

/* =========================================
   1. 기본 설정 (Reset & Base)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; }
body { color: #333; line-height: 1.6; background-color: #f8fafc; overflow-x: hidden; }
a { text-decoration: none; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* =========================================
   2. 헤더 영역
   ========================================= */
header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 5%; background-color: white; border-bottom: 1px solid #e2e8f0; 
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-container img { height: 40px; width: auto; }
.logo { font-size: 1.5rem; font-weight: 800; color: #0F172A; letter-spacing: -0.5px; }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { font-size: 0.95rem; color: #64748b; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #2563EB; font-weight: 600; }

/* =========================================
   3. 인트로 & 히어로 섹션
   ========================================= */
.roadmap-intro {
    text-align: center; padding: 90px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    box-shadow: inset 0 -20px 30px -20px rgba(37, 99, 235, 0.05);
}
.roadmap-intro h2 {
    font-size: 2.6rem; font-weight: 900; color: #1e3a8a; 
    margin-bottom: 25px; letter-spacing: -1.5px; line-height: 1.2; word-break: keep-all;
}
.roadmap-intro p {
    font-size: 1.3rem; color: #334155; line-height: 1.7; 
    max-width: 840px; margin: 0 auto; word-break: keep-all; font-weight: 500;
}

.roadmap-intro p strong {
    font-weight: 800;
    color: #0F172A;
    display: inline;
    
    background: linear-gradient(to top, rgba(191, 219, 254, 0.6) 35%, transparent 35%);
    
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    
    padding: 0 4px; /* 양옆 살짝 여백 */
}

.hero { background-color: white; padding: 80px 5%; text-align: center; }
.hero-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; max-width: 1200px; margin: 0 auto 60px auto;
}
.hero-card {
    text-align: left; padding: 30px; border-radius: 16px; 
    background: #fff; border: 1px solid #f1f5f9; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.3s ease;
}
.hero-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.hero-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.hero-card h3 { font-size: 1.4rem; font-weight: 800; color: #0F172A; margin-bottom: 15px; line-height: 1.4; word-break: keep-all;}
.hero-card p { color: #64748b; line-height: 1.7; font-size: 1rem; word-break: keep-all; }

.cta-container { text-align: center; margin-top: 40px; }
.cta-button { 
    background: linear-gradient(135deg, #2563EB, #1d4ed8); color: white; 
    padding: 18px 40px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; 
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); transition: all 0.3s ease; display: inline-block;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }

/* =========================================
   4. About & Program 섹션
   ========================================= */
.message-section { 
    background-color: #F8FAFC; text-align: center; padding: 100px 5%; 
    border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
}
.message-content { max-width: 800px; margin: 0 auto; }
.message-section h2 { font-size: 2rem; font-weight: 800; color: #0F172A; margin-bottom: 20px; word-break: keep-all; }
.message-section h3 { font-size: 1.3rem; color: #2563EB; font-weight: 700; margin-bottom: 30px; word-break: keep-all; }
.message-section p { font-size: 1.1rem; color: #475569; line-height: 1.8; word-break: keep-all; }

.curriculum { background-color: white; padding: 100px 5%; }
.curriculum-header { 
    text-align: center; max-width: 900px; margin: 0 auto 60px auto; 
    padding-bottom: 40px; border-bottom: 2px solid #f1f5f9; 
}
.curriculum-header h2 { font-size: 2.4rem; font-weight: 900; color: #0F172A; margin-bottom: 25px; letter-spacing: -1px; word-break: keep-all; }
.curriculum-header p { font-size: 1.15rem; color: #475569; line-height: 1.8; word-break: keep-all; }

.course-list { max-width: 900px; margin: 0 auto; }
.course-item { 
    background: white; border: 1px solid #e2e8f0; border-radius: 16px; 
    margin-bottom: 20px; overflow: hidden; transition: all 0.3s ease; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.course-item.expandable { cursor: pointer; }
.course-item.expandable:hover { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }

.course-summary { 
    padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; background: #fff;
}
.course-title-group { display: flex; flex-direction: column; gap: 5px; }
.course-name { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.course-desc { font-size: 0.95rem; font-weight: 500; color: #64748b; margin-top: 5px; word-break: keep-all; }
.course-price { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }

/* 티어별 색상 */
.course-item.tier-basic { border-left: 6px solid #059669; }
.course-item.tier-basic .course-name, .course-item.tier-basic .course-price { color: #059669; }

.course-item.tier-standard { border-left: 6px solid #2563EB; }
.course-item.tier-standard .course-name, .course-item.tier-standard .course-price { color: #2563EB; }

.course-item.tier-pro { border-left: 6px solid #E11D48; }
.course-item.tier-pro .course-name, .course-item.tier-pro .course-price { color: #E11D48; }

.course-item.tier-black { border-left: 6px solid #171717; background-color: #fafafa; }
.course-item.tier-black .course-name, .course-item.tier-black .course-price { color: #171717; }

.course-details { 
    padding: 0 30px 30px 30px; color: #334155; border-top: 1px dashed #e2e8f0; 
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.course-details ol { margin-top: 20px; padding-left: 20px; list-style: decimal; }
.course-details li { margin-bottom: 12px; line-height: 1.6; font-size: 0.95rem; }
.course-details li strong { color: #0F172A; font-weight: 600; }
.toggle-icon { font-size: 0.8rem; color: #cbd5e1; transition: transform 0.3s; }
.course-item.active .toggle-icon { transform: rotate(180deg); color: #0F172A; }
.hidden-details { display: none; }

/* =========================================
   5. 푸터 & 모달
   ========================================= */
footer { background-color: #0f172a; color: #94a3b8; padding: 60px 5%; font-size: 0.9rem; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.company-name { color: white; font-weight: bold; font-size: 1.1rem; margin-bottom: 10px; }
.legal-links span { margin-right: 20px; cursor: pointer; text-decoration: underline; }
.legal-links span:hover { color: white; }
.hidden { display: none !important; }

/* 모달 스타일 */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); 
}
.modal-content {
    background-color: white; margin: 5% auto; padding: 30px; border-radius: 16px;
    width: 90%; max-width: 600px; max-height: 80vh; 
    display: flex; flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 15px; border-bottom: 2px solid #f1f5f9; flex-shrink: 0;
}
.modal-header h2 { margin: 0; font-size: 1.4rem; color: #1e293b; }
.close-btn { font-size: 2rem; color: #94a3b8; cursor: pointer; line-height: 1; }
.close-btn:hover { color: #ef4444; }

.modal-body {
    overflow-y: auto; padding-top: 20px; padding-right: 10px;
    font-size: 0.95rem; line-height: 1.6; color: #475569; text-align: left;
}
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 3px; }

.modal-body h3 { margin: 25px 0 10px 0; font-size: 1.1rem; color: #0f172a; font-weight: 700; }
.modal-body ul { list-style: disc; padding-left: 20px; margin-bottom: 15px; }
.modal-body p { margin-bottom: 10px; }
.modal-body hr { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.warning-text { color: #dc2626; font-weight: 500; }
.refund-box { background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; }
.privacy-contact { background: #f8fafc; padding: 10px; border-radius: 8px; font-size: 0.9rem; }

/* =========================================
   6. 플로팅 Q&A 버튼 스타일
   ========================================= */
.floating-qna-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 9990; 
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-qna-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #1d4ed8;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.qna-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.floating-black-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #000; /* 완전 검정 */
    border: 2px solid #d4af37; /* 금색 테두리 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 9999; /* 화면 최상단 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* 쉬머 효과가 밖으로 나가지 않게 */
    transition: transform 0.3s;
}

.floating-black-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); /* 골드 빛 효과 */
}

.floating-black-btn.hidden {
    display: none !important;
}

.black-icon {
    font-size: 24px;
    z-index: 2; /* 효과보다 위에 있어야 함 */
    position: relative;
}

/* ✨ 금빛 일렁임(Shimmer) 애니메이션 효과 */
.shimmer-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(212, 175, 55, 0.4) 50%, 
        transparent 100%
    );
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 3s infinite; /* 3초마다 반짝임 */
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: skewX(-20deg) translateX(-150%); }
    20% { transform: skewX(-20deg) translateX(150%); } /* 휙 지나감 */
    100% { transform: skewX(-20deg) translateX(150%); } /* 대기 */
}

/* 💬 안내 말풍선 (가이드) */
.black-guide-tooltip {
    position: absolute;
    right: 75px; /* 버튼 왼쪽으로 배치 */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #d4af37; /* 금색 글씨 */
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
    line-height: 1.2;
    border: 1px solid #d4af37;
    pointer-events: none; /* 클릭 방해 안 함 */
    
    /* 등장 애니메이션 */
    animation: fadeInRight 0.5s ease-out forwards;
}

/* 말풍선 꼬리 (오른쪽 화살표) */
.black-guide-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #d4af37;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translate(-10px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

/* =========================================
   7. 모바일 반응형
   ========================================= */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }

    .roadmap-intro { padding: 50px 20px; }
    .roadmap-intro h2 { font-size: 1.7rem; line-height: 1.3; }
    .roadmap-intro p { font-size: 1rem; padding: 0 5px; }

    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .curriculum-header h2 { font-size: 1.8rem; }
    .course-summary { flex-direction: column; align-items: flex-start; gap: 15px; }
    .course-price { align-self: flex-end; }
    .course-details { padding: 0 20px 20px 20px; }

    .modal-content { margin: 10% auto; width: 95%; max-height: 70vh; padding: 20px; }
    
    /* 모바일에서 플로팅 버튼 위치 미세 조정 */
    .floating-qna-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .qna-icon { font-size: 1.6rem; }
    .floating-black-btn {
        bottom: 90px !important;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .black-icon {
        font-size: 1.5rem;
    }
    .black-guide-tooltip {
        right: 50%;
        top: -50px;
        transform: translateX(50%);
        text-align: center;
    }
    .black-guide-tooltip::after {
        right: 50%;
        top: 100%; /* 아래쪽 꼬리 */
        transform: translateX(50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #d4af37;
        border-bottom: none;
    }
}