/*
 * 바이비트 셀퍼럴 프리미엄 스타일
 * Main Color: #EC4899 ~ #DB2777 (Pink)
 * Design: Gradient Border Cards + Grid Pattern
 */

/* Google Fonts - Gmarket Sans & Pretendard */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://webfontworld.github.io/gmarket/GmarketSans.css');

/* CSS Variables */
:root {
    --primary: #EC4899;
    --primary-dark: #DB2777;
    --primary-light: #F472B6;
    --primary-glow: rgba(236, 72, 153, 0.4);
    --secondary: #1E293B;
    --accent: #8B5CF6;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #F8FAFC;
    --bg-primary: #FFFFFF;
    --bg-secondary: #FDF2F8;
    --bg-dark: #0F172A;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --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;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'GmarketSans', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

/* Grid Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(236, 72, 153, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

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

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(--bg-primary);
    border-bottom: 2px solid var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

/* Navigation */
.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:hover {
    color: var(--primary) !important;
    background: rgba(236, 72, 153, 0.08) !important;
}

/* ===============================================
   BUTTONS - Round Gradient Style
   =============================================== */
.wp-block-button__link {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 16px 40px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    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%;
}

/* CTA Button Pulse Animation */
.tethermax-cta-btn .wp-block-button__link {
    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(236, 72, 153, 0.5), var(--shadow-lg);
    }
}

/* White CTA Button */
.cta-white-btn .wp-block-button__link {
    background: white !important;
    color: var(--primary) !important;
}

.cta-white-btn .wp-block-button__link:hover {
    background: var(--bg-secondary) !important;
}

/* ===============================================
   CARDS - Gradient Border Style
   =============================================== */
.benefit-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: antiGravityFloat 6s ease-in-out infinite;
}

/* Gradient Border Effect */
.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 3px;
    background: var(--gradient-primary);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.benefit-card:nth-child(1) { animation-delay: 0s; animation-duration: 5s; }
.benefit-card:nth-child(2) { animation-delay: 0.5s; animation-duration: 6s; }
.benefit-card:nth-child(3) { animation-delay: 1s; animation-duration: 7s; }
.benefit-card:nth-child(4) { animation-delay: 1.5s; animation-duration: 5.5s; }

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
    color: var(--primary) !important;
    margin-bottom: 16px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

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

/* Anti-Gravity Floating Animation */
@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);
    }
}

/* ===============================================
   HERO SECTION
   =============================================== */
.wp-block-cover {
    min-height: 90vh !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.9) 0%, rgba(236, 72, 153, 0.3) 100%);
    z-index: 1;
}

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

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

.wp-block-cover p {
    color: rgba(255, 255, 255, 0.9) !important;
}

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

/* ===============================================
   CTA SECTIONS (Pink Background)
   =============================================== */
.wp-block-group[style*="#EC4899"],
.wp-block-group[style*="rgb(236, 72, 153)"] {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-radius: var(--radius-xl);
}

.wp-block-group[style*="#EC4899"] h2,
.wp-block-group[style*="rgb(236, 72, 153)"] h2 {
    color: white !important;
}

.wp-block-group[style*="#EC4899"] p,
.wp-block-group[style*="rgb(236, 72, 153)"] p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===============================================
   BLOG / POSTS
   =============================================== */
.wp-block-query .wp-block-post,
.wp-block-query .wp-block-group {
    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);
    border: 2px solid var(--bg-secondary);
    position: relative;
}

.wp-block-query .wp-block-post::before,
.wp-block-query .wp-block-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-block-query .wp-block-post:hover,
.wp-block-query .wp-block-group:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.wp-block-query .wp-block-post:hover::before,
.wp-block-query .wp-block-group:hover::before {
    opacity: 1;
}

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

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

/* ===============================================
   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;
    border: 2px solid var(--bg-secondary);
}

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

.wp-block-details summary {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.wp-block-details summary:hover {
    color: var(--primary);
    background: rgba(236, 72, 153, 0.03);
}

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

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

.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;
}

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

.wpcf7-form input[type="submit"] {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    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;
}

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

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

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

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

    .benefit-card {
        animation: none;
    }

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

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

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* ===============================================
   TEXT CONTRAST - WCAG AA Compliance
   =============================================== */
.wp-block-group[style*="background"] h2,
.wp-block-group[style*="background"] h3,
.wp-block-group[style*="background"] h4 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.has-background[style*="#EC4899"] *,
.has-background[style*="#DB2777"] *,
.has-background[style*="rgb(236, 72, 153)"] * {
    color: white !important;
}
