/* ZUŠ Karla Komzáka - Wireframe / Strukturální návrh */
/* Grafik: toto je podkladový wireframe. Barvy, fonty, spacing - vše je na tobě. */

:root {
  --primary: #2c3e50;
  --accent: #e67e22;
  --light: #f8f9fa;
  --gray: #6c757d;
  --border: #dee2e6;
  --white: #ffffff;
  --text: #333333;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ HEADER ============ */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav a:hover, .nav a.active {
  background: var(--light);
  text-decoration: none;
  color: var(--accent);
}

.nav .cta-btn {
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-left: 8px;
}

.nav .cta-btn:hover {
  background: #d35400;
  color: var(--white);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--primary), #34495e);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero h1 em {
  font-weight: 700;
  font-style: normal;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.hero .btn:hover {
  background: #d35400;
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-note {
  margin-top: 40px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.85rem;
  opacity: 0.7;
  display: inline-block;
}

/* ============ SEKCE ============ */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* ============ KARTY (univerzální) ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
}

.card-body {
  padding: 20px;
}

.card-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--light);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 12px;
}

/* ============ USP BLOKY ============ */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.usp-item {
  padding: 24px;
}

.usp-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.usp-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.usp-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ============ OBORY ============ */
.obory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.obor-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.obor-card:hover {
  border-color: var(--accent);
}

.obor-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.obor-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.obor-card p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ============ VIDEO SEKCE ============ */
.video-featured {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a2e;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
  cursor: pointer;
}

.video-placeholder span {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.video-card {
  cursor: pointer;
}

.video-card .card-img {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  position: relative;
}

.video-card .play-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  position: absolute;
}

/* ============ SOUBORY/KAPELY ============ */
.soubory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.soubor-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.soubor-card .card-img {
  height: 180px;
}

.soubor-card .card-body h3 {
  margin-bottom: 4px;
}

.soubor-card .card-body .genre {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============ KONTAKT ============ */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.kontakt-info h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.kontakt-info p {
  margin-bottom: 8px;
  color: var(--gray);
}

.kontakt-info strong {
  color: var(--text);
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  display: block;
  padding: 3px 0;
  font-size: 0.9rem;
}

.footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============ STRÁNKA NOVINKY ============ */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.8;
}

.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray);
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fef5ed;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  padding: 24px 0 60px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 60px;
}

.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray);
}

.pagination .active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ============ CTA LINK ============ */
.more-link {
  text-align: center;
  margin-top: 32px;
}

.more-link a {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
}

.more-link a:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* ============ DESIGNER NOTE ============ */
.designer-note {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: #92400e;
}

.designer-note strong {
  color: #78350f;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hamburger { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; width: 100%; }
  .nav .cta-btn { margin-left: 0; text-align: center; }

  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; }

  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .news-list { grid-template-columns: 1fr; }

  .cards { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .usp-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .obory-grid { grid-template-columns: 1fr 1fr; }
}
