/*
Theme Name: Mapa Nepomucenów FMPHR
Author: Antigravity
Description: Custom theme for the Nepomucen Map project.
Version: 1.1
*/

:root {
  --color-bg: #0f0f11;
  --color-bg-alt: #1a1a1e;
  --color-primary: #d4af37;
  --color-text: #e0e0e0;
  --color-text-muted: #999;
  --font-heading: 'TT Ramillas Decor', serif;
  --font-body: 'Special Elite', monospace;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
*, *::before, *::after {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  cursor: default !important;
  box-sizing: border-box;
}

html { height: 100%; }
body {
  margin: 0; padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  min-height: 100vh;
  padding-bottom: 250px;
}

body::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Utility Cursors */
a, button, .btn, .collage-item, .lightbox-close, .navbar a, .hamburger, .nav-links a {
  cursor: pointer !important;
}

/* Navbar Component */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 0;
  z-index: 1000; transition: var(--transition-fast);
  background: rgba(15, 15, 17, 0); backdrop-filter: blur(0px);
}

.navbar.scrolled {
  padding: 1rem 0; background: rgba(15, 15, 17, 0.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}

.logo {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
  color: var(--color-primary); font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700; letter-spacing: 2px;
}

.nav-links { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }

.nav-links a {
  color: var(--color-text); text-decoration: none; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition-fast);
  position: relative; padding: 0.5rem 0;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--color-primary); transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6);
}
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: var(--color-primary); transition: var(--transition-fast); }

/* Footer Component */
.footer { padding: 4rem 0 2rem; text-align: center; position: absolute; bottom: 0; left: 0; width: 100%; z-index: 10; border-top: 1px solid rgba(212, 175, 55, 0.1); background-color: var(--color-bg); }
.footer-bottom { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-bottom p { margin: 0.5rem 0; }
.footer-bottom em { font-style: normal; opacity: 0.7; }

/* Responsive Navigation */
@media (max-width: 768px) {
  .navbar { padding: 1rem 0; background: rgba(15, 15, 17, 0.95); }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: var(--color-bg); flex-direction: column; justify-content: center;
    align-items: center; transition: var(--transition-slow);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); visibility: hidden;
  }
  .nav-links.active { right: 0; visibility: visible; }
  .hamburger { display: flex; z-index: 1001; }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Global Transition Components */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal.right {
  transform: translateX(30px);
}
.reveal.right.active {
  transform: translateX(0);
}
