/* =============================================================================
   АРХИТЕКТУРА: ATOMS (Атомы UI)
   Назначение: Самые мелкие, неделимые элементы интерфейса. 
   Правило: Атомы не имеют внешних отступов (margin: 0), только внутренние.
   Этот файл является часть Tier 1 (базовый слой).
   ============================================================================= */

/* --- 1. Поля ввода (Inputs) - ВЫНЕСЕНО В office_atoms.css --- */

/* --- 2. Текстовые области (Textarea) - ВЫНЕСЕНО В office_atoms.css --- */

/* --- 3. Выпадающие списки (Selects) - ВЫНЕСЕНО В office_atoms.css --- */

/* --- 4. Типографика (Typography) --- */
.atom-label {
    display: block;
    font-size: var(--font-size-base);
    /* Slightsly smaller for high density */
    font-weight: 600;
    color: var(--tg-theme-text-color);
}

.atom-hint {
    font-size: var(--font-size-xs);
    color: var(--tg-theme-hint-color);
    line-height: 1.4;
}

.atom-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* --- 5. Кнопки (Buttons) --- */
.atom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    /* More compact */
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.atom-btn:active {
    transform: scale(0.98);
}

/* --- 6. Изображения и Плейсхолдеры --- */
.atom-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--tg-theme-secondary-bg-color);
    aspect-ratio: 5 / 3;
}

.atom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atom-image--premium {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: saturate(1.15) contrast(1.06) brightness(1.05);
    transition: filter 0.3s ease;
}

/* Тёплый фирменный overlay поверх фото (Warm Bright) */
.atom-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 180, 60, 0.06) 0%, rgba(255, 120, 30, 0.03) 100%);
    border-radius: inherit;
    z-index: 1;
}

/* Контейнеры для редактирования (Canvas) и кнопки ВЫНЕСЕНЫ В office_atoms.css */

/* --- 7. Индикаторы (Signals) --- */
.atom-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 24px;
    font-size: 12px;
    font-weight: 600;
}

.atom-signal-lamp {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8e8e93;
}