/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown:      #6b3a2a;
  --brown-dark: #4a2518;
  --brown-mid:  #8b5e3c;
  --cream:      #fdf6ee;
  --cream-dark: #f0e0c8;
  --accent:     #c0392b;
  --text:       #2c1a0e;
  --text-light: #5a3e2b;
  --shadow:     rgba(0,0,0,0.15);
  --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 60%, var(--brown-mid) 100%);
  color: #fff;
  padding: 28px 40px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 16px var(--shadow);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.header-paw {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-text p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 4px;
  font-style: italic;
}

/* ===== NAV ===== */
nav {
  background: var(--brown-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

nav ul li a {
  display: block;
  padding: 14px 22px;
  color: #f5e6d8;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--cream-dark);
  transition: left 0.2s, right 0.2s;
  border-radius: 2px 2px 0 0;
}

nav ul li a:hover::after,
nav ul li.active a::after {
  left: 10%; right: 10%;
}

nav ul li a:hover,
nav ul li.active a {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ===== MAIN ===== */
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--brown-mid);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 32px;
  margin-bottom: 32px;
}

.card h2 {
  font-size: 1.3rem;
  color: var(--brown-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== INDEX – INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--brown-mid);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}

.info-card .icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.info-card .note {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 4px;
}

/* Hero text block */
.hero-text {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 32px;
  font-size: 1.1rem;
  line-height: 1.8;
  box-shadow: 0 4px 20px var(--shadow);
}

.hero-text .big-letter {
  font-size: 4rem;
  font-weight: 900;
  float: left;
  line-height: 0.85;
  margin-right: 6px;
  margin-top: 4px;
  color: var(--cream-dark);
}

/* ===== GALLERY ===== */
.gallery-section {
  margin-bottom: 40px;
}

.gallery-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--cream-dark);
  border-left: 5px solid var(--brown-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thumb-grid a {
  display: block;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.thumb-grid a:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.thumb-grid a img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

/* ===== LIGHTBOX ===== */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

#lightbox-overlay.active {
  display: flex;
}

#lightbox-img {
  max-width: 800px;
  max-height: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
}

#lightbox-caption {
  color: #fff;
  margin-top: 14px;
  font-size: 0.95rem;
  opacity: 0.8;
  text-align: center;
}

#lightbox-close {
  position: fixed;
  top: 20px; right: 28px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
  background: none;
  border: none;
}

#lightbox-close:hover { opacity: 1; }

#lightbox-prev,
#lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

#lightbox-prev { left: 16px; }
#lightbox-next { right: 16px; }
#lightbox-prev:hover, #lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ===== CO JIŽ UMÍM ===== */
.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.skills-list li {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px var(--shadow);
}

.skills-list li .skill-icon { font-size: 1.5rem; }

.photo-center {
  text-align: center;
  margin: 28px 0;
}

.photo-center img {
  display: inline-block;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px var(--shadow);
  max-width: 380px;
  width: 100%;
}

/* ===== HLÁŠENÍ ŠKOD ===== */
.damage-report {
  text-align: center;
  padding: 20px;
}

.damage-report .bomb-emoji {
  font-size: 6rem;
  display: block;
  margin: 20px auto;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.damage-report p {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.damage-report .warning {
  display: inline-block;
  margin-top: 24px;
  background: #fff3cd;
  border: 2px solid #f0c040;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-weight: 700;
  color: #7a5800;
  font-size: 1rem;
}

/* ===== VIDEO ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.video-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.video-card:hover { transform: translateY(-4px); }

.video-card h3 {
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown-dark);
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-card video {
  width: 100%;
  display: block;
  background: #000;
}

/* ===== FOOTER ===== */
footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  margin-top: auto;
}

footer a {
  color: var(--cream-dark);
  margin: 0 8px;
  transition: color 0.2s;
}

footer a:hover { color: #fff; }

.footer-links { margin-bottom: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  header { padding: 18px 20px; }
  .header-text h1 { font-size: 1.4rem; }
  nav ul li a { padding: 12px 14px; font-size: 0.85rem; }
  main { padding: 24px 16px; }
  .hero-text { padding: 24px 22px; }
  #lightbox-prev { left: 4px; }
  #lightbox-next { right: 4px; }
}