/* PrimaCello Custom Styles */

:root {
  --code-max-height: 60rem;
  --primary-color: #8b5a2b;
  --accent-color: #d4a574;
  --cello-brown: #5c3d2e;
  --header-bg: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #6b3d22 100%);
}

/* ========================================
   КРАСИВАЯ ШАПКА САЙТА
   ======================================== */

/* Основной хедер */
.gdoc-header {
  background: var(--header-bg) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid var(--accent-color);
}

/* Логотип/название сайта */
.gdoc-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gdoc-brand__img {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  width: auto !important;
  height: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

/* Контейнер для логотипа */
.gdoc-brand__img img,
.gdoc-brand img,
.gdoc-brand svg {
  width: auto !important;
  height: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  filter: brightness(1.1) drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

/* Скрываем логотип */
.gdoc-brand__img {
  display: none !important;
}

/* Стилизация названия - скрываем оригинальный текст */
.gdoc-brand__title {
  font-family: 'Georgia', serif !important;
  font-weight: bold;
  font-size: 0 !important;  /* Скрываем оригинальный текст */
  letter-spacing: 0.5px;
}

/* Показываем "🎻 Prima" белым + "Cello" золотым */
.gdoc-brand__title::before {
  content: "🎻 Prima";
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.gdoc-brand__title::after {
  content: "Cello";
  font-size: 1.5rem;
  color: #d4a574;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Ховер эффект */
.gdoc-brand:hover .gdoc-brand__title::before {
  color: #d4a574;
  transition: color 0.3s ease;
}

.gdoc-brand:hover .gdoc-brand__title::after {
  color: #fff;
  transition: color 0.3s ease;
}

/* Иконки в хедере */
.gdoc-header .gdoc-icon {
  color: #fff !important;
  transition: transform 0.2s ease, color 0.2s ease;
}

.gdoc-header .gdoc-icon:hover {
  color: var(--accent-color) !important;
  transform: scale(1.1);
}

/* Кнопки в хедере */
.gdoc-header__link,
.gdoc-header__control {
  color: #fff !important;
  opacity: 0.9;
}

.gdoc-header__link:hover,
.gdoc-header__control:hover {
  opacity: 1;
  color: var(--accent-color) !important;
}

/* Поиск */
.gdoc-search__input {
  border-radius: 20px !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  transition: all 0.3s ease;
}

.gdoc-search__input::placeholder {
  color: rgba(255,255,255,0.6) !important;
}

.gdoc-search__input:focus {
  background: rgba(255,255,255,0.95) !important;
  color: #333 !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

/* Темная тема - шапка остается такой же */
[data-theme="dark"] .gdoc-header {
  background: linear-gradient(135deg, #1a0f0a 0%, #2c1810 50%, #3d2216 100%) !important;
}

/* ========================================
   УЛУЧШЕННАЯ ТИПОГРАФИКА
   ======================================== */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #2c3e50;
}

/* Брендинг */
.gdoc-brand__title {
  font-family: 'Georgia', serif !important;
  font-weight: bold;
}

/* Ссылки */
a {
  transition: color 0.2s ease;
}

/* Карточки */
.gdoc-columns {
  gap: 1.5rem;
}

/* Подсказки (hints) */
.gdoc-hint.tip {
  border-color: #27ae60;
}

.gdoc-hint.note {
  border-color: #3498db;
}

.gdoc-hint.important {
  border-color: #e74c3c;
}

/* Таблицы */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #f8f9fa;
  font-weight: 600;
}

/* Детали/спойлеры */
details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: #3498db;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gdoc-page__content {
  animation: fadeIn 0.3s ease;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .gdoc-page__content {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
}

/* Темная тема */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: #ecf0f1;
}

[data-theme="dark"] details {
  background: #2c3e50;
}

[data-theme="dark"] th {
  background: #34495e;
}

.icon-grid {
  width: 8rem;
  height: 8rem;
  margin: 0.2em;
  text-align: center;
  padding: 0.3em;
}

.icon-grid__line {
  height: 4rem;
}

.icon-grid__line .gdoc-icon {
  width: 3em;
  height: 3em;
}

.icon-grid__line--text {
  font-size: 0.8em;
}

/* ========================================
   КРАСИВЫЙ ФУТЕР
   ======================================== */

.gdoc-footer {
  background: var(--header-bg) !important;
  border-top: 3px solid var(--accent-color);
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

.gdoc-footer__item,
.gdoc-footer a,
.gdoc-footer__link {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.2s ease;
}

.gdoc-footer a:hover,
.gdoc-footer__link:hover {
  color: var(--accent-color) !important;
}

/* Добавляем возрастную маркировку и копирайт */

/* Лицензия в футере */
.gdoc-footer__item--license {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.8rem;
}

