/* 주차별 페이지 전용 스타일 */

/* 주차 히어로 섹션 */
.week-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.week-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.week-header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.week-navigation {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 주차 콘텐츠 섹션 */
.week-content {
    padding: 60px 0;
}

.week-content:nth-child(even) {
    background-color: var(--bg-light);
}

/* 학습 목표 섹션 */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.objective-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.objective-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.objective-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.objective-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 콘텐츠 섹션 */
.content-sections {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.content-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.content-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.content-section h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
}

.content-section h5 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
}

.content-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-section ul, .content-section ol {
    color: var(--text-light);
    line-height: 1.6;
    margin-left: 20px;
    margin-bottom: 15px;
}

/* 타임라인 스타일 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-left: 20px;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 웹 진화 섹션 */
.web-evolution {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.web-version {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
}

.web-version:nth-child(1) {
    border-color: #e74c3c;
}

.web-version:nth-child(2) {
    border-color: var(--secondary-color);
}

.web-version:nth-child(3) {
    border-color: var(--primary-color);
}

.web-version:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.web-version h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.web-version:nth-child(1) h4 {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
}

.web-version:nth-child(2) h4 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.web-version:nth-child(3) h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.version-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 코드 예제 스타일 */
.code-example {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.code-example pre {
    padding: 20px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.code-example code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* 태그 레퍼런스 */
.tag-reference {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tag-group {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.tag-group h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tag-group code {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* 설정 단계 */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setup-step {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.setup-step h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* 실습 활동 섹션 */
.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.activity-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.activity-content h4 {
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.activity-content ul {
    margin-bottom: 20px;
}

.copilot-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.copilot-tips {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.copilot-tips h5 {
    color: #0ea5e9;
    margin-bottom: 10px;
}

.copilot-tips ul {
    color: #0369a1;
}

/* 토론 활동 */
.discussion-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.topic {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.topic h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* 주차 요약 */
.week-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.week-summary h2 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.week-summary h2::after {
    background: white;
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.summary-points,
.next-week-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.summary-points h3,
.next-week-preview h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.summary-points ul {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.next-week-preview p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* 하단 네비게이션 */
.week-navigation-bottom {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    gap: 20px;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .week-hero {
        padding: 100px 0 60px;
    }
    
    .week-header h1 {
        font-size: 2rem;
    }

    .week-navigation {
        flex-direction: column;
        align-items: center;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 30px 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .timeline-content {
        margin-left: 10px;
    }

    .version-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tag-reference {
        grid-template-columns: 1fr;
    }

    .discussion-topics {
        grid-template-columns: 1fr;
    }

    .summary-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }

    .code-example pre {
        padding: 15px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .week-content {
        padding: 40px 0;
    }

    .content-section {
        padding: 20px 15px;
    }

    .activity-card {
        padding: 25px 20px;
    }

    .objective-card {
        padding: 20px;
    }

    .timeline-marker {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .week-summary {
        padding: 40px 0;
    }

    .summary-points,
    .next-week-preview {
        padding: 20px;
    }
}

/* 프린트 스타일 */
@media print {
    .navbar,
    .week-navigation,
    .week-navigation-bottom,
    footer {
        display: none;
    }

    .week-hero {
        background: none;
        color: black;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .code-example {
        background: #f5f5f5;
        color: black;
    }
}
