/* ===== 오토코스트 블로그 Theme ===== */

/* CSS Variables */
:root {
    /* Primary Colors - Dog Care Green Theme */
    --primary-color: #2f7d4f;
    --primary-light: #79c99a;
    --primary-dark: #245d3c;
    --primary-bg: rgba(47, 125, 79, 0.1);
    --primary-border: rgba(47, 125, 79, 0.24);
    
    --secondary-color: #5a3c2b;
    --accent-color: #f2b84b;
    
    /* Warm Care Backgrounds */
    --bg-color: #eef2ef;
    --bg-secondary: #f6fbf6;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(180deg, #f6fbf6 0%, #edf5ee 100%);
    
    /* Text Colors */
    --text-color: #241f1c;
    --text-secondary: #657267;
    --text-light: #7d8a80;
    
    /* Border Colors */
    --border-color: #dfe7df;
    --border-light: #edf3ed;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(36, 31, 28, 0.06);
    --shadow-md: 0 8px 24px rgba(36, 31, 28, 0.08);
    --shadow-lg: 0 18px 48px rgba(36, 31, 28, 0.12);
    --shadow-primary: 0 8px 22px rgba(47, 125, 79, 0.18);
    --shadow-glow: 0 0 20px rgba(47, 125, 79, 0.14);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #2f7d4f;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===== Header & Navigation ===== */
header.topbar-gradient {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.custom-nav {
    background: transparent;
    padding: 14px 0;
}

.navbar.custom-nav .navbar-brand img {
    border-radius: var(--radius-sm);
}

.navbar.custom-nav .brand-gradient {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar.custom-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-right: 4px;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar.custom-nav .nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-bg);
}

.navbar.custom-nav .nav-link .small-icon {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-right: 0.25rem;
    transition: color 0.2s ease;
}

.navbar.custom-nav .nav-link:hover .small-icon {
    color: var(--primary-color);
}

/* Language Button */
.language-btn {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 0.4375rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.language-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-bg);
}

.language-btn .fa-globe {
    color: var(--text-light);
}

.language-btn:hover .fa-globe {
    color: var(--primary-color);
}

/* Start Button (CTA in nav) */
.nav-cta-btn {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-green);
}

/* Dropdown */
.dropdown-menu {
    border-radius: var(--radius-md) !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    color: var(--text-color) !important;
    padding: 0.625rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-bg) !important;
    color: var(--primary-color) !important;
}

/* Mobile Toggle */
.navbar-toggler {
    border-color: var(--border-color);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.15);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Footer ===== */
footer {
    background: var(--bg-card) !important;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

footer .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
}

footer .text-muted:hover {
    color: var(--primary-color) !important;
}

footer h4 {
    color: var(--text-color);
    font-size: 1.125rem;
}

footer h6 {
    color: var(--text-color);
    font-size: 0.9375rem;
    font-weight: 600;
}

footer .footer-divider {
    border-color: var(--border-color);
}

footer p.max-w-520 {
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* ===== Page Layout ===== */
body.page {
    background: var(--bg-color);
}

body.page main {
    background: transparent;
}

.page {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 0;
}

.page a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 2.5rem 0 4rem;
    background: var(--bg-hero);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(96, 165, 250, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* FREE Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.375rem 0.5rem 0.375rem 0.375rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

.badge-free {
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hero-title {
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: clamp(1.875rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .feature-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card--reverse {
        direction: ltr;
    }

    .bodyfat-tables {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 3rem;
    }

    .section, .steps, .features, .faq {
        padding: 3rem 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-card {
        padding: 1.25rem;
    }

    .preview-default,
    .preview-loading,
    .preview-result {
        padding: 1.25rem;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .example-card:hover {
        transform: translateY(-4px);
    }

    .feature-text h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .section-header h2,
    .steps h2,
    .faq h2 {
        font-size: 1.5rem;
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Max Width */
.max-w-520 { max-width: 520px; }

/* Brand Icon */
.brand-icon-img {
    border-radius: var(--radius-sm);
}

/* Notification */
.notification {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Upload Button Secondary */
.upload-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: var(--primary-dark);
}

.upload-btn.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.upload-btn.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Action Buttons */
.action-btn {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-share:hover {
    background: var(--info);
    color: #fff;
}

.btn-download {
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-border);
}

.btn-download:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Result Actions Grid */
.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

/* Upload Icon Circle */
.upload-icon-circle {
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.upload-icon-circle i {
    font-size: 1.5rem;
    color: var(--primary-color);
}
