/*
Theme Name: WebPage Infor 게임 정보
Theme URI: https://webpage-infor.com
Author: 게임이벤트연구소
Description: 온라인 게임 이벤트와 소식을 전하는 전문 플랫폼. 다크 게이밍 디자인.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: wpginf-theme
*/

/* ========== 기본 설정 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7c3aed;
    --secondary-color: #a78bfa;
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2a2a2a;
    --hover-bg: #252525;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

.wpginf-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 헤더 ========== */
.wpginf-header {
    background-color: rgba(15, 15, 15, 0.95);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.wpginf-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpginf-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.wpginf-logo:hover {
    color: var(--primary-color);
}

/* 네비게이션 */
.wpginf-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.wpginf-nav a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wpginf-nav a:hover,
.wpginf-nav .current-menu-item a {
    color: var(--primary-color);
}

/* 모바일 메뉴 토글 */
.wpginf-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.wpginf-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ========== 히어로 배너 ========== */
.wpginf-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 80px;
}

.wpginf-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    z-index: 1;
}

.wpginf-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%237c3aed" opacity="0.3"/></svg>');
    opacity: 0.1;
}

.wpginf-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.8) 100%);
    z-index: 2;
}

.wpginf-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.wpginf-hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpginf-hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ========== 소개 섹션 ========== */
.wpginf-intro {
    padding: 0 0 80px;
    background-color: var(--dark-bg);
}

.wpginf-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.wpginf-intro-content h2 {
    font-size: 42px;
    margin-bottom: 28px;
    line-height: 1.2;
}

.wpginf-intro-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.wpginf-intro-image {
    border-radius: 16px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.wpginf-intro-image img {
    width: 100%;
    border-radius: 16px;
}

/* ========== 장점 섹션 ========== */
.wpginf-benefits {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.wpginf-benefits h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
}

.wpginf-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.wpginf-benefit-card {
    text-align: center;
    padding: 32px 20px;
    background-color: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.wpginf-benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.wpginf-benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.wpginf-benefit-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.wpginf-benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== 최신글 섹션 ========== */
.wpginf-posts {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.wpginf-posts h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
}

.wpginf-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.wpginf-post-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.wpginf-post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.wpginf-post-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: var(--hover-bg);
}

.wpginf-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wpginf-post-card:hover .wpginf-post-thumbnail img {
    transform: scale(1.05);
}

.wpginf-post-content {
    padding: 24px;
}

.wpginf-post-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.wpginf-post-title a {
    color: var(--text-primary);
}

.wpginf-post-title a:hover {
    color: var(--primary-color);
}

.wpginf-post-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.wpginf-post-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== 단일 포스트 ========== */
.wpginf-single {
    padding: 60px 0;
    background-color: var(--dark-bg);
}

.wpginf-single-content {
    max-width: 800px;
    margin: 0 auto;
}

.wpginf-single-header {
    margin-bottom: 40px;
}

.wpginf-single-title {
    font-size: 44px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.wpginf-single-meta {
    font-size: 15px;
    color: var(--text-secondary);
}

.wpginf-single-thumbnail {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.wpginf-single-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.wpginf-single-body h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.wpginf-single-body h3 {
    font-size: 26px;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.wpginf-single-body p {
    margin-bottom: 20px;
}

.wpginf-single-body ul,
.wpginf-single-body ol {
    margin: 20px 0 20px 30px;
}

.wpginf-single-body li {
    margin-bottom: 10px;
}

/* ========== 아카이브 ========== */
.wpginf-archive {
    padding: 60px 0;
    background-color: var(--dark-bg);
}

.wpginf-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.wpginf-archive-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.wpginf-archive-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== 푸터 ========== */
.wpginf-footer {
    background-color: var(--card-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.wpginf-footer-content {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.wpginf-footer-about h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.wpginf-footer-about p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.wpginf-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

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

    .wpginf-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        border-top: 1px solid var(--border-color);
    }

    .wpginf-nav.active {
        display: block;
    }

    .wpginf-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .wpginf-nav li {
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
    }

    .wpginf-nav li:last-child {
        border-bottom: none;
    }

    .wpginf-hero {
        height: 500px;
    }

    .wpginf-hero-title {
        font-size: 42px;
    }

    .wpginf-hero-subtitle {
        font-size: 17px;
    }

    .wpginf-intro-content h2,
    .wpginf-benefits h2,
    .wpginf-posts h2,
    .wpginf-archive-title {
        font-size: 32px;
    }

    .wpginf-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wpginf-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wpginf-single-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .wpginf-hero {
        height: 450px;
    }

    .wpginf-hero-title {
        font-size: 36px;
    }

    .wpginf-benefits-grid {
        grid-template-columns: 1fr;
    }
}
