/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 색상 변수 정의 */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --white-color: #ffffff;
    --gray-color: #e2e8f0;
    --shadow: none;
    --shadow-lg: none;
}

/* 기본 레이아웃 */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 네비게이션 바 스타일 */
.navbar {
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .logo {
    height: 40px;
    width: auto;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 영웅 영역 (슬라이드쇼) */
.hero {
    margin-top: 70px;
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: var(--dark-color);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1200x600/3b82f6/ffffff?text=포케헌트+게임+배너+1') center/cover no-repeat;
}

.slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1200x600/6366f1/ffffff?text=포케헌트+게임+배너+2') center/cover no-repeat;
}

.slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1200x600/8b5cf6/ffffff?text=포케헌트+게임+배너+3') center/cover no-repeat;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white-color);
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* 슬라이드 제어 버튼 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 12px 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border-radius: 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* 슬라이드 인디케이터 */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: none;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

/* 페이드 인 애니메이션 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 섹션 제목 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
    padding-top: 2rem;
}

/* 게임 소개 영역 */
.about {
    padding: 8rem 0;
    background-color: var(--white-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* 게임 특색 이미지 슬라이드쇼 */
.about-slider {
    margin-top: 4rem;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slider-container {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 600px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide {
    display: none;
    width: 100%;
    height: auto;
}

.slider-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    max-height: 600px;
}

.slider-slide:hover .slider-image {
    transform: scale(1.02);
}

/* 슬라이드 제어 버튼 -扁平化设计 */
.slider-prev, .slider-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--white-color);
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 0 4px 4px 0;
    outline: none;
}

.slider-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 인디케이터 -扁平化设计 */
.slider-dots {
    text-align: center;
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.slider-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: var(--gray-color);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.slider-dot.active, .slider-dot:hover {
    background-color: var(--primary-color);
}
/* 예약 영역 */
.download {
    padding: 8rem 0;
    background-color: var(--light-color);
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-info {
    margin-bottom: 3rem;
}

.download-info p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* 게임 가이드 영역 */
.guide {
    padding: 8rem 0;
    background-color: var(--white-color);
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.guide-item {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.guide-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.guide-steps, .guide-tips {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step, .tip {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.step h4, .tip h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step p, .tip p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* 文章公告 영역 */
.article {
    padding: 8rem 0;
    background-color: var(--light-color);
}

.article-content {
    background-color: var(--white-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-text li {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding-left: 1rem;
}

.article-text li:before {
    content: "▶";
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
}

.gift-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.gift-codes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.gift-item {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gift-number {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 80px;
}

.gift-code {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    margin: 0 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    font-size: 1.1rem;
    min-width: 120px;
    text-align: center;
}

.gift-reward {
    font-weight: 600;
    color: var(--secondary-color);
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gift-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .gift-number {
        min-width: auto;
        margin-bottom: 0.2rem;
    }
    
    .gift-code {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .gift-reward {
        margin-top: 0.2rem;
    }
}

/* 연락 정보 영역 */
.contact {
    padding: 8rem 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.contact .section-title {
    color: var(--white-color);
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-email {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white-color);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.contact-email:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 푸터 스타일 */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
}

.friend-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
    margin-bottom: 1rem;
}

.friend-links span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.friend-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.friend-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-contact p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0;
    text-align: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .about-content,
    .guide-content {
        grid-template-columns: 1fr;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .hero {
        height: 500px;
        margin-top: 70px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about,    .gallery,    .guide,    .contact,    .article {        padding: 6rem 0;    }    
    .article-content {
        padding: 2rem;
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .gift-codes {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* 슬라이드 반응형 디자인 */
    .slider-container {
        max-height: 400px;
    }
    
    .slider-image {
        max-height: 400px;
    }
    
    .slider-prev, .slider-next {
        font-size: 20px;
        padding: 12px;
    }
    
    .slider-dot {
        height: 10px;
        width: 10px;
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 {
        font-size: 1.2rem;
    }
    
    /* 작은 화면에서의 슬라이드 반응형 디자인 */
    .slider-container {
        max-height: 300px;
    }
    
    .slider-image {
        max-height: 300px;
    }
    
    .slider-prev, .slider-next {
        font-size: 18px;
        padding: 10px;
    }
    
    .slider-dots {
        padding: 15px;
    }
    
    .slider-dot {
        height: 8px;
        width: 8px;
        margin: 0 4px;
    }
    
    .hero {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about,    .gallery,    .guide,    .contact,    .article {
        padding: 5rem 0;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .gift-codes p {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-email {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector button {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid var(--gray-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-selector button:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

.language-selector .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white-color);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 5px;
    z-index: 1001;
    margin-top: 0.5rem;
}

.language-selector .dropdown-content a {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-selector .dropdown-content a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.language-selector.active .dropdown-content {
    display: block;
}

/* 移动端语言选择器样式 */
@media (max-width: 768px) {
    .language-selector {
        margin-bottom: 1rem;
    }
    
    .language-selector .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: 1px solid var(--gray-color);
    }
}