﻿/* =========================================================
   CSMUSIC – Sjednocené vlastní styly (styly_modern.css)
   ========================================================= */

/* ---------- Základ a typografie ---------- */
.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: #ffffff;
}

.article-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
}

/* Detail článku – formátování obsahu a zvýraznění */
.article-content--clanek,
.article-content--clanek .article-title,
.article-content--clanek .article-text {
  font-family: 'Montserrat', sans-serif;
}

.article-content--clanek b {
  font-size: 1.4em;
  font-weight: 700;
  color: #f5f5f5;
  margin: 1em 0 0.5em;
  letter-spacing: 0.5px;
}

.entity-highlight {
  font-weight: bold;
  color: #c44dff;
  text-decoration: none;
  border-bottom: 1px dotted #c44dff;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.entity-highlight:hover {
  color: #e0aaff;
  text-decoration: underline;
}

.auto-link {
  color: #0066cc;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.auto-link:hover {
  color: #004080;
  background-color: #f0f8ff;
}

.album-highlight {
  font-weight: bold;
  color: #cc6600;
  text-decoration: none;
  border-bottom: 1px dotted #cc6600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.album-highlight:hover {
  color: #993300;
  text-decoration: underline;
}

.author-highlight {
  font-weight: bold;
  color: #4da6ff;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.author-highlight:hover {
  color: #80cfff;
  text-decoration: underline;
}

/* ---------- Tlačítka a akční lišty ---------- */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #222222;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.icon-btn:hover {
  background: #444444;
  transform: translateY(-2px);
}

.icon-btn.delete:hover {
  background: #b91c1c;
}

.article-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.article-actions .icon-btn {
  background-color: rgba(75, 85, 99, 0.8);
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.article-actions .icon-btn:hover {
  background-color: rgba(147, 51, 234, 0.9);
  transform: scale(1.05);
}

/* ---------- Responzivní layout detailů (album, interpret, koncert, turné, uživatel) ---------- */
.article-detail-responsive {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.main-image-wrapper {
  position: relative;
}

.main-image img,
.main-image-wrapper img {
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.main-image img:hover {
  transform: scale(1.02);
}

@media (min-width: 1024px) {
  .article-detail-responsive {
    display: block;
  }

  .main-image-wrapper {
    float: left;
    width: 55%;
    max-width: 600px;
    margin-right: 32px;
    margin-bottom: 16px;
  }

  .main-image-wrapper img {
    display: block;
  }

  .article-text {
    overflow: hidden;
  }
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Detail článku – obtékání obrázku na desktopu */
@media (min-width: 1024px) {
  .article-content--clanek {
    display: block;
    overflow: hidden;
  }

  .article-content--clanek .main-image-wrapper {
    float: left;
    width: 55%;
    max-width: 600px;
    margin-right: 32px;
    margin-bottom: 16px;
  }

  .article-content--clanek .main-image-wrapper img {
    width: 100%;
    max-height: none;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
  }

  .article-content--clanek .main-image-wrapper img:hover {
    transform: scale(1.02);
  }

  .article-content--clanek .article-text,
  .article-content--clanek #turne-section {
    overflow: visible;
  }
}

/* ---------- Rozbalovací text a mobilní sekce ---------- */
.interpret-text {
  transition: max-height 0.4s ease;
}

.interpret-text.expanded,
.interpret-text--interpret.expanded {
  max-height: none;
  overflow: visible;
}

.interpret-text.collapsed {
  max-height: 300px;
  overflow: hidden;
}

.interpret-text--interpret.collapsed {
  max-height: 100px;
  overflow: hidden;
}

.toggle-text {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  width: auto;
  min-width: 120px;
  background-color: rgba(75, 85, 99, 0.8);
  color: #ffffff;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.toggle-text:hover {
  background-color: rgba(147, 51, 234, 0.9);
}

.toggle-text--interpret {
  background-color: #7e22ce;
  font-weight: 600;
}

.toggle-text--interpret:hover {
  background-color: #9333ea;
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .toggle-text {
    display: none;
  }

  .interpret-text:not(.collapsed) {
    max-height: none;
    overflow: visible;
  }
}

.toggle-section-btn {
  transition: transform 0.3s ease;
}

.toggle-section-btn.rotated,
.rotated {
  transform: rotate(180deg);
}

.mobile-hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-visible {
  max-height: 2000px;
  overflow: visible;
  transition: max-height 0.4s ease;
}

/* ---------- Modály a dropdowny ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-overlay {
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1f2937;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
}

.menu-dropdown {
  min-width: 12rem;
}

.menu-dropdown ul li button:hover {
  background-color: #2d3748;
}

/* ---------- Responzivní video / embed ---------- */
.videoflexi {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.videoflexi iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Formuláře a validace ---------- */
.input-error {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626;
  outline: none;
}

/* ---------- Skrytí scrollbarů a karty / slidery ---------- */
.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

#kluby-slider::-webkit-scrollbar {
  display: none;
}

#kluby-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-thin {
  scrollbar-width: thin;
}

.scrollbar-thumb-gray-700::-webkit-scrollbar-thumb {
  background-color: #374151;
}

.scrollbar-track-gray-900::-webkit-scrollbar-track {
  background-color: #111827;
}

.klub-card {
  flex: 0 0 auto;
}

.album-card {
  min-width: 160px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ---------- Uživatelský profil – playlist dlaždice ---------- */
.playlist-tile {
  position: relative;
  width: 200px;
  height: 200px;
  background: #f0f0f0;
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.playlist-tile .icon-btn {
  position: absolute;
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.8);
  color: #111827;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transform: none;
}

.playlist-tile .edit-btn {
  top: 5px;
  left: 5px;
}

.playlist-tile .delete-btn {
  top: 5px;
  right: 5px;
}

/* ---------- Mapa krajů ---------- */
.kraj {
  fill: #888888;
  cursor: pointer;
  transition: fill 0.2s;
}

.kraj:hover {
  fill: #4ade80;
}

.kraj.active {
  fill: #22c55e !important;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.active-map-btn {
  background-color: #2563eb;
  color: #ffffff;
}

/* ---------- Charts ---------- */
.chart-tab,
.chart-subtab {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: #374151;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.chart-tab.active,
.chart-subtab.active {
  background-color: #9333ea;
}

.chart-card {
  background-color: #111827;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.chart-card:hover {
  background-color: #1a1a1a;
  transform: scale(1.02);
}

.chart-position {
  font-size: 1.5rem;
  font-weight: 700;
}

.chart-change-up {
  color: #00ff99;
}

.chart-change-down {
  color: #ff3366;
}

.chart-change-equal {
  color: #cccccc;
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.chart-title:hover {
  color: #c084fc;
}

.chart-artists {
  font-size: 0.875rem;
  color: #9ca3af;
}

.chart-weeks {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}