/* Nails Academy – kurszanokte.rs */
:root {
  --bg-deep: #1a0a12;
  --bg-mid: #2d0f1c;
  --gradient-start: #4a0e2e;
  --gradient-end: #1f0612;
  --accent: #e91e8c;
  --accent-hover: #ff4da6;
  --text: #f8e8ef;
  --text-muted: rgba(248, 232, 239, 0.72);
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --nav-width: 72px;
}

/* Bootstrap uvek uz tamu – bela stranica ako naš fajl ne učita */
html[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg-deep);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--text-muted);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

/* Background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 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='%23e91e8c' fill-opacity='0.03'%3E%3Cpath d='M30 0l4 8 8 4-8 4-4 8-4-8-8-4 8-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Sidebar nav */
.site-nav {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
  background: rgba(233, 30, 140, 0.15);
}

.site-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #9c1458);
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.4);
}

.site-nav a span[aria-hidden] {
  font-size: 1.25rem;
  line-height: 1;
}

/* Main content offset for nav on larger screens */
main {
  position: relative;
  z-index: 1;
  margin-left: calc(var(--nav-width) + 1.5rem);
}

/* Sections */
section {
  padding: 4.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Hero */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

#home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient-end) 0%, transparent 50%, var(--bg-deep) 100%),
    url("img/nokti1.png") center/cover no-repeat;
  opacity: 0.45;
  z-index: -1;
}

#home .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

#home h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

#home .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.btn-pink {
  background: linear-gradient(135deg, var(--accent), #b01060);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pink:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.45);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-family: "Outfit", sans-serif;
  color: var(--accent);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* About */
#o-nama .about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 991px) {
  #o-nama .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-image-wrap {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.about-image-wrap img {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.feature-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 576px) {
  .feature-mini {
    grid-template-columns: 1fr;
  }
}

.feature-mini .item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.feature-mini .item strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Services / pricing */
#usluge .card-pricing {
  background: linear-gradient(180deg, var(--glass), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.25s, border-color 0.25s;
}

#usluge .card-pricing:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 140, 0.35);
}

#usluge .card-pricing.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(233, 30, 140, 0.2);
  position: relative;
}

#usluge .badge-popular {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#usluge .price {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  color: #fff;
}

#usluge .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

#usluge .list-check {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

#usluge .list-check li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

#usluge .list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

#usluge .card-pricing-top {
  margin: -2rem -1.5rem 1.25rem;
  border-radius: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16/10;
}

#usluge .row > .col:first-child .card-pricing-top,
#usluge .card-pricing.featured .card-pricing-top {
  border-radius: 20px 20px 0 0;
}

#usluge .card-pricing .card-pricing-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Blog */
#blog .card-blog {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s;
}

#blog .card-blog:hover {
  transform: translateY(-3px);
}

#blog .card-blog img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

#blog .card-body {
  padding: 1.25rem;
}

#blog .card-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-family: "Outfit", sans-serif;
}

#blog .card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

#blog a.stretched-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Gallery */
#galerija .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  #galerija .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

#galerija .gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

#galerija .gallery-grid a:hover img {
  transform: scale(1.02);
}

/* Form */
#prijava {
  padding-bottom: 5rem;
}

#prijava .form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  #prijava .form-wrap {
    grid-template-columns: 1fr;
  }
}

#prijava .form-control,
#prijava .form-select {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

#prijava .form-control:focus,
#prijava .form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.25);
}

#prijava .form-control::placeholder {
  color: var(--text-muted);
}

#prijava label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

#form-success {
  --bs-alert-bg: rgba(25, 135, 84, 0.2);
  --bs-alert-border-color: rgba(25, 135, 84, 0.5);
  --bs-alert-color: #d1e7dd;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: calc(var(--nav-width) + 1.5rem);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Mobile nav: bottom bar on small screens */
@media (max-width: 768px) {
  .site-nav {
    left: 50%;
    top: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100% - 2rem);
    border-radius: 16px;
    padding: 0.5rem;
  }

  .site-nav a {
    width: 44px;
    height: 44px;
  }

  main,
  .site-footer {
    margin-left: 0;
    padding-bottom: 5.5rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
