/*
Theme Name: ArtThoughts Digital Safety
Description: AI 딥페이크 및 디지털 성범죄 대응을 위한 전문 테마
Version: 1.0.0
Author: ArtThoughts Foundation
Text Domain: ath-theme
License: GNU General Public License v2 or later
*/

/* ========================================
   CSS Variables - Dark + Blue/Purple
======================================== */
:root {
    --ath-bg: #0A0A0F;
    --ath-bg-light: #12121A;
    --ath-bg-card: #16161F;
    --ath-bg-card-hover: #1C1C28;
    --ath-primary: #6366F1;
    --ath-primary-light: #818CF8;
    --ath-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
    --ath-gradient-text: linear-gradient(90deg, #6366F1, #A855F7);
    --ath-text: #FFFFFF;
    --ath-text-muted: #9CA3AF;
    --ath-text-soft: #6B7280;
    --ath-border: rgba(255,255,255,0.08);
    --ath-border-light: rgba(255,255,255,0.12);
    --ath-glow: 0 0 60px rgba(99,102,241,0.15);
    --ath-shadow: 0 4px 24px rgba(0,0,0,0.3);
    --ath-shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --ath-radius: 12px;
    --ath-radius-lg: 20px;
    --ath-radius-xl: 28px;
    --ath-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ath-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { 
    font-family: var(--ath-font); 
    font-size: 16px; 
    line-height: 1.7; 
    color: var(--ath-text-muted); 
    background: var(--ath-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ath-primary-light); text-decoration: none; transition: var(--ath-transition); }
a:hover { color: var(--ath-text); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { 
    font-weight: 600; 
    line-height: 1.2; 
    color: var(--ath-text);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
p { margin-bottom: 1rem; }

.ath-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.ath-section { padding: 6rem 0; }

/* Gradient Text */
.ath-gradient-text {
    background: var(--ath-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Header
======================================== */
.ath-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ath-border);
}

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

.ath-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ath-text);
    letter-spacing: -0.02em;
}

.ath-nav { display: flex; align-items: center; gap: 2rem; }
.ath-nav-list { display: flex; align-items: center; gap: 1.5rem; }
.ath-nav-item a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ath-text-muted);
    padding: 0.5rem 0;
}
.ath-nav-item a:hover { color: var(--ath-text); }

.ath-nav-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ath-text);
    background: var(--ath-gradient);
    border: none;
    border-radius: var(--ath-radius);
    transition: var(--ath-transition);
}
.ath-nav-cta:hover { 
    opacity: 0.9;
    color: var(--ath-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.3);
}

/* Mobile Menu */
.ath-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.ath-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ath-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--ath-transition);
}
.ath-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ath-menu-toggle.active span:nth-child(2) { opacity: 0; }
.ath-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.ath-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ath-bg);
    z-index: 999;
    padding: 2rem 1.5rem;
}
.ath-mobile-menu.active { display: block; }
.ath-mobile-nav-list { margin-bottom: 2rem; }
.ath-mobile-nav-item { border-bottom: 1px solid var(--ath-border); }
.ath-mobile-nav-item a {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ath-text);
}
.ath-mobile-cta .ath-btn { width: 100%; justify-content: center; }

/* ========================================
   Buttons
======================================== */
.ath-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--ath-font);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--ath-radius);
    border: none;
    cursor: pointer;
    transition: var(--ath-transition);
}
.ath-btn-primary {
    color: var(--ath-text);
    background: var(--ath-gradient);
}
.ath-btn-primary:hover { 
    opacity: 0.9;
    color: var(--ath-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.3);
}
.ath-btn-outline {
    color: var(--ath-text);
    background: transparent;
    border: 1px solid var(--ath-border-light);
}
.ath-btn-outline:hover { 
    border-color: var(--ath-primary);
    background: rgba(99,102,241,0.1);
}

/* ========================================
   Hero Section
======================================== */
.ath-hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ath-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ath-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.ath-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--ath-bg-card);
    border: 1px solid var(--ath-border);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ath-text-muted);
    margin-bottom: 1.5rem;
}
.ath-hero-badge span { color: var(--ath-primary-light); }

.ath-hero-title { margin-bottom: 1.5rem; }

.ath-hero-desc {
    font-size: 1.125rem;
    color: var(--ath-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ath-hero-actions { 
    display: flex; 
    gap: 1rem; 
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.ath-hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--ath-text-muted);
}

.ath-hero-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--ath-bg-card);
    border-radius: var(--ath-radius);
}
.ath-hero-rating strong { color: var(--ath-text); font-size: 1.125rem; }
.ath-hero-stars { color: #FBBF24; }

/* ========================================
   About Section
======================================== */
.ath-about {
    background: var(--ath-bg-light);
    text-align: center;
}

.ath-about-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ath-about-text {
    font-size: 1.375rem;
    line-height: 1.8;
    color: var(--ath-text-muted);
}

/* ========================================
   Features Section
======================================== */
.ath-features { background: var(--ath-bg); }

.ath-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}
.ath-section-header h2 { margin-bottom: 1rem; }

.ath-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ath-feature-card {
    background: var(--ath-bg-card);
    border: 1px solid var(--ath-border);
    border-radius: var(--ath-radius-lg);
    padding: 2rem;
    transition: var(--ath-transition);
}
.ath-feature-card:hover {
    background: var(--ath-bg-card-hover);
    border-color: var(--ath-border-light);
    transform: translateY(-4px);
}

.ath-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--ath-gradient);
    border-radius: var(--ath-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.ath-feature-title {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.ath-feature-desc {
    font-size: 0.9375rem;
    color: var(--ath-text-soft);
    margin-bottom: 0;
}

/* ========================================
   How It Works
======================================== */
.ath-process { background: var(--ath-bg-light); }

.ath-process-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.ath-process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ath-process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--ath-bg-card);
    border: 1px solid var(--ath-border);
    border-radius: var(--ath-radius-xl);
    padding: 2rem;
    transition: var(--ath-transition);
}
.ath-process-step:hover {
    border-color: var(--ath-border-light);
}

.ath-step-number {
    width: 48px;
    height: 48px;
    background: var(--ath-gradient);
    border-radius: var(--ath-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ath-text);
}

.ath-step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.ath-step-desc {
    color: var(--ath-text-muted);
    margin-bottom: 0;
}

/* ========================================
   Blog Section
======================================== */
.ath-blog { background: var(--ath-bg); }

.ath-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.ath-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ath-blog-card {
    background: var(--ath-bg-card);
    border: 1px solid var(--ath-border);
    border-radius: var(--ath-radius-lg);
    overflow: hidden;
    transition: var(--ath-transition);
}
.ath-blog-card:hover {
    border-color: var(--ath-border-light);
    transform: translateY(-4px);
}

.ath-blog-image {
    height: 180px;
    background: var(--ath-bg-light);
    overflow: hidden;
}
.ath-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ath-blog-content { padding: 1.5rem; }

.ath-blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ath-primary-light);
    margin-bottom: 0.75rem;
}

.ath-blog-title {
    font-size: 1.0625rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.ath-blog-title a { color: var(--ath-text); }
.ath-blog-title a:hover { color: var(--ath-primary-light); }

.ath-blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--ath-text-soft);
}

/* ========================================
   FAQ Section
======================================== */
.ath-faq { background: var(--ath-bg-light); }

.ath-faq-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.ath-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ath-faq-item {
    background: var(--ath-bg-card);
    border: 1px solid var(--ath-border);
    border-radius: var(--ath-radius);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--ath-transition);
}
.ath-faq-item:hover {
    border-color: var(--ath-border-light);
}

.ath-faq-question {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ath-text);
    margin-bottom: 0;
}

/* ========================================
   CTA Section
======================================== */
.ath-cta {
    background: var(--ath-bg);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.ath-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ath-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.ath-cta h2 { margin-bottom: 1rem; }
.ath-cta p { margin-bottom: 2rem; }

/* ========================================
   Footer
======================================== */
.ath-footer {
    background: var(--ath-bg-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--ath-border);
}

.ath-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.ath-footer-brand { max-width: 320px; }

.ath-footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ath-text);
    margin-bottom: 1rem;
    display: block;
}

.ath-footer-desc { 
    color: var(--ath-text-muted); 
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.ath-footer-col h4 { 
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ath-text); 
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ath-footer-links li { margin-bottom: 0.75rem; }
.ath-footer-links a { color: var(--ath-text-muted); font-size: 0.9375rem; }
.ath-footer-links a:hover { color: var(--ath-text); }

.ath-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--ath-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.ath-copyright { color: var(--ath-text-soft); font-size: 0.875rem; }

.ath-footer-socials {
    display: flex;
    gap: 1rem;
}
.ath-footer-socials a {
    color: var(--ath-text-muted);
    font-size: 0.875rem;
}
.ath-footer-socials a:hover { color: var(--ath-primary-light); }

/* ========================================
   Single Post
======================================== */
.ath-single { padding: 140px 0 4rem; }

.ath-single-header { 
    text-align: center;
    max-width: 800px; 
    margin: 0 auto 3rem; 
}

.ath-single-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--ath-gradient);
    color: var(--ath-text);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.ath-single-title { margin-bottom: 1.5rem; }

.ath-single-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--ath-text-muted);
    font-size: 0.9375rem;
}

.ath-single-featured {
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: var(--ath-radius-xl);
    overflow: hidden;
}
.ath-single-featured img { width: 100%; }

.ath-single-content { 
    max-width: 800px; 
    margin: 0 auto;
}
.ath-single-content p { 
    font-size: 1.0625rem; 
    line-height: 1.9; 
    margin-bottom: 1.5rem; 
}
.ath-single-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }

/* Archive */
.ath-archive-header { 
    padding: 140px 0 3rem;
    text-align: center;
}
.ath-archive-header h1 { margin-bottom: 0.5rem; }

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .ath-features-grid { grid-template-columns: repeat(2, 1fr); }
    .ath-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .ath-faq-grid { grid-template-columns: 1fr; }
    .ath-process-header { grid-template-columns: 1fr; }
    .ath-faq-header { grid-template-columns: 1fr; }
    .ath-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .ath-nav { display: none !important; }
    .ath-menu-toggle { display: block !important; }
    .ath-hero { padding: 120px 0 60px; }
    .ath-section { padding: 4rem 0; }
    .ath-features-grid { grid-template-columns: 1fr; }
    .ath-blog-grid { grid-template-columns: 1fr; }
    .ath-process-step { grid-template-columns: 1fr; gap: 1rem; }
    .ath-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ath-footer-bottom { flex-direction: column; text-align: center; }
    .ath-blog-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 480px) {
    .ath-hero-actions { flex-direction: column; }
    .ath-hero-actions .ath-btn { width: 100%; }
    .ath-hero-trust { flex-direction: column; }
}
