/*
Theme Name: AutoPix
Theme URI: https://autopix.co.kr
Author: AutoPix Studio
Description: 오토픽스 공식 웹사이트 테마
Version: 1.0.0
Text Domain: autopix
*/

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #16171f;
    --bg-secondary: #1c1d28;
    --bg-card: #1e2030;
    --bg-card-hover: #252740;
    --bg-darker: #111219;
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e9f0;
    --text-secondary: #9496a8;
    --text-muted: #5d5f72;
    --accent-blue: #5b8aff;
    --accent-purple: #8b6fff;
    --accent-gradient: linear-gradient(135deg, #5b8aff 0%, #8b6fff 100%);
    --accent-glow: rgba(91, 138, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(91, 138, 255, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: "Pretendard Variable", "Pretendard", -apple-system, "Noto Sans KR", sans-serif;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-purple);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header / Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(22, 23, 31, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(22, 23, 31, 0.95);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.site-logo:hover {
    color: var(--text-primary);
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: var(--accent-gradient) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(91, 138, 255, 0.3);
    color: #fff !important;
    background: var(--accent-gradient) !important;
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(22, 23, 31, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        gap: 4px;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 16px; width: 100%; }
}

/* ===== Hero Section ===== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-darker);
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(91, 138, 255, 0.1) 0%, rgba(139, 111, 255, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(91, 138, 255, 0.1);
    border: 1px solid rgba(91, 138, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #fff;
}

.hero h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(91, 138, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91, 138, 255, 0.35);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ===== Section Base ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(91, 138, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(91, 138, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Steps ===== */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.step-item:hover {
    border-color: rgba(91, 138, 255, 0.15);
    transform: translateX(4px);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0 100px;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(91, 138, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    color: var(--text-primary);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-darker);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ===== WordPress Content ===== */
.page-header-section {
    padding: 140px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.page-content h1, .page-content h2, .page-content h3 {
    font-weight: 700;
    margin: 1.8em 0 0.6em;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.page-content h1 { font-size: 2rem; }
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.2rem; }

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    color: var(--text-secondary);
    margin-bottom: 1.2em;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 0.4em;
}

.page-content a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.page-content blockquote {
    border-left: 3px solid var(--accent-blue);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: rgba(91, 138, 255, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.page-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.page-content pre {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.page-content pre code {
    background: none;
    padding: 0;
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: #2e3045;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3e4058;
}

/* ===== Dropdown Menu ===== */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    list-style: none;
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        background: transparent;
    }
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* ===== Nav User ===== */
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary) !important;
}

.nav-logout {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
}

/* ===== Board Grid (커뮤니티) ===== */
.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 48px 0 80px;
}

@media (max-width: 600px) {
    .board-grid { grid-template-columns: 1fr; }
}

.board-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    color: var(--text-primary);
}

.board-card:hover {
    border-color: rgba(91, 138, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}

.board-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(91, 138, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-info {
    flex: 1;
}

.board-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.board-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.board-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
}

/* ===== Support Grid (고객센터) ===== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 48px 0 80px;
}

@media (max-width: 600px) {
    .support-grid { grid-template-columns: 1fr; }
}

.support-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    color: var(--text-primary);
    text-align: center;
}

.support-card:hover {
    border-color: rgba(91, 138, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}

.support-icon {
    width: 56px;
    height: 56px;
    background: rgba(91, 138, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.support-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.support-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== Download Page ===== */
.download-area {
    padding: 48px 0 40px;
    max-width: 700px;
    margin: 0 auto;
}

.download-main-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.download-icon {
    margin-bottom: 16px;
}

.download-main-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-version {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.download-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.download-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .download-info-cards { grid-template-columns: 1fr; }
}

.info-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card ul, .info-card ol {
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.info-card li {
    margin-bottom: 4px;
}

.changelog-link {
    text-align: center;
    padding-bottom: 60px;
}

.changelog-link a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.changelog-link a:hover {
    color: var(--accent-blue);
}

/* ===== Feature Detail (기능 소개) ===== */
.feature-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.feature-detail-item {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.feature-detail-text .section-label {
    margin-bottom: 8px;
}

.feature-detail-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-detail-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Manual Grid ===== */
.manual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 48px 0 20px;
}

@media (max-width: 768px) {
    .manual-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .manual-grid { grid-template-columns: 1fr; }
}

.manual-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.manual-card:hover {
    border-color: rgba(91, 138, 255, 0.15);
    transform: translateY(-2px);
}

.manual-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.manual-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.manual-card ul {
    list-style: none;
    padding: 0;
}

.manual-card li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.manual-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 0 20px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Changelog ===== */
.changelog-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.changelog-version {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.version-badge {
    background: var(--accent-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.version-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Auth Pages (로그인/회원가입) ===== */
.auth-section {
    padding: 140px 0 80px;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.auth-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 255, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-blue);
}

.form-link {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-link:hover {
    color: var(--accent-blue);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* ===== bbPress Overrides ===== */
#bbpress-forums {
    font-family: var(--font-main);
}

#bbpress-forums .bbp-body .bbp-forum-title,
#bbpress-forums .bbp-body .bbp-topic-permalink {
    color: var(--text-primary);
    font-weight: 500;
}

#bbpress-forums .bbp-body .bbp-forum-title:hover,
#bbpress-forums .bbp-body .bbp-topic-permalink:hover {
    color: var(--accent-blue);
}

#bbpress-forums li {
    background: var(--bg-card);
    border-color: var(--border-color) !important;
}

#bbpress-forums .bbp-header,
#bbpress-forums .bbp-footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color) !important;
}

#bbpress-forums .bbp-pagination-count {
    color: var(--text-muted);
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums textarea,
#bbpress-forums select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-main);
}

#bbpress-forums input[type="text"]:focus,
#bbpress-forums input[type="email"]:focus,
#bbpress-forums textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
}

#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums .bbp-submit-wrapper input[type="submit"] {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}

/* ===== Required / Terms ===== */
.required {
    color: #f87171;
    font-weight: 600;
}

.terms-box {
    padding: 12px 0;
}

.terms-box a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== Textarea ===== */
.form-group textarea {
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
    resize: vertical;
    line-height: 1.7;
}

.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 255, 0.1);
}

/* ===== Contact / Inquiry Form Wrap ===== */
.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row-2col { grid-template-columns: 1fr; }
}

.contact-info-box {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-info-box a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* ===== Mypage Layout ===== */
.mypage-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 48px 0 80px;
}

@media (max-width: 768px) {
    .mypage-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.mypage-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.mypage-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.mypage-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mypage-nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mypage-nav a.active {
    color: var(--accent-blue);
    background: rgba(91, 138, 255, 0.1);
}

.mypage-content {
    min-width: 0;
}

.mypage-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== Post List (내가 쓴 글) ===== */
.post-list {
    display: flex;
    flex-direction: column;
}

.post-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.post-list-item:hover {
    color: var(--accent-blue);
}

.post-list-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.post-list-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 16px;
}

/* ===== Inquiry Items (내 문의) ===== */
.inquiry-item {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.inquiry-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.inquiry-status.waiting {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.inquiry-status.replied {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.inquiry-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.inquiry-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.inquiry-reply {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.inquiry-reply strong {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.inquiry-reply p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 6px;
    line-height: 1.7;
}

/* ===== Empty Message ===== */
.empty-message {
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Search Page ===== */
.search-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.search-form {
    margin-bottom: 32px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px 8px 16px;
    transition: var(--transition);
}

.search-input-wrap:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 255, 0.1);
}

.search-input-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    padding: 8px 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
}

.search-results {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-result-item:hover {
    color: var(--text-primary);
}

.search-result-item:hover .search-result-title {
    color: var(--accent-blue);
}

.search-result-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(91, 138, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    margin-bottom: 6px;
}

.search-result-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: var(--transition);
}

.search-result-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 4px;
}

.search-result-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== Pagination ===== */
.pagination {
    margin-top: 32px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.pagination .page-numbers.current {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

/* ===== Legal Pages (이용약관/개인정보) ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-content ul, .legal-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content strong {
    color: var(--text-primary);
}
