/*
   AskStock v10: Asset Studio Styles
   Strictly aligned with original Design Tokens
*/

/* Global Utilities */
* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

:root {
    /* Original Color Palette (Preserved) */
    --bg: #f3f5f1;
    --panel: #ffffff;
    --text: #1b1d1a;
    --muted: #61655f;
    --accent: #1E78FF;
    --accent-strong: #1667E6;
    --accent-soft: #E8F2FF;
    --accent-ink: #ffffff;
    --accent-2: #9B46FF;
    --accent-2-strong: #7B2FF7;
    --brand-gradient: linear-gradient(90deg, #1E78FF 0%, #9B46FF 100%);
    --line: #dde1d9;
    --shadow: 0 18px 40px rgba(20, 22, 18, 0.1);

    --success: #2f6f3e;
    --warning: #a4482d;

    /* Studio Layout Config */
    --left-width: 320px;
    --right-width: 300px;
    --header-height: 60px;
    /* Semantic mapping */
    --studio-bg: var(--bg);
    --studio-panel: var(--panel);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --text-tertiary: #9CA3AF;

    --border-light: var(--line);
    --accent-primary: var(--accent);
    --accent-light: var(--accent-soft);
    --results-pad: 24px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* V10 Studio Specifics */
    --studio-canvas: #ffffff;
    --studio-bg: #f3f5f1;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans KR', 'Noto Sans KR', 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
    font-size: 14px;
}

body.legal-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
}

/* Original Gradient Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.7), transparent 50%),
        radial-gradient(circle at 85% 0%, rgba(30, 120, 255, 0.18), transparent 45%),
        radial-gradient(circle at 30% 90%, rgba(97, 101, 95, 0.1), transparent 55%);
    z-index: -1;
    pointer-events: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.feedback-fab {
    --feedback-fab-shift-x: 0;
    --feedback-fab-shift-y: 0;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 120;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--accent-2);
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transform: translate(var(--feedback-fab-shift-x), var(--feedback-fab-shift-y));
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feedback-fab:hover {
    --feedback-fab-shift-y: -2px;
    background: var(--accent-2-strong);
    box-shadow: 0 8px 16px rgba(155, 70, 255, 0.25);
}

.feedback-fab:active {
    --feedback-fab-shift-y: 0;
}
