/* src/frontend/static/css/light.css */

/* Подключение модульных стилей светлой темы */
@import url('./light/variables.css');
@import url('./light/header.css');
@import url('./light/profile.css');
@import url('./light/portfolio.css');
@import url('./light/video-modal.css');
@import url('./light/card.css');
@import url('./light/notifications.css');

/* Modern Clean Light Theme (Legacy/Generic overrides) */

/* Base app styles for light theme */
html[data-theme="light"],
body[data-theme="light"],
:root[data-theme="light"] {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family-sans);
  font-size: var(--base-font-size);
}

/* Panels / cards */
.card,
.panel,
#video-modal {
  background: var(--panel);
  color: var(--text);
  /* border-radius: var(--radius); */
  box-shadow: var(--shadow);
  border: 1px solid var(--border-weak);
  scrollbar-width: none;
}

/* Links and muted text */
a,
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.small,
.meta,
.muted {
  color: var(--muted);
}

/* Tabs and chips */
.tab {
  background: transparent;
  color: var(--muted);
  border-radius: 30px;
  padding: 8px 30px;
  transition: color 0.2s, background 0.2s;
}
.tab:hover {
  color: var(--text);
  background: rgba(0,0,0,0.03);
}
.tab.active {
  background: var(--bg-active);
  color: var(--text-inverse); 
  font-weight: 300;
  border: 1px solid var(--border-active);
}

.chip:hover {
  background: var(--chip-bg);
  border-color: var(--chip-bg);
  transform: translateY(-1px);
  font-weight: 500;
  color: #000;
}

/* Card hover */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: var(--panel);
  transition: all 0.2s ease;
  border-color: var(--accent);
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  border: 0;
  font-family: var(--font-family-sans);
  transition: all 0.2s ease;
}

/* Primary */
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Secondary (warm) */
.btn-secondary {
  background: #EF4444; /* Red 500 */
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}
.btn-secondary:hover {
  background: #DC2626; /* Red 600 */
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

/* Ghost / outline button */
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: none;
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.03);
  color: var(--text);
  border-color: rgba(0,0,0,0.1);
}

/* Focus accessibility */
.btn:focus {
  outline: 3px solid rgba(31, 138, 112, 0.14);
  outline-offset: 2px;
}

/* Input / search */
.search {
  background: var(--chips-bg);
  border-radius: 12px;
  border: 1px solid var(--border-weak);
  padding: 10px;
}
.search input {
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

/* Logo: лучше подготовить две версии и менять через JS как было описано ранее */
.brand-title {
  color: var(--text);
  font-weight: 400;
}

/* Modal overlay */
#video-modal-overlay {
  background: var(--overlay);
}

/* small responsive polish */
@media (max-width: 700px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    display: block;
    text-align: center;
  }
}

/* Light scrollbar */
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #C7C7C7;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #A0A0A0;
}
