/*
Theme Name: OKX Trading Theme
Theme URI: https://okxtradning.manna-plus.kr
Description: okx 선물거래 - Green magazine style theme
Version: 1.0
Author: Manna Plus
License: GPL v2 or later
Text Domain: okxtradning-theme
*/

/* CSS Variables */
:root {
    --color-primary: #10B981;
    --color-primary-dark: #059669;
    --color-primary-light: #34D399;
    --color-bg: #ffffff;
    --color-bg-alt: #f0fdf4;
    --color-bg-dark: #064e3b;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-border: #d1fae5;
    --color-border-dark: #a7f3d0;
    --font-primary: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-3d: 0 4px 0 var(--color-primary-dark);
    --shadow-3d-hover: 0 2px 0 var(--color-primary-dark);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* SVG Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310B981' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

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

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Floating Bubbles Background */
.floating-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    animation: bubbleFloat 12s ease-in-out infinite;
}

.floating-bubble:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-bubble:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-bubble:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.floating-bubble:nth-child(4) {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 30%;
    animation-delay: 6s;
}

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

/* Anti-Gravity Floating Animation */
@keyframes antiGravityFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-6px) rotate(-0.5deg);
    }
    75% {
        transform: translateY(-15px) rotate(0.3deg);
    }
}

.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; }
.floating-element:nth-child(4) { animation-delay: 1.5s; animation-duration: 5.5s; }

/* Center Logo Header */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    margin-bottom: 1rem;
}

.site-logo a {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

.header-cta {
    margin-top: 1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

/* 3D Solid Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-3d);
    transform: translateY(-4px);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-3d-hover);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 0 var(--color-primary);
    transform: translateY(-4px);
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
    box-shadow: 0 2px 0 var(--color-primary);
}

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

.read-more {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover {
    color: var(--color-primary-dark);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-text);
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* About Section */
.about-section {
    padding: 5rem 0;
}

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

.about-points {
    list-style: none;
}

.about-points li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-points .icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

/* How It Works Section */
.how-section {
    padding: 5rem 0;
    background: var(--color-bg-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 0 var(--color-primary-dark);
}

/* Features Section - 6 cards */
.features-section {
    padding: 5rem 0;
}

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

/* Minimal Line Cards */
.feature-card {
    background: var(--color-bg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background: var(--color-bg-alt);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: var(--color-bg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.benefit-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.benefit-stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 1rem;
}

/* Trust Badges Section */
.trust-section {
    padding: 4rem 0;
    background: var(--color-bg-dark);
    color: #ffffff;
}

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

.trust-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-bg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-content {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--color-bg-alt);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    text-align: center;
    color: #ffffff;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-box .btn-primary {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.cta-box .btn-primary:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p,
.footer-section a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Blog/Magazine Layout */
.blog-listing {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

.post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-bg-alt);
}

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

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

.post-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    color: var(--color-primary);
    opacity: 0.3;
}

.post-content {
    padding: 1.5rem;
}

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--color-text);
}

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

.entry-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.entry-excerpt {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

/* Single Post */
.single-post {
    padding: 5rem 0;
}

.article-full {
    max-width: 800px;
    margin: 0 auto;
}

.article-full .entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-full .entry-title {
    font-size: 2.25rem;
}

.article-full .featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-full .entry-content {
    line-height: 1.8;
}

.article-full .entry-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.article-full .entry-content h2,
.article-full .entry-content h3 {
    margin-top: 2rem;
    color: var(--color-text);
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.25rem;
}

/* Page Content */
.page-content {
    padding: 5rem 0;
}

.page-full {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.25rem;
}

/* Error 404 */
.error-404 {
    padding: 8rem 0;
    text-align: center;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-description {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
    }

    .header-cta {
        display: none;
    }

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

    .features-grid,
    .testimonials-grid,
    .blog-grid,
    .benefits-grid,
    .trust-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
a:focus, button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
