/*
Файл: assets/css/style.css
Назначение: Расширенная сетка (max-width: 1600px) убирает пустые края и скролл. Google Translate разблокирован.
*/

:root {
    /* НОЧЬ */
    --bg-body: #1e1e1e; 
    --bg-panel: #252526; 
    --text-main: #d4d4d4; 
    --text-muted: #858585; 
    --accent: #007acc; 
    
    --shadow-out: 4px 4px 10px rgba(0,0,0,0.5), -4px -4px 10px rgba(255,255,255,0.02);
    --shadow-in: inset 4px 4px 8px rgba(0,0,0,0.5), inset -4px -4px 8px rgba(255,255,255,0.02);
    --shadow-btn: 3px 3px 6px rgba(0,0,0,0.4), -3px -3px 6px rgba(255,255,255,0.03);
    --shadow-btn-active: inset 3px 3px 6px rgba(0,0,0,0.5), inset -3px -3px 6px rgba(255,255,255,0.01);
}

html.theme-day {
    /* ДЕНЬ */
    --bg-body: #e5e5e5; 
    --bg-panel: #f3f3f3; 
    --text-main: #333333; 
    --text-muted: #666666; 
    --accent: #005a9e; 
    
    --shadow-out: 4px 4px 10px rgba(0,0,0,0.1), -4px -4px 10px rgba(255,255,255,1);
    --shadow-in: inset 4px 4px 8px rgba(0,0,0,0.1), inset -4px -4px 8px rgba(255,255,255,1);
    --shadow-btn: 3px 3px 6px rgba(0,0,0,0.1), -3px -3px 6px rgba(255,255,255,1);
    --shadow-btn-active: inset 3px 3px 6px rgba(0,0,0,0.15), inset -3px -3px 6px rgba(255,255,255,0.8);
}

* { box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body { 
    background: var(--bg-body); 
    color: var(--text-main); 
    margin: 0; 
    padding: 0;
    height: 100vh;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ШАПКА */
.header {
    background: var(--bg-panel); 
    padding: 10px 25px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
    z-index: 50; 
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { width: 36px; height: 36px; border-radius: 50%; box-shadow: var(--shadow-btn); }
.logo-area h1 { margin: 0; font-size: 18px; font-weight: 800; }
.logo-area span { color: var(--accent); }

.header-controls { display: flex; align-items: center; gap: 12px; }

.btn-convex {
    background: var(--bg-panel); 
    border: none; 
    color: var(--text-main);
    padding: 10px 16px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 12px;
    box-shadow: var(--shadow-btn);
    transition: all 0.2s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-convex:hover { color: var(--accent); }
.btn-convex:active { box-shadow: var(--shadow-btn-active); transform: scale(0.97); }
.btn-convex.icon-only { width: 36px; height: 36px; padding: 0; font-size: 16px; }

.btn-primary {
    background: linear-gradient(135deg, #007acc, #005a9e); 
    color: #fff; border: none; padding: 0 16px; border-radius: 8px; 
    font-size: 12px; font-weight: bold; cursor: pointer; height: 36px;
    box-shadow: 3px 3px 8px rgba(0, 122, 204, 0.3), -3px -3px 8px rgba(255, 255, 255, 0.05);
    text-transform: uppercase; transition: 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { box-shadow: inset 3px 3px 8px rgba(0, 60, 100, 0.6); transform: scale(0.97); }

.lang-links { 
    display: flex; align-items: center; gap: 5px; background: var(--bg-panel); 
    padding: 0 10px; border-radius: 8px; height: 36px; 
    box-shadow: var(--shadow-in); font-size: 12px; font-weight: bold;
}
.lang-links a { color: var(--text-muted); text-decoration: none; padding: 4px 6px; border-radius: 4px; transition: 0.2s; }
.lang-links a.active, .lang-links a:hover { color: var(--accent); box-shadow: var(--shadow-btn); }

/* GOOGLE TRANSLATE - Отключены блокировки */
.goog-te-banner-frame { display:none !important; }
body { top:0 !important; }
#google_translate_element select { 
    background: transparent; color: var(--text-main); border: none; font-size: 12px; outline: none; cursor: pointer;
}

/* СЕТКА (РАСШИРЕНА ДО 1600px для широких экранов) */
.main-container {
    flex: 1; display: flex; justify-content: center; gap: 50px;
    max-width: 1600px; /* Было 1200, теперь заполняет экран, убирая пустоты */
    margin: 0 auto; padding: 25px; width: 100%; overflow: hidden;
}

/* ЛЕВАЯ КОЛОНКА (Расширена, чтобы убрать скролл) */
.left-col {
    flex: 1; max-width: 850px; /* Больше места элементам */
    overflow-y: auto; display: flex; flex-direction: column; gap: 20px; /* Уменьшен отступ между панелями */
    padding-right: 15px; padding-bottom: 25px;
}

/* ПРАВАЯ КОЛОНКА */
.right-col { width: 450px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

/* ПАНЕЛИ И ГРИД */
.panel { background: var(--bg-panel); border-radius: 12px; padding: 25px; box-shadow: var(--shadow-out); }
.panel h2 { margin: 0 0 18px 0; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(128,128,128,0.1); padding-bottom: 8px; }
label { display: block; font-size: 11px; font-weight: bold; color: var(--text-muted); margin: 0 0 6px 0; }

.input-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ПОЛЯ ВВОДА */
.input-concave {
    width: 100%; padding: 10px 12px; background: var(--bg-panel); 
    border: none; color: var(--text-main); border-radius: 6px; 
    font-size: 13px; outline: none; box-shadow: var(--shadow-in); transition: 0.2s ease;
}
.input-concave:focus { box-shadow: var(--shadow-in), 0 0 0 2px rgba(0, 122, 204, 0.3); }

/* Ползунки */
.range-compact { -webkit-appearance: none; width: 100%; height: 8px; background: var(--bg-panel); box-shadow: var(--shadow-in); border-radius: 4px; outline: none; }
.range-compact::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* ЧЕКБОКСЫ */
.tags-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag-neo {
    background: var(--bg-panel); color: var(--text-muted); padding: 8px 12px; 
    border-radius: 16px; font-size: 11px; font-weight: bold; cursor: pointer; 
    user-select: none; transition: 0.2s; box-shadow: var(--shadow-btn); margin: 0;
}
.tag-neo input { display: none; }
.tag-neo:has(input:checked) { color: var(--accent); box-shadow: var(--shadow-btn-active); }

.dynamic-field { display: none; animation: fadeIn 0.3s; padding-left: 10px; border-left: 3px solid var(--accent); }

/* ВИЗИТКА */
.card-preview-wrapper { 
    width: 450px; aspect-ratio: 1000 / 562; border-radius: 12px; 
    overflow: hidden; box-shadow: var(--shadow-out); cursor: grab; background: #000; 
}
.card-preview-wrapper:active { cursor: grabbing; }
#cardCanvas { width: 100%; height: 100%; display: block; }

/* ФОТО БЛОК */
.photo-compact { padding: 15px 20px; }
.photo-tools-row { display: flex; justify-content: space-between; align-items: center; }
.compact-btn { padding: 8px 12px; font-size: 11px; }

/* ГАЛЕРЕЯ */
#thumbnailGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; margin-bottom: 15px; margin-top: 10px; max-height: 200px; overflow-y: auto; padding: 10px; border-radius: 8px; box-shadow: var(--shadow-in); }
.thumb-item { width: 100%; aspect-ratio: 16/9; border-radius: 4px; cursor: pointer; opacity: 0.7; box-shadow: var(--shadow-btn); transition: 0.2s;}
.thumb-item:hover { opacity: 1; transform: translateY(-2px); }
.thumb-item.active { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }

/* Справка */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; padding: 20px; }
.modal-box { background: var(--bg-panel); border-radius: 12px; padding: 30px; box-shadow: var(--shadow-out); width: 100%; max-width: 600px; position: relative; display: flex; flex-direction: column; max-height: 90vh; }
.close-modal { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.close-modal:hover { color: #da3633; }
.modal-text { overflow-y: auto; font-size: 14px; line-height: 1.6; padding-right: 15px; color: var(--text-main); }

/* СКРОЛЛБАРЫ */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: var(--bg-panel); border-radius: 3px; box-shadow: var(--shadow-in); }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }