/* Custom Styles for bybitpayback.goksan.co.kr */
/* Theme: Dark Mode with Purple (#8B5CF6 ~ #7C3AED) */
/* Font: Spoqa Han Sans Neo */
/* Style: Zigzag sections, Neon glow buttons, Border round cards, Anti-gravity floating */

@import url('https://spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css');

:root {
    --primary-color: #8B5CF6;
    --secondary-color: #7C3AED;
    --accent-color: #A78BFA;
    --text-primary: #F9FAFB;
    --text-secondary: #E5E7EB;
    --background-dark: #0F0F1A;
    --background-medium: #1A1A2E;
    --background-light: #252540;
    --border-color: #3B3B5C;
    --neon-glow: 0 0 10px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

/* Base Typography */
body, html {
    font-family: 'Spoqa Han Sans Neo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.8;
}

/* All Text Elements */
h1, h2, h3, h4, h5, h6, p, span, a, li, div {
    font-family: 'Spoqa Han Sans Neo', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Headings */
h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Theme's page title H1 - single H1 per page for SEO */
h1.wp-block-post-title {
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Body Text - High Contrast */
p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

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

@keyframes float3D {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateX(0) rotateY(0);
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    }
    50% {
        transform: translateY(-15px) translateZ(20px) rotateX(3deg) rotateY(3deg);
        box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
    }
}

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

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5), 0 0 10px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
    }
}

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

/* Scroll Reveal Header */
header,
.wp-block-template-part {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Navigation */
.wp-block-navigation-item__content {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.wp-block-navigation-item__content:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Neon Glow Buttons */
.neon-glow-btn .wp-block-button__link,
.wp-block-button__link {
    background: var(--gradient-primary) !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-glow-btn .wp-block-button__link:hover,
.wp-block-button__link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.5), 0 0 90px rgba(139, 92, 246, 0.3);
}

/* Hero Section */
.hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    margin-top: 2rem;
}

/* Border Round Cards */
.benefit-card,
.wp-block-column {
    background: var(--background-medium);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

/* Zigzag Layout */
.zigzag .wp-block-column:nth-child(even) {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .zigzag .wp-block-column:nth-child(even) {
        margin-top: 0;
    }
}

/* Benefits Section */
.benefits-section {
    margin: 3rem 0;
}

/* Blog Posts */
.wp-block-post {
    background: var(--background-medium);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.wp-block-post:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.wp-block-post-title a {
    color: var(--text-primary) !important;
    font-weight: 600;
}

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

.wp-block-post-excerpt {
    color: var(--text-secondary);
}

.wp-block-post-date {
    color: var(--accent-color);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    margin: 4rem 0;
    text-align: center;
}

/* Footer */
footer {
    background: var(--background-medium);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

/* Site Title */
.wp-block-site-title a {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Main Title */
.main-title {
    text-align: center;
    margin-bottom: 1rem;
}

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

li {
    margin-bottom: 0.75rem;
}

li strong {
    color: var(--text-primary);
}

/* Separator */
hr,
.wp-block-separator {
    border: none;
    height: 1px;
    background: var(--gradient-primary);
    margin: 3rem 0;
    opacity: 0.5;
}

/* Contact Form */
.wpcf7-form {
    background: var(--background-medium);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.wpcf7-form input[type="submit"] {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    box-shadow: var(--neon-glow);
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.wpcf7-form label {
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

/* Floating Bubbles Background Effect */
.floating-bubble {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    animation: bubbleFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .neon-glow-btn .wp-block-button__link {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .neon-glow-btn .wp-block-button__link {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Blockquote */
blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 2rem 0;
    background: var(--background-medium);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

th {
    background: var(--background-light);
    color: var(--text-primary);
    font-weight: 600;
}

td {
    background: var(--background-medium);
    color: var(--text-secondary);
}

/* Images */
.wp-block-image img {
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Strong text for contrast */
strong {
    color: var(--text-primary);
    font-weight: 600;
}
