/* Program Page Specific Styles */

/* 페이지별 스타일 */
.page-header {
    background: linear-gradient(135deg, #fff5f5 0%, #fffef5 100%);
    padding: 100px 0 60px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.page-header__title {
    font-size: 42px;
    font-weight: 900;
    color: #333;
    margin: 0 0 10px;
    animation: fadeInDown 1s ease-out;
}

.content-section {
    padding: 60px 0;
}

.program-section {
    margin-bottom: 60px;
}

.program-section__title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 40px;
    position: relative;
    padding-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

.program-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #F97316;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

.game-card {
    animation: fadeInUp 0.8s ease-out;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }

.game-card__icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
    transition: all 0.3s ease-in-out;
}

/* SVG Icon Enhancement */
.game-card__icon svg {
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.game-card:hover .game-card__icon svg {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.3));
}

.game-card:hover .game-card__icon svg [fill="#F97316"] {
    fill: #EA580C;
}

.game-card:hover .game-card__icon svg [stroke="#F97316"] {
    stroke: #EA580C;
}

.game-card__image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.game-card:hover .game-card__image {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 15px rgba(249, 115, 22, 0.25));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.game-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.game-card__theme {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.game-card__description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.game-card__prep {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* 게임 카드 색상 변화 */
.game-card:nth-child(odd) {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
}

.game-card:nth-child(even) {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 100%);
}

.special-program {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
    animation: fadeIn 1s ease-out;
}

.special-program__item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.special-program__item:last-child {
    margin-bottom: 0;
}

.special-program__item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.special-program__icon {
    font-size: 40px;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

/* Special Program SVG Enhancement */
.special-program__icon svg {
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.special-program__item:hover .special-program__icon svg {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.25));
}

.special-program__item:hover .special-program__icon svg [fill="#F97316"] {
    fill: #EA580C;
}

.special-program__item:hover .special-program__icon svg [stroke="#F97316"] {
    stroke: #EA580C;
}

.special-program__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.special-program__item:hover .special-program__image {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.25));
}

.special-program__content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.special-program__content p {
    color: #666;
    margin: 0;
}

.timeline {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.timeline__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px;
    text-align: center;
}

.timeline__section {
    margin-bottom: 30px;
}

.timeline__section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #F97316;
    margin: 0 0 15px;
}

.timeline__item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.timeline__time {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.timeline__content {
    color: #666;
}

/* 애니메이션 정의 */
/* ==========================================================================
   Dark Mode Optimizations for Program Page
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .page-header {
        background: linear-gradient(135deg, #1a1b3a 0%, #2d2f5a 100%);
    }

    .page-header__title {
        color: var(--color-text-primary);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .program-section__title {
        color: var(--color-text-primary);
    }

    .program-section__title::after {
        background: var(--color-primary);
        box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);
    }

    .game-card {
        background: var(--color-background-alt);
        border: 1px solid var(--color-border);
        color: var(--color-text-primary);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .game-card:hover {
        border-color: var(--color-primary);
        box-shadow: 0 6px 30px rgba(var(--color-primary-rgb), 0.3);
    }

    .game-card__title {
        color: var(--color-text-primary);
    }

    .game-card__theme {
        background: rgba(var(--color-primary-rgb), 0.2);
        color: var(--color-primary);
        border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    }

    .game-card__description,
    .game-card__prep {
        color: var(--color-text-secondary);
    }

    .special-program {
        background: var(--color-background-alt);
        border: 1px solid var(--color-border);
    }

    .special-program__item {
        background: var(--color-background);
        border: 1px solid var(--color-border);
    }

    .special-program__item:hover {
        border-color: var(--color-primary);
        box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.2);
    }

    .special-program__content h3 {
        color: var(--color-text-primary);
    }

    .special-program__content p {
        color: var(--color-text-secondary);
    }

    .timeline {
        background: var(--color-background-alt);
        border: 1px solid var(--color-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .timeline__title {
        color: var(--color-text-primary);
    }

    .timeline__section h4 {
        color: var(--color-primary);
    }

    .timeline__item {
        background: var(--color-background);
        border: 1px solid var(--color-border);
    }

    .timeline__item:hover {
        background: rgba(var(--color-primary-rgb), 0.05);
        border-color: var(--color-primary);
    }

    .timeline__time {
        color: var(--color-text-primary);
        font-weight: var(--font-semibold);
    }

    .timeline__content {
        color: var(--color-text-secondary);
    }

    /* Image optimizations for dark mode */
    .game-card__image,
    .special-program__image {
        filter: brightness(0.9) contrast(1.1);
        border: 1px solid var(--color-border);
    }

    .game-card:hover .game-card__image,
    .special-program__item:hover .special-program__image {
        filter: brightness(1) contrast(1.2);
        border-color: var(--color-primary);
    }

    /* Enhanced icon visibility */
    .game-card__icon {
        filter: drop-shadow(0 2px 8px rgba(var(--color-primary-rgb), 0.3));
    }

    .game-card:hover .game-card__icon {
        filter: drop-shadow(0 4px 12px rgba(var(--color-primary-rgb), 0.5));
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}