* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --highlight-bg: #fff3cd;
    --highlight-border: #ffeaa7;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

main {
    margin-top: 60px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* 핵심 발견 섹션 */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.finding-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.finding-card.highlight {
    background: var(--highlight-bg);
    border: 2px solid var(--secondary-color);
}

.finding-card:hover {
    transform: translateY(-5px);
}

.finding-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.finding-card ul {
    list-style: none;
    padding-left: 0;
}

.finding-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.chart-note {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
}

/* 카메라 전략 섹션 */
.strategy-content {
    margin-top: 2rem;
}

.phase-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.phase-block {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.phase-block.highlight {
    border: 3px solid var(--secondary-color);
}

.strategy-details h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
}

.strategy-details ul {
    list-style: none;
    padding-left: 0;
}

.strategy-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.strategy-details li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.insight-box {
    background: #f0f8ff;
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Day 5 전환 분석 */
.transition-analysis {
    margin-top: 2rem;
}

.critical-factors {
    margin-bottom: 3rem;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.factor-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.factor-card:hover {
    transform: translateY(-5px);
}

.factor-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-table {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.timeline-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-table th,
.timeline-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.timeline-table th {
    background: var(--primary-color);
    color: white;
}

.timeline-table tr:hover {
    background: #f5f5f5;
}

/* 인력 운영 섹션 */
.crew-planning-content {
    margin-top: 2rem;
}

.crew-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.crew-phase {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.crew-phase.highlight {
    border: 3px solid var(--secondary-color);
}

.crew-list {
    list-style: none;
    padding-left: 0;
}

.crew-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.crew-breakdown h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
}

.cost-analysis {
    background: #fff3cd;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #ffeaa7;
}

.cost-breakdown p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* 권장사항 섹션 */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.recommendation-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.recommendation-card:hover {
    transform: translateY(-5px);
}

.recommendation-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendation-card ul {
    list-style: none;
    padding-left: 0;
}

.recommendation-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.recommendation-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
}

.final-insight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

.final-insight h3 {
    margin-bottom: 1rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#participantChart {
    max-height: 200px;
    width: 100%;
}

.daily-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-item.highlight {
    background: var(--highlight-bg);
    border: 2px solid var(--highlight-border);
}

.timeline-item.highlight::before {
    background: var(--secondary-color);
    width: 20px;
    height: 20px;
    left: calc(-2rem - 4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-header h3 {
    color: var(--primary-color);
}

.participant-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.production-phase {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.production-phase.highlight {
    border: 3px solid var(--secondary-color);
}

.production-phase h3 {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.production-phase.highlight h3 {
    background: var(--secondary-color);
}

.phase-details {
    padding: 2rem;
}

.phase-details h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.phase-details ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.phase-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.cost-benefit {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.recommendation-box {
    background: var(--card-bg);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recommendation-box h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.recommendation-box ol {
    margin-left: 1.5rem;
}

.recommendation-box li {
    margin-bottom: 0.5rem;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.equipment-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.equipment-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.equipment-table {
    width: 100%;
    border-collapse: collapse;
}

.equipment-table th,
.equipment-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.equipment-table th {
    background: var(--primary-color);
    color: white;
}

.equipment-table tr:hover {
    background: #f5f5f5;
}

.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.checklist-phase {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.checklist-phase h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.checklist-item:hover {
    background: #f0f0f0;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    opacity: 0.6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ccc;
}

.status-dot.active {
    background: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.camera-count,
.camera-total,
.crew-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.countdown {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .production-grid,
    .equipment-grid,
    .checklist-container,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}