/* Freesentation 폰트 정의 */
@font-face {
    font-family: 'Freesentation';
    src: url('./fonts/Freesentation-4Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Freesentation';
    src: url('./fonts/Freesentation-5Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Freesentation';
    src: url('./fonts/Freesentation-6SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Freesentation';
    src: url('./fonts/Freesentation-7Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Freesentation';
    src: url('./fonts/Freesentation-8ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Freesentation';
    src: url('./fonts/Freesentation-9Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --primary: #84231d;
    --primary-light: #a82e26;
    --secondary: #d37088;
    --secondary-light: #e8a0b0;
    --accent: #f4c7d0;
    --bg-main: #fef9f9;
    --bg-card: #ffffff;
    --bg-section: #fff5f6;
    --bg-warm: #fdf6f4;
    --bg-soft-pink: #fef5f7;
    --text-primary: #2d2d2d;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: rgba(132, 35, 29, 0.12);
    --border-light: rgba(132, 35, 29, 0.08);
    --shadow-soft: 0 4px 20px rgba(132, 35, 29, 0.08);
    --shadow-medium: 0 8px 30px rgba(132, 35, 29, 0.12);
    --shadow-strong: 0 12px 40px rgba(132, 35, 29, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-soft: linear-gradient(135deg, #fff5f6 0%, #fef0f2 100%);
    --gradient-warm: linear-gradient(135deg, #fdf8f7 0%, #fef5f6 100%);
}

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

body {
    font-family: 'Freesentation', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 프레젠테이션 컨테이너 */
.presentation {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 슬라이드 기본 스타일 - 1920x1080 기준 상단 정렬 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10vh 80px 10vh 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
    background: var(--bg-main);
    color: var(--text-primary);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* 슬라이드 배경 변형 - 모두 밝은 톤 */
.slide.bg-light {
    background: var(--bg-main);
}

.slide.bg-warm {
    background: var(--bg-warm);
}

.slide.bg-soft {
    background: var(--bg-soft-pink);
}

.slide.bg-gradient {
    background: var(--gradient-soft);
}

.slide.bg-pattern {
    background: var(--bg-main);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(211, 112, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(132, 35, 29, 0.06) 0%, transparent 50%);
}

.slide.bg-primary {
    background: var(--gradient-primary);
    color: white;
}

.slide.bg-dark {
    background: var(--gradient-warm);
}

.slide.bg-gradient-soft {
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--accent) 50%, var(--bg-soft-pink) 100%);
}

/* 타이포그래피 - 1920x1080 기준 대폭 확대 */
.slide-title {
    font-family: 'Freesentation', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
}

.slide-title.large {
    font-size: clamp(4rem, 8vw, 7rem);
}

.slide-title.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide.bg-primary .slide-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.slide-subtitle {
    font-family: 'Freesentation', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.slide.bg-primary .slide-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.slide-content {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.9;
    max-width: 1000px;
    width: 100%;
}

/* 레이아웃 */
.flex-row {
    display: flex;
    gap: 50px;
    align-items: center;
    width: 100%;
    max-width: 1600px;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
    max-width: 1600px;
}

.col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1600px;
}

.col-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    width: 100%;
    max-width: 1600px;
}

/* 카드 스타일 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.card.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.slide.bg-primary .card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Freesentation', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary);
}

.slide.bg-primary .card-title {
    color: white;
}

.card-desc {
    font-size: 1.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-desc-mini {
    font-size: 1.65rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.slide.bg-primary .card-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* 리스트 스타일 */
.list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.7;
    color: var(--text-primary);
}

.list li::before {
    content: '▸';
    color: var(--secondary);
    font-weight: bold;
    flex-shrink: 0;
}

.list.numbered {
    counter-reset: item;
}

.list.numbered li::before {
    counter-increment: item;
    content: counter(item);
    background: var(--gradient-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

/* 코드/프롬프트 박스 */
.prompt-box {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 70px 40px 35px 40px;
    font-family: 'Freesentation', sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 2;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.prompt-box::before {
    content: '💬 프롬프트';
    position: absolute;
    top: 0;
    left: 0;
    background: var(--secondary);
    color: white;
    padding: 10px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 15px 0 10px 0;
}

/* 배지/태그 */
.badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.tag {
    display: inline-block;
    background: rgba(211, 112, 136, 0.15);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 1.4rem;
    margin: 5px;
    border: 1px solid rgba(211, 112, 136, 0.2);
}

.slide.bg-primary .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 이모지 아이콘 */
.emoji-large {
    font-size: clamp(5rem, 12vw, 10rem);
    margin-bottom: 30px;
}

.emoji-medium {
    font-size: 4rem;
}

/* 비교 테이블 */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
}

.comparison-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.comparison-item.left {
    border: 2px solid var(--primary);
}

.comparison-item.right {
    border: 2px solid var(--secondary);
}

.comparison-tags {
    margin: 20px 0;
}

.comparison-quote {
    font-style: italic;
    font-size: 1.6rem;
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-section);
    border-radius: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comparison-list {
    list-style: none;
    text-align: left;
    margin-top: 25px;
}

.comparison-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.5rem;
    color: var(--text-primary);
}

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

/* 타임라인 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 30px;
    border-left: 3px solid var(--secondary);
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--bg-main);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* 네비게이션 - 숨김 처리 */
.nav-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border);
    z-index: 1000;
}

.nav-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.slide-counter {
    font-size: 1rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    color: var(--text-primary);
}

/* 프로그레스 바 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: 1001;
}

/* 슬라이드 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide.active .animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.slide.active .animate-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.slide.active .animate-scale {
    animation: scaleIn 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* 활동 헤더 */
.activity-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.activity-number {
    background: var(--gradient-primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Freesentation', sans-serif;
    font-size: 2rem;
    font-weight: 900;
}

.slide.bg-primary .activity-number {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.activity-title {
    font-family: 'Freesentation', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
}

.slide.bg-primary .activity-title {
    color: white;
}

/* 하이라이트 박스 */
.highlight-box {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    border-radius: 0 15px 15px 0;
    padding: 25px 30px;
    margin: 20px 0;
    color: var(--text-primary);
}

/* 아이콘 그리드 */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    width: 100%;
}

.icon-item {
    text-align: center;
    padding: 20px;
}

.icon-item .emoji {
    font-size: 4rem;
    margin-bottom: 10px;
}

.icon-item .label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 스텝 가이드 */
.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.5rem;
}

/* 인용구 */
.quote {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-style: italic;
    text-align: center;
    max-width: 1000px;
    line-height: 1.7;
    position: relative;
    padding: 0 50px;
    color: var(--text-primary);
}

.quote::before,
.quote::after {
    content: '"';
    font-size: 5rem;
    color: var(--secondary);
    position: absolute;
    opacity: 0.5;
}

.quote::before {
    top: -20px;
    left: 0;
}

.quote::after {
    bottom: -40px;
    right: 0;
}

.slide.bg-primary .quote {
    color: white;
}

.slide.bg-primary .quote::before,
.slide.bg-primary .quote::after {
    color: rgba(255, 255, 255, 0.5);
}

/* 반응형 */
@media (max-width: 1024px) {
    .slide {
        padding: 40px 50px;
    }
    
    .col-2, .col-3, .col-4 {
        grid-template-columns: 1fr;
    }
    
    .flex-row {
        flex-direction: column;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 30px 25px;
        padding-bottom: 100px;
    }
    
    .nav-controls {
        bottom: 15px;
        padding: 10px 20px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .card {
        padding: 20px;
    }
    
    .prompt-box {
        padding: 35px 20px 20px 20px;
    }
}

/* 키보드 힌트 - 숨김 처리 */
.keyboard-hint {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    display: none;
}

.keyboard-hint kbd {
    background: var(--bg-section);
    padding: 3px 8px;
    border-radius: 5px;
    margin: 0 3px;
    border: 1px solid var(--border);
}

/* 태그 컨테이너 */
.tag-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* QR 코드 스타일 */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.qr-code {
    width: 500px;
    height: 500px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-label {
    font-size: 1.8rem;
    color: var(--text-secondary);
    text-align: center;
}
