/*
Theme Name: BitMart Theme
Theme URI: https://bitmartexchange.manna-plus.kr
Description: 비트마트 거래소 테더맥스 프로모션 - 오렌지 매거진 테마
Version: 1.0
Author: Manna Plus
*/

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --primary-light: #FBBF24;
    --bg-white: #FFFFFF;
    --bg-light: #FFFBEB;
    --bg-gray: #FEF3C7;
    --text-dark: #1F2937;
    --text-body: #4B5563;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --shadow: rgba(245, 158, 11, 0.15);
    --shadow-3d: rgba(217, 119, 6, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

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

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

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

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

.container-narrow {
    max-width: 800px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Backgrounds */
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }
.bg-gray { background: var(--bg-gray); }

/* Fixed Transparent Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

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

.site-header:not(.scrolled) .logo {
    color: var(--text-dark);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-overlay {
    display: none;
}

/* 3D Solid Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
}

.btn-3d {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 6px 0 var(--shadow-3d), 0 8px 20px var(--shadow);
    transform: translateY(0);
}

.btn-3d:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--shadow-3d), 0 6px 15px var(--shadow);
    color: white;
}

.btn-3d:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--shadow-3d), 0 4px 10px var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

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

/* Hero Section - Before/After Style */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 25px;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

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

/* Before/After Comparison Box */
.comparison-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.comparison-item {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.comparison-item.before {
    background: #FEE2E2;
    border-bottom: 2px dashed #FCA5A5;
}

.comparison-item.after {
    background: #D1FAE5;
}

.comparison-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.comparison-item.before .comparison-icon {
    background: #FCA5A5;
}

.comparison-item.after .comparison-icon {
    background: #6EE7B7;
}

.comparison-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.comparison-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* Magazine Layout Cards */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.magazine-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow);
}

.magazine-card-header {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.magazine-card-content {
    padding: 30px;
}

.magazine-card h4 {
    margin-bottom: 12px;
}

.magazine-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Flat Cards with Hover Shadow */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.4s ease;
}

.card:hover {
    box-shadow: 0 20px 50px var(--shadow);
    border-color: var(--primary);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.card:hover .card-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.card h4 {
    margin-bottom: 12px;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Process Steps */
.steps-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    max-width: 280px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 25px;
    box-shadow: 0 6px 0 var(--shadow-3d);
}

.step-item h4 {
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.trust-item {
    padding: 30px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.trust-item:hover {
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--primary);
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.trust-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.4s ease;
}

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

.testimonial-stars {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-body);
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer-inner {
    padding: 0 30px 25px;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

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

.cta-section .btn-3d {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 6px 0 rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.15);
}

.cta-section .btn-3d:hover {
    color: var(--primary-dark);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    box-shadow: 0 20px 50px var(--shadow);
    border-color: var(--primary);
}

.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.blog-card h3 a {
    color: var(--text-dark);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.blog-card .read-more {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 25px;
}

/* Page Styles */
.page-hero {
    padding: 150px 0 80px;
    background: var(--bg-light);
    text-align: center;
}

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

.page-content-section {
    padding: 80px 0;
}

.page-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 50px;
}

.page-content h2, .page-content h3, .page-content h4 {
    margin: 30px 0 15px;
}

.page-content ul, .page-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 10px;
}

/* Single Post */
.single-post-hero {
    padding: 150px 0 60px;
    background: var(--bg-light);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.single-post-content {
    padding: 80px 0;
}

.post-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 50px;
}

.post-content h2, .post-content h3, .post-content h4 {
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.9;
}

.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

/* 404 Page */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: var(--bg-light);
}

.error-content {
    text-align: center;
}

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

.error-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Blog Archive */
.blog-hero {
    padding: 150px 0 80px;
    background: var(--bg-light);
    text-align: center;
}

.blog-archive-section {
    padding: 80px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparison-box {
        order: -1;
    }

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

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

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

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

    .nav-overlay ul {
        list-style: none;
        text-align: center;
    }

    .nav-overlay li {
        margin: 20px 0;
    }

    .nav-overlay a {
        font-size: 1.3rem;
        color: var(--text-dark);
        font-weight: 500;
    }

    .nav-overlay a:hover {
        color: var(--primary);
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

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

    .steps-row {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 12px;
    }
}
