/* MEXC 거래소 - Clean Minimal Dark Theme
   Color: #3B82F6 (Blue)
   Font: Nanum Gothic
   Style: Dark mode, Minimal, One-page scroll
*/

/* ===== Font Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --accent: #f9fafb;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --border-hover: 1px solid rgba(59, 130, 246, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-blue: 0 4px 20px rgba(59, 130, 246, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
}

/* ===== Global Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ===== Body & Base ===== */
body, html {
    font-family: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
    background: var(--bg-dark) !important;
    color: var(--text-primary) !important;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nanum Gothic', sans-serif !important;
    font-weight: 800;
    color: var(--text-primary) !important;
    line-height: 1.4;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.8rem; }

p, li, span, div {
    font-family: 'Nanum Gothic', sans-serif !important;
    color: var(--text-secondary);
}

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

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

/* ===== Main Container ===== */
.wp-site-blocks {
    background: transparent !important;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.wp-block-group, .wp-block-cover, .entry-content {
    background: transparent !important;
}

/* ===== Navigation - Minimal Line Header ===== */
header, .wp-block-template-part[data-slug="header"] {
    position: relative;
    background: var(--bg-dark) !important;
    border-bottom: var(--border-subtle);
    padding: 16px 24px;
}

body {
    padding-top: 0;
}

.wp-block-navigation a,
nav a {
    color: var(--text-muted) !important;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.wp-block-navigation a:hover,
nav a:hover {
    color: var(--primary-light) !important;
    background: rgba(59, 130, 246, 0.1);
}

/* ===== Hero Section ===== */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

/* ===== Clean Card Component ===== */
.wp-block-group {
    background: var(--bg-card) !important;
    border: var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px;
    margin: 16px 0;
    transition: all 0.3s ease;
}

.wp-block-group:hover {
    background: var(--bg-card-hover) !important;
    border: var(--border-hover);
    box-shadow: var(--shadow-blue);
}

/* Columns Layout */
.wp-block-columns {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 20px;
}

.wp-block-columns:hover {
    box-shadow: none;
}

.wp-block-columns .wp-block-column {
    background: var(--bg-card) !important;
    border: var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px;
    margin: 0;
    transition: all 0.3s ease;
}

.wp-block-columns .wp-block-column:hover {
    border: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
}

/* ===== Buttons - Round Gradient ===== */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"] {
    font-family: 'Nanum Gothic', sans-serif !important;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%) !important;
}

/* ===== Feature Icons ===== */
.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
    text-align: center;
    animation: subtleFloat 4s ease-in-out infinite;
}

.wp-block-column h3 {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary) !important;
}

.wp-block-column p {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== Stats Section ===== */
.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary-light);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Testimonials ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: right;
}

/* ===== FAQ Section ===== */
.wp-block-details {
    background: var(--bg-card) !important;
    border: var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.wp-block-details:hover {
    border: var(--border-hover);
}

.wp-block-details summary {
    padding: 18px 24px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-block-details summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
    content: '−';
}

.wp-block-details p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--text-muted);
}

/* ===== Contact Form ===== */
.wpcf7-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: var(--border-subtle);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Nanum Gothic', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wpcf7-form label {
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    font-size: 0.9rem;
}

/* ===== Footer ===== */
footer, .wp-block-template-part[data-slug="footer"] {
    background: var(--bg-dark) !important;
    border-top: var(--border-subtle);
    padding: 48px 24px 24px;
    margin-top: 60px;
}

footer a {
    color: var(--text-muted);
}

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

/* ===== Intro Text ===== */
.intro-text,
.intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 32px;
}

/* ===== CTA Section ===== */
.final-cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 24px;
}

/* ===== Lists ===== */
ul, ol {
    color: var(--text-secondary);
}

li {
    margin-bottom: 8px;
}

li::marker {
    color: var(--primary);
}

/* ===== Blockquote ===== */
blockquote {
    border-left: 3px solid var(--primary);
    padding: 20px;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ===== Blog Posts ===== */
.wp-block-post-title a,
.entry-title a {
    color: var(--text-primary) !important;
}

.wp-block-post-title a:hover,
.entry-title a:hover {
    color: var(--primary-light) !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
    background: var(--primary);
    color: var(--text-primary);
}

/* ===== Subtle Float Animation ===== */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .wp-block-group,
    .wp-block-columns .wp-block-column {
        padding: 24px;
        margin: 12px 0;
    }

    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-button__link,
    button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    header, .wp-block-template-part[data-slug="header"] {
        padding: 12px 16px;
    }
}

/* ===== Disable animations on mobile ===== */
@media (max-width: 768px) {
    .feature-icon {
        animation: none;
    }

    .wp-block-columns .wp-block-column:hover {
        transform: none;
    }
}

/* ===== Print ===== */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
}
