/*
 * 테더페이백 프리미엄 스타일
 * Main Color: #F97316
 * Design: Modern Glassmorphism + Neobrutalism Hybrid
 */

/* Google Fonts */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* CSS Variables */
:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FDBA74;
    --primary-glow: rgba(249, 115, 22, 0.4);
    --secondary: #1E293B;
    --accent: #0EA5E9;
    --success: #10B981;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #F8FAFC;
    --bg-primary: #F8FAFC;
    --bg-secondary: #E2E8F0;
    --bg-dark: #0F172A;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 50%, #F1F5F9 100%);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

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

p {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===============================================
   HEADER / NAVIGATION
   =============================================== */
.wp-site-blocks > header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.wp-site-blocks > header:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Site Title */
.wp-block-site-title a {
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.wp-block-navigation {
    gap: 8px;
}

.wp-block-navigation a {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
}

.wp-block-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.wp-block-navigation a:hover {
    color: var(--primary) !important;
    background: rgba(249, 115, 22, 0.08) !important;
}

.wp-block-navigation a:hover::before {
    width: 60%;
}

/* ===============================================
   BUTTONS - Premium Style
   =============================================== */
.wp-block-button__link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 16px 36px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px var(--primary-glow), var(--shadow-md) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 30px var(--primary-glow), var(--shadow-lg) !important;
}

.wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button__link:active {
    transform: translateY(-1px) scale(0.98) !important;
}

/* CTA Button - Extra Emphasis */
.wp-block-buttons:first-of-type .wp-block-button__link,
.tethermax-cta-btn .wp-block-button__link {
    padding: 20px 48px !important;
    font-size: 1.15rem !important;
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 15px var(--primary-glow), var(--shadow-md);
    }
    50% {
        box-shadow: 0 8px 40px rgba(249, 115, 22, 0.5), var(--shadow-lg);
    }
}

/* Secondary/Outline Button */
.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* ===============================================
   CARDS - Glassmorphism Style
   =============================================== */
.wp-block-column,
.wp-block-group:not([style*="background"]) {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-column:hover,
.wp-block-group:not([style*="background"]):hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
}

/* Benefit Cards */
.benefit-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Icon Circle */
.benefit-card .icon,
.wp-block-column .emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .icon,
.wp-block-column:hover .emoji {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 100%);
}

/* ===============================================
   HERO SECTION
   =============================================== */
.wp-block-cover {
    min-height: 85vh !important;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.wp-block-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(249, 115, 22, 0.3) 100%);
    z-index: 1;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.wp-block-cover h1 {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out;
}

.wp-block-cover p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem !important;
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.wp-block-cover .wp-block-button {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Particles in Hero */
.wp-block-cover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 60% 40%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,0.2), transparent);
    background-size: 200% 200%;
    animation: sparkle 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* ===============================================
   SECTIONS
   =============================================== */
.wp-block-group[style*="background"] {
    border-radius: var(--radius-xl);
    margin: 60px auto;
    max-width: 1200px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Orange CTA Section */
.wp-block-group[style*="#F97316"],
.wp-block-group[style*="rgb(249, 115, 22)"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.wp-block-group[style*="#F97316"]::before,
.wp-block-group[style*="rgb(249, 115, 22)"]::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.wp-block-group[style*="#F97316"] h2,
.wp-block-group[style*="rgb(249, 115, 22)"] h2 {
    color: white !important;
}

.wp-block-group[style*="#F97316"] p,
.wp-block-group[style*="rgb(249, 115, 22)"] p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.wp-block-group[style*="#F97316"] .wp-block-button__link,
.wp-block-group[style*="rgb(249, 115, 22)"] .wp-block-button__link {
    background: white !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}

.wp-block-group[style*="#F97316"] .wp-block-button__link:hover,
.wp-block-group[style*="rgb(249, 115, 22)"] .wp-block-button__link:hover {
    background: var(--bg-primary) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

/* ===============================================
   COLUMNS GRID
   =============================================== */
.wp-block-columns {
    gap: 32px;
    margin: 40px 0;
}

.wp-block-columns > .wp-block-column {
    flex: 1;
    min-width: 280px;
}

/* ===============================================
   BLOG / POSTS
   =============================================== */
.wp-block-query .wp-block-post {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
}

.wp-block-query .wp-block-post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.wp-block-post-title a {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.35rem;
    transition: color 0.3s ease;
}

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

.wp-block-post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.wp-block-post-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===============================================
   FAQ SECTION
   =============================================== */
.wp-block-details {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.wp-block-details:hover {
    box-shadow: var(--shadow-md);
}

.wp-block-details summary {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.wp-block-details summary:hover {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.03);
}

.wp-block-details[open] summary {
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--primary);
}

.wp-block-details > *:not(summary) {
    padding: 20px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===============================================
   FORMS - Contact Form 7
   =============================================== */
.wpcf7-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: white;
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 18px 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ===============================================
   FOOTER
   =============================================== */
footer,
.wp-site-blocks > footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1E293B 100%);
    color: var(--text-light);
    padding: 60px 0 40px;
    margin-top: 80px;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

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

footer p {
    color: rgba(255, 255, 255, 0.5);
}

/* ===============================================
   UTILITIES
   =============================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* Stats/Numbers */
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Scroll Reveal */
.wp-block-column,
.wp-block-group,
.benefit-card {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 1024px) {
    .wp-block-columns {
        gap: 24px;
    }

    .wp-block-group[style*="background"] {
        margin: 40px 20px;
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

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

    .wp-block-cover {
        min-height: 70vh !important;
    }

    .wp-block-cover h1 {
        font-size: 2rem !important;
    }

    .wp-block-button__link {
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
    }

    .benefit-card {
        padding: 32px 24px;
    }

    .wpcf7-form {
        padding: 24px;
    }

    .wp-block-navigation {
        gap: 4px;
    }

    .wp-block-navigation a {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .wp-block-cover h1 {
        font-size: 1.75rem !important;
    }

    .wp-block-cover p {
        font-size: 1rem !important;
    }

    .stat-number {
        font-size: 2.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-visible,
button:focus-visible,
input:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.95);
        --shadow-md: 0 4px 20px rgba(0,0,0,0.2);
    }

    .wp-block-column,
    .wp-block-group,
    .benefit-card {
        border: 2px solid var(--text-primary);
    }
}

/* ===============================================
   PRINT STYLES
   =============================================== */
@media print {
    body {
        background: white;
    }

    .wp-block-cover {
        min-height: auto !important;
        page-break-inside: avoid;
    }

    .wp-block-button {
        display: none;
    }
}
