/*
    FILE NAME   : main.css
    PROJECT     : WYD SEOUL 2027 - 메인 페이지 전용
    DESCRIPTION : default.asp 인라인 스타일 분리
*/

/* ──────────────────────────────────────────────
   히어로 섹션
   ────────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: calc(-64px - 30px);  /* body padding-top + dday-widget 높이 상쇄 */
    padding-top: calc(64px + 30px);  /* 콘텐츠가 헤더+dday에 가려지지 않도록 */
    background: url('../img/wyd/main-bg.jpg') center 70% / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 71, 187, 0.5) 0%,
        rgba(0, 47, 130, 0.7) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}
.hero-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
}
.hero-title small {
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.85;
}

/* ──────────────────────────────────────────────
   D-Day 카운트다운 박스
   ────────────────────────────────────────────── */
.hero-dday {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.dday-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 70px;
    text-align: center;
}
.dday-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.dday-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

/* ──────────────────────────────────────────────
   히어로 대회 정보
   ────────────────────────────────────────────── */
.hero-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}
.hero-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-info i {
    color: var(--wyd-accent, #FFD700);
}

/* ──────────────────────────────────────────────
   CTA 버튼
   ────────────────────────────────────────────── */
.btn-cta {
    display: inline-block;
    background: var(--wyd-secondary, #F32735);
    color: #fff !important;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}
.btn-cta:hover {
    background: var(--wyd-secondary-dark, #D41E2B);
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────
   봉헌 카운터 섹션
   ────────────────────────────────────────────── */
.counter-section {
    background: var(--wyd-primary-dark, #003590);
    padding: 40px 0;
    color: #fff;
}
.counter-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.counter-progress {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 10px;
    transition: width 1.5s ease;
}
.counter-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.stat-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #f39c12;
}
.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* ──────────────────────────────────────────────
   기도 섹션
   ────────────────────────────────────────────── */
.pray-section {
    padding: 60px 0;
    background: #fafafa;
}
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}
.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 36px;
}

/* ──────────────────────────────────────────────
   참여 방법 카드 섹션
   ────────────────────────────────────────────── */
.methods-section {
    padding: 60px 0;
    background: #fff;
}
.method-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.3s, transform 0.2s;
}
.method-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.method-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
}
.method-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}
.method-card img.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
}
.method-card .app-qr {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.method-card .app-qr div {
    text-align: center;
}
.method-card .app-qr .qr-img {
    width: 100px;
    height: auto;
    border-radius: 6px;
}

/* ──────────────────────────────────────────────
   단체참여 3-step
   ────────────────────────────────────────────── */
.step-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.step-container .step {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
}
.step-container .step h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
}
.step-container .step p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 10px;
}
.step-container .step button {
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
}
.step-container .step button:hover {
    background: #e74c3c;
}

/* ──────────────────────────────────────────────
   뉴스 슬라이더 섹션
   ────────────────────────────────────────────── */
.news-section {
    padding: 60px 0;
    background: #f4f4f8;
}
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    height: 100%;
}
.news-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}
.news-card-body {
    padding: 16px;
}
.news-card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-body .news-date {
    font-size: 0.8rem;
    color: #999;
}
.news-more-link {
    display: inline-block;
    margin-top: var(--wyd-space-lg);
    padding: 10px 28px;
    background: var(--wyd-primary, #0047BB);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s;
}
.news-more-link:hover {
    background: var(--wyd-primary-dark, #003590);
    color: #fff;
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────
   SNS 섹션
   ────────────────────────────────────────────── */
.sns-section {
    padding: 50px 0;
    background: #1a1a2e;
    text-align: center;
    color: #fff;
}
.sns-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.sns-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.sns-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    transition: color 0.3s, transform 0.2s;
}
.sns-icons a:hover {
    color: #f39c12;
    transform: translateY(-3px);
}
.sns-icons a img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.1);
    padding: 6px;
}
.sns-icons a i {
    font-size: 2rem;
    margin-bottom: 6px;
}

/* ──────────────────────────────────────────────
   Swiper 커스텀
   ────────────────────────────────────────────── */
.news-swiper .swiper-slide {
    height: auto;
}
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background: rgba(0,0,0,0.35);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: 700;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.6);
}
.swiper-pagination-bullet-active {
    background: var(--wyd-primary, #0047BB) !important;
}
.swiper-pagination {
    position: relative;
    margin-top: var(--wyd-space-md);
}

/* 이미지 없는 뉴스 카드 */
.news-card-img--empty {
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* ──────────────────────────────────────────────
   반응형
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        margin-top: calc(-56px - 28px);  /* 모바일 헤더 + dday 위젯 */
        padding-top: calc(56px + 28px);
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .dday-box {
        padding: 10px 12px;
        min-width: 56px;
    }
    .dday-num {
        font-size: 1.5rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .news-card-img {
        height: 140px;
    }
}
