/* ==============================
   SKM – Slovenská Kreatívna Mapa
   Main Stylesheet v1.0.0
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #1a1208;
  --cream:   #f5f0e8;
  --warm:    #e8d9c0;
  --amber:   #c8842a;
  --rust:    #a3400f;
  --sage:    #5a7a5c;
  --muted:   #8a7a6a;
  --card-bg: #faf7f2;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* --- CUSTOM CURSOR --- */
.skm-cursor {
  width: 12px; height: 12px;
  background: var(--amber);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: multiply;
}
.skm-cursor.expand {
  width: 40px; height: 40px;
  background: var(--rust);
  opacity: 0.5;
}

/* --- NAVIGATION --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 132, 42, 0.15);
}

.site-branding .site-title a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-branding .site-title a span { color: var(--amber); }

.main-navigation ul {
  display: flex; gap: 2.5rem;
}
.main-navigation a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.main-navigation a:hover { color: var(--amber); }
.main-navigation .menu-cta a {
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1.4rem;
  font-weight: 500;
  transition: background 0.2s;
}
.main-navigation .menu-cta a:hover { background: var(--amber); color: var(--ink); }

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 0.5rem;
  color: var(--ink); font-size: 1.5rem;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: var(--ink); color: var(--cream);
  padding: 1rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.03em;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--rust); transform: translateY(-2px); color: var(--cream); }

.btn-secondary {
  display: inline-block;
  color: var(--ink); padding: 1rem 2.2rem;
  font-size: 0.9rem; font-weight: 400;
  border-bottom: 1px solid var(--amber);
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--amber); }

.btn-white {
  display: inline-block;
  background: var(--cream); color: var(--rust);
  padding: 1rem 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.3s;
}
.btn-white:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

/* --- SECTION LABELS --- */
.section-label {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem;
}
.section-label-line {
  width: 30px; height: 1px;
  background: var(--amber);
}
.section-label-text {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 4rem;
  max-width: 500px;
}

/* --- HERO --- */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 6rem;
  position: relative; z-index: 2;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--amber); }
.hero-eyebrow-text {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber); font-weight: 500;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1.0; font-weight: 900;
  letter-spacing: -0.02em; margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title em { font-style: italic; color: var(--amber); }

.hero-desc {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--muted); max-width: 420px;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--warm);
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.stat-label {
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.3rem;
}

.hero-right {
  position: relative; overflow: hidden;
  animation: fadeIn 1s 0.3s ease both;
}
.map-container {
  width: 100%; height: 100%;
  position: relative; background: var(--warm);
  display: flex; align-items: center; justify-content: center;
}
.map-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(200,132,42,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(163,64,15,0.08) 0%, transparent 50%);
}
.slovakia-svg {
  width: 85%; max-width: 520px;
  filter: drop-shadow(0 20px 40px rgba(26,18,8,0.15));
  animation: float 4s ease-in-out infinite;
}

/* Map Pins */
.map-pin {
  position: absolute; cursor: pointer;
  animation: pinFloat 2.5s ease-in-out infinite;
}
.map-pin:nth-child(2) { animation-delay: 0.4s; }
.map-pin:nth-child(3) { animation-delay: 0.8s; }
.map-pin:nth-child(4) { animation-delay: 1.2s; }
.map-pin:nth-child(5) { animation-delay: 0.6s; }
.map-pin:nth-child(6) { animation-delay: 1.0s; }

.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%; background: var(--amber);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 4px rgba(200,132,42,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse 2.5s ease-in-out infinite;
}
.pin-dot.dot-rust  { background: var(--rust); }
.pin-dot.dot-sage  { background: var(--sage); }

.map-pin:hover .pin-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 8px rgba(200,132,42,0.15);
}
.pin-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  font-size: 0.7rem; font-weight: 500;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.map-pin:hover .pin-tooltip { opacity: 1; }

/* --- SEARCH SECTION --- */
.search-section {
  background: var(--warm);
  padding: 5rem 6rem;
  display: flex; align-items: center; gap: 4rem;
}
.search-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700;
  flex: 1; line-height: 1.2;
}
.search-heading em { font-style: italic; color: var(--rust); }
.search-form { flex: 1; display: flex; border: 1.5px solid var(--ink); background: var(--cream); }
.search-form input[type="search"] {
  flex: 1; padding: 1.1rem 1.5rem;
  border: none; background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: var(--ink); outline: none;
}
.search-form input::placeholder { color: var(--muted); }
.search-form button[type="submit"] {
  padding: 1rem 1.8rem;
  background: var(--ink); color: var(--cream);
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--amber); color: var(--ink); }

/* --- CATEGORIES SECTION --- */
.categories-section {
  padding: 8rem 6rem;
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
}
.categories-section::before {
  content: 'SKM';
  position: absolute; right: -2rem; top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 20rem; font-weight: 900;
  color: rgba(255,255,255,0.02);
  line-height: 1; pointer-events: none;
}
.categories-section .section-title { color: var(--cream); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
}
.category-card {
  background: rgba(255,255,255,0.04);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
  cursor: pointer;
  text-decoration: none; color: var(--cream);
  display: block;
}
.category-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.category-card:hover { background: rgba(200,132,42,0.08); color: var(--cream); }
.category-card:hover::after { transform: scaleX(1); }

.cat-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem;
}
.cat-count {
  font-size: 0.75rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.cat-arrow {
  position: absolute; top: 2.5rem; right: 2rem;
  font-size: 1.2rem; color: var(--amber);
  opacity: 0; transform: translateX(-8px);
  transition: all 0.3s;
}
.category-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* --- PROFILES SECTION --- */
.profiles-section {
  padding: 8rem 6rem;
  background: var(--cream);
}
.profiles-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 4rem;
}
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--warm);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,18,8,0.1);
}
.profile-thumbnail {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
}
.profile-thumbnail-placeholder {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center;
  justify-content: center; font-size: 4rem;
}
.profile-thumbnail-placeholder.color-1 { background: linear-gradient(135deg, #e8d0b0, #c8a878); }
.profile-thumbnail-placeholder.color-2 { background: linear-gradient(135deg, #b8d4b8, #7a9e7a); }
.profile-thumbnail-placeholder.color-3 { background: linear-gradient(135deg, #d4b8c8, #9e7a9e); }

.profile-body { padding: 1.5rem; }
.profile-type {
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--amber);
  font-weight: 500; margin-bottom: 0.4rem;
}
.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem;
  color: var(--ink);
}
.profile-location {
  font-size: 0.8rem; color: var(--muted);
}
.profile-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 1rem;
}
.profile-tag {
  font-size: 0.65rem; letter-spacing: 0.05em;
  background: var(--warm); color: var(--muted);
  padding: 0.2rem 0.7rem; text-transform: uppercase;
}

/* --- CTA SECTION --- */
.cta-section {
  padding: 8rem 6rem;
  background: var(--rust); color: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -40%; right: 10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 900;
  line-height: 1.1; letter-spacing: -0.02em;
}
.cta-title span { display: block; font-style: italic; opacity: 0.7; }
.cta-content, .cta-features { position: relative; z-index: 2; }
.cta-desc { font-size: 1rem; line-height: 1.8; opacity: 0.8; margin: 1.5rem 0 2.5rem; }

.cta-features { display: flex; flex-direction: column; gap: 1.5rem; }
.cta-feat {
  display: flex; align-items: flex-start; gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cta-feat:last-child { border: none; padding: 0; }
.cta-feat-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.cta-feat-title { font-weight: 500; margin-bottom: 0.2rem; }
.cta-feat-desc { font-size: 0.82rem; opacity: 0.7; line-height: 1.6; }

/* --- FOOTER --- */
.site-footer {
  background: var(--ink); color: var(--cream);
  padding: 4rem 6rem 2rem;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900;
}
.footer-brand-name span { color: var(--amber); }
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}
.footer-nav-columns { display: flex; gap: 4rem; }
.footer-nav-col h4 {
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 1rem;
}
.footer-nav-col a {
  display: block; color: rgba(255,255,255,0.5);
  font-size: 0.85rem; margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
}

/* --- INNER PAGES --- */
.page-hero {
  background: var(--ink); color: var(--cream);
  padding: 10rem 6rem 6rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(200,132,42,0.1) 0%, transparent 60%);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900; line-height: 1;
  position: relative; z-index: 1;
}
.page-hero h1 em { color: var(--amber); }

.content-area { padding: 6rem; max-width: 1200px; margin: 0 auto; }
.content-area .entry-content {
  font-size: 1.05rem; line-height: 1.9; color: var(--ink);
}
.content-area .entry-content p { margin-bottom: 1.5rem; }
.content-area .entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  margin: 3rem 0 1rem; color: var(--ink);
}
.content-area .entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  margin: 2rem 0 0.8rem;
}

/* --- ARCHIVE / LOOP --- */
.archive-section { padding: 8rem 6rem; }
.archive-header { margin-bottom: 4rem; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--warm);
  overflow: hidden; transition: all 0.3s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(26,18,8,0.08);
}
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 1.5rem; }
.post-card-cat {
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--amber);
  font-weight: 500; margin-bottom: 0.5rem;
}
.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.8rem; color: var(--ink);
}
.post-card-excerpt {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.7;
}

/* --- PAGINATION --- */
.pagination {
  display: flex; justify-content: center;
  gap: 0.5rem; margin-top: 4rem;
}
.pagination a, .pagination span {
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--warm);
  font-size: 0.85rem; color: var(--ink);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--amber); border-color: var(--amber); color: var(--cream);
}

/* --- WIDGETS --- */
.widget-area { padding: 6rem; background: var(--warm); }
.widget { margin-bottom: 3rem; }
.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--amber);
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200,132,42,0.2); }
  50%       { box-shadow: 0 0 0 10px rgba(200,132,42,0.05); }
}
@keyframes pinFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .site-header { padding: 1.2rem 2rem; }
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 8rem 2rem 4rem; }
  .hero-right { height: 50vw; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2rem; }
  .search-section { flex-direction: column; padding: 4rem 2rem; }
  .section-categories, .profiles-section, .archive-section { padding: 5rem 2rem; }
  .site-footer { padding: 3rem 2rem 1.5rem; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-nav-columns { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 768px) {
  .main-navigation { display: none; }
  .main-navigation.toggled { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 1rem 2rem 2rem; border-bottom: 1px solid var(--warm); }
  .main-navigation.toggled ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: block; }
  .categories-grid { grid-template-columns: 1fr; }
  .profiles-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .profiles-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  body { cursor: auto; }
  .skm-cursor { display: none; }
  .content-area { padding: 3rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
}
