/* 프로그램 페이지 전용 스타일 */

/* 히어로 섹션 */
.programs-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 3rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.programs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.programs-hero .hero-content {
    position: relative;
    z-index: 2;
}

.programs-hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.programs-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 프로그램 카테고리 섹션 */
.programs-categories {
    padding: 0.5rem 0;
}

/* 프로그램 섹션 */
.programs-section {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* 카테고리 탭 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.category-tab {
    padding: 0.8rem 1.5rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover,
.category-tab.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 프로그램 그리드 */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(350px, 1fr));
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 0 1rem;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

/* 프로그램 카드 */
.program-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.program-card:hover::before {
    transform: scaleX(1);
}

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

/* 프로그램 헤더 */
.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.program-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.program-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-badge.minecraft {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.program-badge.game {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.program-badge.web {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.program-badge.tool {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

/* 프로그램 콘텐츠 */
.program-content {
    padding: 1.5rem;
}

.program-content h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.program-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 기능 태그 */
.program-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.feature:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
}

/* 프로그램 통계 */
.program-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.program-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f8f9fa;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.program-stats i {
    color: #667eea;
}

/* 프로그램 액션 */
.program-actions {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4c93);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #495057;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* 기술 스택 섹션 */
.tech-stack-section {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    padding: 2rem 0;
    margin-top: 1rem;
    position: relative;
}

.tech-stack-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.tech-tags {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tech-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.tech-row:last-child {
    margin-bottom: 0;
}

.tech-tag {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #5a6fd8;
    transition: all 0.3s ease;
    cursor: default;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tech-tag:hover {
    background: #5a6fd8;
    border-color: #4a5fc7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 기존 tech-grid 스타일 (백업용) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tech-item:hover::before {
    opacity: 0.1;
}

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

.tech-item i {
    font-size: 2.5rem;
    color: #667eea;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.tech-item:hover i {
    transform: scale(1.1);
    color: #5a6fd8;
}

.tech-item span {
    font-weight: 600;
    color: #333;
    z-index: 2;
    position: relative;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.program-card {
    animation: slideInFromLeft 0.6s ease;
}

.program-card:nth-child(even) {
    animation-delay: 0.1s;
}

.program-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .programs-hero h2 {
        font-size: 2rem;
    }

    .category-tabs {
        gap: 0.5rem;
        justify-content: center;
    }

    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 80px;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }

    .program-actions {
        flex-direction: column;
    }

            .tech-grid {
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 1rem;
            padding: 0 1rem;
        }

        .tech-tags {
            padding: 0 0.5rem;
        }

        .tech-row {
            gap: 0.5rem;
        }

        .tech-tag {
            font-size: 0.8rem;
            padding: 0.4rem 0.8rem;
        }

    .program-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .program-stats span {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .programs-hero {
        padding: 2rem 0;
    }

    .programs-hero h2 {
        font-size: 1.5rem;
    }

    .programs-hero p {
        font-size: 1rem;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .category-tab {
        width: 100%;
        max-width: 200px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .program-card {
        margin: 0 0.5rem;
    }
}
