/**
 * 광남2동 체육회 - 메인 페이지 스타일 (main.css)
 * index.html 전용 스타일시트
 */

/* === 헤더 스타일 === */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
}

/* === 내비게이션 === */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* === 히어로 섹션 === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 1s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === 섹션 공통 스타일 === */
.intro,
.notices,
.history,
.facilities,
.executives {
    padding: 6rem 0;
}

.intro {
    background: #f8f9fa;
}

.notices {
    background: white;
}

.history {
    background: #f8f9fa;
}

.facilities {
    background: white;
}

.executives {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 4rem;
}

/* === 소개 섹션 === */
.intro-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.intro-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.intro-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.intro-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.intro-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* === 공지사항 섹션 (메인페이지용) === */
.notices-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.notice-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

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

.notice-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.notice-date {
    font-size: 0.85rem;
    color: #8e9aaf;
    font-weight: 500;
}

.notice-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.notice-summary {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.notice-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #8e9aaf;
}

.notice-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notice-meta i {
    color: #667eea;
}

.loading-notice,
.no-notices,
.error-notice {
    text-align: center;
    padding: 3rem 2rem;
    color: #8e9aaf;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.loading-notice i,
.no-notices i,
.error-notice i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: #667eea;
}

.error-notice {
    color: #dc3545;
}

.error-notice i {
    color: #dc3545;
}

.notices-pagination {
    text-align: center;
}

/* 공지사항 제목 클릭 효과 */
.notice-title {
    cursor: pointer;
    transition: color 0.3s ease;
}

.notice-title:hover {
    color: #5a67d8 !important;
}

/* 배지 스타일 */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-important {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    animation: pulse 2s infinite;
}

.badge-new {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
    }
}

/* === 연혁 섹션 === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    animation: slideIn 0.6s ease-out forwards;
}

.timeline-item:nth-child(odd) {
    left: 0;
    animation-delay: calc(var(--i) * 0.2s);
}

.timeline-item:nth-child(even) {
    left: 50%;
    animation-delay: calc(var(--i) * 0.2s);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: white;
    border: 4px solid #667eea;
    top: 50%;
    border-radius: 50%;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-year {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

/* === 시설 섹션 === */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.facility-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.facility-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.facility-header i {
    display: block;
    margin-bottom: 0.5rem;
}

.facility-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.facility-body {
    padding: 2rem;
}

.facility-body h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.facility-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.facility-info span {
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.facility-info i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

/* === 임원진 섹션 === */
.executives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.executive-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.executive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.executive-position {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.executive-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.executive-contact {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.executive-contact div {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.executive-contact i {
    color: #667eea;
    width: 16px;
}

/* === 연락처 섹션 === */
.contact {
    padding: 6rem 0;
    background: #2c3e50;
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: rgba(255,255,255,0.8);
}

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

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: #667eea;
    font-size: 1.2rem;
    width: 20px;
    margin-top: 0.2rem;
}

/* === 푸터 === */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.admin-link:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* === 모바일 반응형 === */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(102, 126, 234, 0.95);
        flex-direction: column;
        padding: 1rem;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even)::after {
        left: 21px;
    }

    .intro-content,
    .notices-list,
    .facilities-grid,
    .executives-grid {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        gap: 1.5rem;
    }

    .executives-grid {
        gap: 1.5rem;
    }

    .notices-list {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .notice-card {
        padding: 1.5rem;
    }

    .notice-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .header-content {
        padding: 0 1rem;
    }

    .intro,
    .history,
    .facilities,
    .executives,
    .contact {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .notice-title {
        font-size: 1.1rem;
    }

    .notice-summary {
        font-size: 0.9rem;
    }

}