/**
 * Base Styles - 기본 설정 (변수, 리셋)
 * 최대 200줄 제한
 */

/* CSS Variables */
:root {
    /* Colors - Main Palette */
    --primary-color: #11468c;
    --primary-hover: #0d366e;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;

    /* Gradients (Kept for accents) */
    --bg-gradient-start: #11468c;
    --bg-gradient-end: #0d366e;

    /* Backgrounds - Light Mode */
    --bg-color: #f1f5f9;
    /* Slate 100 - Soft contrast */
    --card-bg: #ffffff;
    --input-bg: #ffffff;

    /* Text - Light Mode */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-on-primary: #ffffff;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

/* Body */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
        'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
        'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: var(--spacing-lg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Dark Mode Variables (Class-based) */
body.dark-mode {
    --bg-color: #09090b;
    /* Zinc 950 */
    --card-bg: #18181b;
    /* Zinc 900 */
    --input-bg: #27272a;
    /* Zinc 800 */
    --text-primary: #f4f4f5;
    /* Zinc 100 */
    --text-secondary: #a1a1aa;
    /* Zinc 400 */
    --border-color: #3f3f46;
    /* Zinc 700 */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

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

/* Focus Outline */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}