/* === THEMES-UI.CSS === */
/* assets/css/themes-ui.css */
/* НАЗНАЧЕНИЕ: UI-особенности каждой эстетики (кнопки, границы, анимации) */
/* РАЗМЕР: ~300 строк */

/* --- Общие правила для всех тем --- */
body {
    font-family: var(--sm-font-body);
    background: var(--sm-bg-primary);
    color: var(--sm-text-primary);
}
h1, h2, h3, h4, .sm-display {
    font-family: var(--sm-font-display);
}
.sm-card {
    background: var(--sm-bg-secondary);
    border-radius: var(--sm-radius-lg);
    box-shadow: var(--sm-shadow);
    border: 1px solid var(--sm-border);
    padding: 10px;
}

/* --- CTA кнопки по темам --- */
.sm-btn-primary {
    border-radius: var(--sm-radius);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--sm-font-body);
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Terminal: solid flat зеленый */
.theme-terminal .sm-btn-primary {
    background: var(--sm-accent);
}
.theme-terminal .sm-btn-primary:hover {
    background: var(--sm-accent-hover);
}

/* Soft: gradient sky->teal */
.theme-soft .sm-btn-primary {
    background: var(--sm-gradient);
}
.theme-soft .sm-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Premium: gradient золото->бронза, темный текст */
.theme-premium .sm-btn-primary {
    background: var(--sm-gradient);
    color: hsl(30, 20%, 10%);
}
.theme-premium .sm-btn-primary:hover {
    filter: brightness(1.15);
}

/* Gradient: 3-color gradient */
.theme-gradient .sm-btn-primary {
    background: var(--sm-gradient);
}
.theme-gradient .sm-btn-primary:hover {
    box-shadow: var(--sm-glow);
    transform: translateY(-1px);
}

/* Aurora: warm gradient оранж->розовый */
.theme-aurora .sm-btn-primary {
    background: var(--sm-gradient);
}
.theme-aurora .sm-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* --- Вторичные кнопки --- */
.sm-btn-secondary {
    background: transparent;
    border: 1px solid var(--sm-accent);
    color: var(--sm-accent);
    border-radius: var(--sm-radius);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--sm-font-body);
    font-weight: 500;
    transition: all 0.2s ease;
}
.sm-btn-secondary:hover {
    background: var(--sm-accent-muted);
}

/* Terminal: ghost */
.theme-terminal .sm-btn-secondary {
    border-style: dashed;
}

/* Premium: тонкий золотой border */
.theme-premium .sm-btn-secondary {
    border-width: 1px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85em;
}

/* Gradient: gradient border */
.theme-gradient .sm-btn-secondary {
    border-image: var(--sm-gradient) 1;
}

/* --- Terminal-specific UI --- */
.theme-terminal .sm-cursor-blink::after {
    content: '_';
    animation: sm-blink 1s step-end infinite;
}
@keyframes sm-blink {
    50% { opacity: 0; }
}
.theme-terminal .sm-section-title::before {
    content: '> ';
    color: var(--sm-accent);
    font-family: var(--sm-font-display);
}
.theme-terminal .sm-code-label {
    background: var(--sm-bg-tertiary);
    padding: 2px 6px;
    border-radius: 2px;
    font-family: var(--sm-font-display);
    font-size: 0.85em;
}

/* --- Premium-specific UI --- */
.theme-premium .sm-caps-label {
    text-transform: uppercase;
    font-size: 0.7em;
    letter-spacing: 0.12em;
    color: var(--sm-accent);
    font-weight: 600;
}
.theme-premium .sm-section-divider {
    border: none;
    border-top: 1px solid var(--sm-accent-muted);
    margin: 20px 0;
}
.theme-premium .sm-metric-value {
    font-family: var(--sm-font-display);
    font-weight: 300;
}

/* --- Gradient-specific UI --- */
.theme-gradient .sm-gradient-text {
    background: var(--sm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.theme-gradient .sm-glass-card {
    background: hsla(230, 16%, 8%, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(220, 80%, 60%, 0.1);
}
.theme-gradient.light-theme .sm-glass-card {
    background: hsla(0, 0%, 100%, 0.7);
    border-color: hsla(230, 15%, 88%, 0.5);
}
.theme-gradient .sm-pill-badge {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75em;
    font-weight: 600;
}

/* --- Aurora-specific UI --- */
.theme-aurora .sm-aurora-bg {
    background-image: var(--sm-gradient-bg);
}
.theme-aurora .sm-warm-glow:hover {
    box-shadow: 0 0 20px hsla(25, 95%, 55%, 0.2);
}
.theme-aurora .sm-gradient-line {
    height: 1px;
    background: linear-gradient(to right, var(--sm-accent), transparent);
    margin: 20px 0;
}

/* --- Карточки hover по темам --- */
.theme-soft .sm-card:hover,
.theme-gradient .sm-card:hover,
.theme-aurora .sm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-lg);
    transition: all 0.3s ease-out;
}
.theme-terminal .sm-card:hover {
    border-color: var(--sm-accent);
}
.theme-premium .sm-card:hover {
    border-color: var(--sm-accent-muted);
}

/* --- Focus visible --- */
:focus-visible {
    outline: 2px solid var(--sm-accent);
    outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Переключатель тем (5 кружков) --- */
.sm-theme-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}
.sm-theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.sm-theme-dot:hover {
    transform: scale(1.2);
}
.sm-theme-dot.active {
    border-color: var(--sm-text-primary);
}
.sm-theme-dot[data-theme="terminal"] { background: hsl(160, 84%, 39%); }
.sm-theme-dot[data-theme="soft"] { background: hsl(200, 80%, 50%); }
.sm-theme-dot[data-theme="premium"] { background: hsl(42, 65%, 52%); }
.sm-theme-dot[data-theme="gradient"] { background: hsl(217, 91%, 60%); }
.sm-theme-dot[data-theme="aurora"] { background: hsl(25, 95%, 55%); }