@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #121214;
  --text-primary: #F2F2F2;
  --text-secondary: #9E9E9E;
  --accent-bordo: #7A1E29;
  --accent-bordo-light: #A43542;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-bordo: 0 10px 25px rgba(122, 30, 41, 0.15);
  --shadow-bordo-hover: 0 8px 30px rgba(122, 30, 41, 0.25);
  /* Typography (isto kao O projektu) */
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  /* Admin UI Tokens */
  --bg: #0A0A0A;
  --bg-2: #111214;
  --text: #F2F2F2;
  --muted: #9E9E9E;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7A1E29;
  --accent2: #A43542;
}

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

html, body {
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg-primary, #0A0A0A) 0%, var(--bg-secondary, #111214) 100%);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: var(--font-sans);
  background-color: #0A0A0A !important;
  background: linear-gradient(180deg, #0A0A0A 0%, #121214 100%) !important;
  background-attachment: fixed !important;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.2s ease-in;
}

/* Only fade in on initial page load, not on navigation */
body.page-loading {
  opacity: 0;
  animation: pageFadeIn 0.4s ease-out forwards;
}

/* Brand Background - watermark uklonjen, ostaje samo logo u hero sekciji */
.brand-bg {
  position: relative;
}

/* Ako želiš da na nekoj stranici nema logotipa */
.no-brand::before,
.no-brand::after {
  display: none !important;
}

/* Typography Utilities */
.lnb-serif,
.font-serif {
  font-family: var(--font-display);
}

.lnb-mono,
.font-mono {
  font-family: var(--font-mono);
}

.lnb-sans {
  font-family: var(--font-sans);
}

/* Naslovi pesama na karticama / playeru — moderniji sans */
.track-card-title,
.card h3,
.seansa-card h3,
.gallery-item-title,
.global-player-title,
.track-hero h1 {
  font-family: var(--font-sans) !important;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-style: normal;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Noise overlay - removed, now handled by brand-bg::after */

/* Typography — isti sistem kao O projektu */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.45rem, 3vw, 2.1rem); }

p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.01em;
}

blockquote, .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
}

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-8 { height: 2rem; }
.h-24 { height: 6rem; }
.w-auto { width: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-bordo); }
.text-accent-light { color: var(--accent-bordo-light); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-accent { background-color: var(--accent-bordo); }
.bg-white\/3 { background-color: rgba(255, 255, 255, 0.03); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/8 { background-color: rgba(255, 255, 255, 0.08); }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l { border-left-width: 1px; }
.border-border { border-color: var(--border); }
.border-accent { border-color: var(--accent-bordo); }
.border-accent\/40 { border-color: rgba(122, 30, 41, 0.4); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-bordo { box-shadow: var(--shadow-bordo); }
.shadow-bordo-hover { box-shadow: var(--shadow-bordo-hover); }

.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-transform { transition-property: transform; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease { transition-timing-function: ease; }

.hover\:text-accent:hover { color: var(--accent-bordo); }
.hover\:text-accent-light:hover { color: var(--accent-bordo-light); }
.hover\:bg-accent:hover { background-color: var(--accent-bordo); }
.hover\:bg-accent-light:hover { background-color: var(--accent-bordo-light); }
.hover\:border-accent:hover { border-color: var(--accent-bordo); }
.hover\:scale-103:hover { transform: scale(1.03); }
.hover\:-translate-y-3:hover { transform: translateY(-3px); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }
.hover\:shadow-bordo-hover:hover { box-shadow: var(--shadow-bordo-hover); }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--accent-bordo);
  background: transparent;
  color: var(--accent-bordo);
  transition: all 300ms ease;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn:hover {
  background-color: var(--accent-bordo);
  color: var(--text-primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-bordo);
}

.btn-primary {
  background-color: var(--accent-bordo);
  color: var(--text-primary);
  border-color: var(--accent-bordo);
}

.btn-primary:hover {
  background-color: var(--accent-bordo-light);
  border-color: var(--accent-bordo-light);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-bordo);
  color: var(--accent-bordo);
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: all 300ms ease;
}

.card-hover {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.card-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(122, 30, 41, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(122, 30, 41, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(122, 30, 41, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(122, 30, 41, 0.25) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
  border-radius: 1rem;
}

.card-hover:hover {
  transform: translateY(-3px) perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  box-shadow: var(--shadow-bordo-hover);
  border-color: rgba(122, 30, 41, 0.3);
}

.card-hover:hover::after {
  opacity: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(122, 30, 41, 0.15) 0%, rgba(122, 30, 41, 0.25) 100%);
  border: 1px solid rgba(122, 30, 41, 0.4);
  color: var(--text-primary);
  font-family: var(--font-sans);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 30, 41, 0.6);
  background: linear-gradient(135deg, rgba(122, 30, 41, 0.25) 0%, rgba(122, 30, 41, 0.35) 100%);
  box-shadow: 0 4px 12px rgba(122, 30, 41, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.pill:hover::before {
  left: 100%;
}

.section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 3rem;
  }
}

.nav-link {
  position: relative;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: color 300ms ease;
  letter-spacing: -0.01em;
  display: inline-block;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-bordo);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms ease;
}

.nav-link:hover {
  color: var(--accent-bordo) !important;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--accent-bordo) !important;
  font-weight: 600;
}

.nav-link.active::after {
  transform: scaleX(1);
  box-shadow: 0 0 8px rgba(122, 30, 41, 0.4);
}

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:text-2xl { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:h-40 { height: 10rem; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Aspect Ratio */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Object Fit */
.object-cover {
  object-fit: cover;
}

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Display */
.hidden { display: none; }
.block { display: block; }

/* Max Width */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

/* Text Utilities */
.italic { font-style: italic; }
.leading-relaxed { line-height: 1.625; }
.whitespace-pre-line { white-space: pre-line; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uppercase { text-transform: uppercase; }

/* Hero Gradient */
.hero-gradient {
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Interaktivni Logo u Hero sekciji */
.logo-interactive {
  position: relative;
  display: inline-block;
  width: clamp(280px, 35vw, 600px);
  height: clamp(280px, 35vw, 600px);
  margin: 0 auto;
  cursor: pointer;
  perspective: 1200px;
}

.logo-interactive-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.95) saturate(85%);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  animation: logoFloat 6s ease-in-out infinite;
}

/* Hover efekti */
.logo-interactive:hover .logo-interactive-img {
  filter: grayscale(0%) brightness(1.1) saturate(120%);
  transform: scale(1.05) rotateY(5deg) rotateX(-3deg);
  box-shadow: 
    0 20px 60px rgba(122, 30, 41, 0.4),
    0 0 40px rgba(122, 30, 41, 0.3),
    inset 0 0 20px rgba(122, 30, 41, 0.1);
}

/* Glow efekat na hover */
.logo-interactive::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(122, 30, 41, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: -1;
}

.logo-interactive:hover::before {
  opacity: 1;
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Float animacija */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) rotateY(0deg);
  }
  50% {
    transform: translateY(-10px) rotateY(2deg);
  }
}

/* Pulse glow animacija */
@keyframes pulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .logo-interactive {
    width: clamp(200px, 60vw, 350px);
    height: clamp(200px, 60vw, 350px);
  }
  
  .logo-interactive-img {
    animation-duration: 8s;
  }
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(122, 30, 41, 0.1) 0%, transparent 70%);
  animation: fogFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fogFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.05); opacity: 0.5; }
}

/* Cover Image Filter */
.cover-filter {
  transition: filter 300ms ease, transform 300ms ease;
}

.cover-filter:hover {
  transform: scale(1.02);
  position: relative;
}

.cover-filter:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122, 30, 41, 0.15) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

/* Fan Fact Card */
.fanfact-card {
  border-left: 3px solid var(--accent-bordo);
  transition: all 300ms ease;
}

.fanfact-card:hover {
  transform: translateX(0.25rem) scale(1.01);
  box-shadow: 0 4px 20px rgba(122, 30, 41, 0.2);
  border-left-color: var(--accent-bordo-light);
}

/* Admin Gradient Text */
.admin-title {
  background: linear-gradient(135deg, #EAEAEA 0%, #7A1E29 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-bordo);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-bordo-light);
}

/* Focus States */
.focus\:outline-none:focus { outline: none; }
.focus\:outline-accent:focus { outline: 1px solid var(--accent-bordo); outline-offset: 2px; }

/* Alpine.js Cloak */
[x-cloak] { display: none !important; }

/* Input Styles */
input[type="text"],
input[type="url"],
input[type="date"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: all 300ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--accent-bordo);
  outline-offset: 2px;
  border-color: var(--accent-bordo);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(122, 30, 41, 0.1);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.text-danger {
  color: var(--accent-bordo);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Ensure body content is above background */
body > * {
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 10;
  background: transparent;
  animation: contentFadeIn 0.8s ease-out 0.2s both;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Transition Overlay */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-primary, #0A0A0A) 0%, var(--bg-secondary, #121214) 100%);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* Section fade-in animations */
.section {
  animation: sectionFadeIn 0.6s ease-out both;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card stagger animation */
.card {
  animation: cardFadeIn 0.5s ease-out both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Smooth link transitions */
a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not(.btn):not(.nav-link) {
  position: relative;
}

/* Elegant hover effects */
a:not(.btn):not(.nav-link):hover {
  opacity: 0.8;
}

/* ---- BRAND GLASS BACKGROUND (GLOBAL) ---- */
.brand-glass {
  position: relative;
  isolation: isolate;
  --bg:#0A0A0A; --bg2:#121214; --accent:#7A1E29; --line:rgba(255,255,255,.08);
}

/* LOGO sloj (ispod) - frosted glass efekat */
.brand-glass::before{
  content:"";
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(900px circle at 70% 15%, rgba(122,30,41,.05), transparent),
    radial-gradient(700px circle at 25% 85%, rgba(255,255,255,.035), transparent),
    url("/img/logopng.png") center 48% / clamp(320px, 42vw, 700px) no-repeat,
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  opacity:.08;
  filter: grayscale(100%) brightness(.9) saturate(.7);
  
  /* Frosted glass efekat - blur preko loga */
  backdrop-filter: blur(20px) saturate(1.1) brightness(0.95);
  -webkit-backdrop-filter: blur(20px) saturate(1.1) brightness(0.95);
}

/* Fini noise / tekstura */
.brand-glass::after{
  content:"";
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'>\
    <filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter>\
    <rect width='160' height='160' filter='url(%23n)' opacity='0.035'/>\
  </svg>");
  background-size:160px 160px; mix-blend-mode:overlay;
}

/* Mobile: manje, centralizovano */
@media (max-width:640px){
  .brand-glass::before{ 
    opacity:.06; 
    background:
      radial-gradient(520px circle at 70% 12%, rgba(122,30,41,.045), transparent),
      url("/img/logopng.png") center 48% / clamp(220px, 68vw, 420px) no-repeat,
      linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    backdrop-filter: blur(16px) saturate(1.05) brightness(0.95);
    -webkit-backdrop-filter: blur(16px) saturate(1.05) brightness(0.95);
  }
}

/* ============================================
   THEME-SPECIFIC HEADER & FOOTER STYLES
   ============================================ */

/* Header - base styles with theme colors */
nav.sticky {
  background: rgba(var(--bg-primary-rgb, 10, 10, 10), 0.3) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom-color: var(--border) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

nav.sticky.scrolled {
  background: rgba(var(--bg-primary-rgb, 10, 10, 10), 0.5) !important;
}

/* Midnight theme */
body[data-theme="midnight"] nav.sticky {
  background: rgba(10, 10, 10, 0.3) !important;
}

body[data-theme="midnight"] nav.sticky.scrolled {
  background: rgba(10, 10, 10, 0.5) !important;
}

/* Dusk theme */
body[data-theme="dusk"] nav.sticky {
  background: rgba(26, 26, 36, 0.3) !important;
}

body[data-theme="dusk"] nav.sticky.scrolled {
  background: rgba(26, 26, 36, 0.5) !important;
}

/* Noir theme */
body[data-theme="noir"] nav.sticky {
  background: rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="noir"] nav.sticky.scrolled {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Velvet theme */
body[data-theme="velvet"] nav.sticky {
  background: rgba(26, 10, 15, 0.3) !important;
}

body[data-theme="velvet"] nav.sticky.scrolled {
  background: rgba(26, 10, 15, 0.5) !important;
}

/* Midnight Purple theme */
body[data-theme="midnightPurple"] nav.sticky {
  background: rgba(10, 5, 15, 0.3) !important;
}

body[data-theme="midnightPurple"] nav.sticky.scrolled {
  background: rgba(10, 5, 15, 0.5) !important;
}

/* Midnight Blue theme */
body[data-theme="midnightBlue"] nav.sticky {
  background: rgba(5, 10, 15, 0.3) !important;
}

body[data-theme="midnightBlue"] nav.sticky.scrolled {
  background: rgba(5, 10, 15, 0.5) !important;
}

/* Footer - uses theme colors automatically via CSS variables */
footer {
  background: var(--bg-secondary) !important;
  border-top-color: var(--border) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

/* Theme-specific footer accents */
body[data-theme="midnightPurple"] footer {
  border-top-color: rgba(122, 74, 155, 0.2) !important;
}

body[data-theme="midnightBlue"] footer {
  border-top-color: rgba(74, 122, 155, 0.2) !important;
}

body[data-theme="velvet"] footer {
  border-top-color: rgba(139, 26, 46, 0.2) !important;
}

/* Opcija: ukloni brend pozadinu na specifičnoj stranici dodavanjem .no-brand na body */
.no-brand::before, .no-brand::after { display:none !important; }

/* ---- LNB BUTTONS (Admin & Navigation) ---- */
.lnb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.lnb-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.lnb-btn:hover::before {
  left: 100%;
}

.lnb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 30, 41, 0.2);
}

.lnb-btn:active {
  transform: translateY(0);
}

/* Accent button (primary) */
.lnb-btn--accent {
  background-color: var(--accent-bordo);
  color: var(--text-primary);
  border-color: var(--accent-bordo);
  box-shadow: 0 2px 8px rgba(122, 30, 41, 0.15);
}

.lnb-btn--accent:hover {
  background-color: var(--accent-bordo-light);
  border-color: var(--accent-bordo-light);
  box-shadow: 0 4px 16px rgba(122, 30, 41, 0.3);
  color: var(--text-primary);
}

.lnb-btn--accent.bg-transparent {
  background-color: transparent;
  border-color: var(--accent-bordo);
  color: var(--accent-bordo);
  box-shadow: none;
}

.lnb-btn--accent.bg-transparent:hover {
  background-color: var(--accent-bordo);
  border-color: var(--accent-bordo);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(122, 30, 41, 0.3);
}

/* Ghost button (secondary) */
.lnb-btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.lnb-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-bordo);
  color: var(--accent-bordo);
  box-shadow: 0 2px 8px rgba(122, 30, 41, 0.15);
}

/* Override bg-transparent inline style if needed */
.lnb-btn.bg-transparent {
  background-color: transparent !important;
}

/* ---- ADMIN COMPONENTS ---- */
.lnb-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 300ms ease;
}

.lnb-card:hover {
  border-color: rgba(122, 30, 41, 0.2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.lnb-link {
  color: var(--accent);
  text-decoration: none;
  transition: all 200ms ease;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.lnb-link:hover {
  color: var(--accent-bordo-light);
  text-decoration: underline;
}

.lnb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(122, 30, 41, 0.15);
  border: 1px solid rgba(122, 30, 41, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-bordo);
  font-family: var(--font-sans);
}

.small-muted {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.table-dark {
  width: 100%;
  border-collapse: collapse;
}

.table-dark thead {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--line);
}

.table-dark th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.table-dark td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-sans);
}

.table-dark tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.lnb-underline {
  position: relative;
  display: inline-block;
}

.lnb-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-bordo);
  opacity: 0.5;
}

/* Form inputs */
.lnb-card input[type="text"],
.lnb-card input[type="url"],
.lnb-card input[type="date"],
.lnb-card textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: all 300ms ease;
}

.lnb-card input[type="text"]:focus,
.lnb-card input[type="url"]:focus,
.lnb-card input[type="date"]:focus,
.lnb-card textarea:focus {
  outline: none;
  border-color: var(--accent-bordo);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(122, 30, 41, 0.2);
}

.lnb-card label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.lnb-card input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

/* Hero Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slideUp {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}

.animate-delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-delay-300 {
  animation-delay: 0.3s;
  opacity: 0;
}

.animate-delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}
