/*
Theme Name: Gate Theme
Theme URI: https://gate.manna-plus.kr
Description: 게이트 - 그린 미니멀 Anti-Gravity 테마
Version: 1.0
Author: TetherMax
Text Domain: gate-theme
*/

/* Wanted Sans Font */
@font-face {
    font-family: 'Wanted Sans';
    src: url('https://cdn.jsdelivr.net/gh/aspect-apps/wanted-sans-font/WantedSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Wanted Sans';
    src: url('https://cdn.jsdelivr.net/gh/aspect-apps/wanted-sans-font/WantedSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Wanted Sans';
    src: url('https://cdn.jsdelivr.net/gh/aspect-apps/wanted-sans-font/WantedSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* CSS Variables */
:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-soft: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.1) 100%);
    --dark: #111827;
    --dark-secondary: #1F2937;
    --light: #ffffff;
    --gray: #6B7280;
    --gray-light: #F3F4F6;
    --gray-bg: #F9FAFB;
    --border: #E5E7EB;
    --shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
    --shadow-lg: 0 10px 40px rgba(16, 185, 129, 0.15);
    --font-main: 'Wanted Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--gray-bg);
    overflow-x: hidden;
}

/* Anti-Gravity Floating Animations */
@keyframes antiGravityFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
    75% { transform: translateY(-20px) rotate(0.5deg); }
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0) translateZ(0);
        box-shadow: 0 5px 20px rgba(16, 185, 129, 0.1);
    }
    50% {
        transform: translateY(-15px) translateZ(20px);
        box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2);
    }
}

@keyframes bubbleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(20px, -30px) scale(1.1); opacity: 0.6; }
    66% { transform: translate(-15px, -60px) scale(0.9); opacity: 0.3; }
}

.floating-element {
    animation: antiGravityFloat 6s ease-in-out infinite;
    will-change: transform;
}

.floating-element:nth-child(1) { animation-delay: 0s; animation-duration: 5s; }
.floating-element:nth-child(2) { animation-delay: 0.5s; animation-duration: 6s; }
.floating-element:nth-child(3) { animation-delay: 1s; animation-duration: 7s; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--gray); }

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hamburger Menu Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Hamburger Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--light);
    z-index: 1001;
    transition: right 0.4s ease;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.side-nav.active {
    right: 0;
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    margin-bottom: 8px;
}

.side-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.side-nav a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.nav-cta {
    margin-top: 30px;
}

/* Underline Text Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.btn-underline {
    color: var(--primary);
    background: none;
    border: none;
    padding: 8px 0;
}

.btn-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.btn-solid {
    background: var(--gradient);
    color: var(--light);
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 14px 28px;
    border: 2px solid var(--primary);
    border-radius: 50px;
}

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

/* Minimal Line Cards */
.card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gradient);
    transition: height 0.3s ease;
    border-radius: var(--radius) 0 0 var(--radius);
}

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

.card:hover::before {
    height: 100%;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.card-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-soft);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    animation: bubbleFloat 20s ease-in-out infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-graphic {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float3D 8s ease-in-out infinite;
}

.hero-graphic-inner {
    font-size: 5rem;
}

.hero-badge {
    position: absolute;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    box-shadow: var(--shadow);
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-badge:nth-child(2) {
    top: 10%;
    right: 0;
    animation: antiGravityFloat 5s ease-in-out infinite;
}

.hero-badge:nth-child(3) {
    bottom: 20%;
    left: 0;
    animation: antiGravityFloat 6s ease-in-out infinite 0.5s;
}

/* 3 Column Layout Grid */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin: 0 auto 24px;
    animation: antiGravityFloat 5s ease-in-out infinite;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.benefit-content h4 {
    margin-bottom: 8px;
}

.benefit-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
}

/* Trust Section */
.trust-section {
    background: var(--gradient);
    color: var(--light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    animation: antiGravityFloat 5s ease-in-out infinite;
    display: inline-block;
}

.trust-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--light);
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question span {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: var(--light);
    text-align: center;
}

.cta-section h2 {
    color: var(--light);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.cta-section .btn-solid {
    background: var(--light);
    color: var(--primary);
}

.cta-section .btn-solid:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 16px;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.post-thumbnail {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.post-content {
    padding: 24px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.post-title a {
    color: var(--dark);
}

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

.read-more {
    font-weight: 600;
    color: var(--primary);
}

/* Single Post */
.single-post {
    padding-top: 120px;
}

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light);
    padding: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.post-body p { font-size: 1.05rem; color: var(--dark); }
.post-body h2, .post-body h3 { margin: 2rem 0 1rem; }
.post-body ul, .post-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.post-body li { margin-bottom: 0.5rem; color: var(--dark); }

/* Page */
.page-header {
    background: var(--gradient);
    padding: 140px 0 80px;
    text-align: center;
    color: var(--light);
}

.page-header h1 { color: var(--light); }

.page-content {
    padding: 60px 0;
}

/* 404 */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 10rem;
    font-weight: 700;
    color: var(--primary);
    animation: antiGravityFloat 5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; }
    .hero-buttons { justify-content: center; }
    .hero-badge { display: none; }
    .three-col-grid, .features-grid, .steps-container, .testimonials-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .three-col-grid, .features-grid, .steps-container, .testimonials-grid, .benefits-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .post-body { padding: 30px; }
}

@media (max-width: 480px) {
    .hero-graphic { max-width: 250px; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* Utility */
.text-center { text-align: center; }
.bg-light { background: var(--gray-bg); }
.bg-white { background: var(--light); }

/* WordPress */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
}
