* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Geist', sans-serif;
  background: linear-gradient(45deg, #131927 0%, rgb(48, 57, 79, 100%));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #eaeaea;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* malo slabije */
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(230,126,34,.12), transparent 20%),
    radial-gradient(circle at 80% 60%, rgba(230,126,34,.08), transparent 25%);
  z-index: -2;
  animation: glowMove 18s ease-in-out infinite alternate;
}

@keyframes glowMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(-40px, -60px); }
}

.navbar {
  padding: 28px 40px 18px; /* povučen malo dole */
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.nav-logo {
  height: 48px;
  width: auto;

}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 6px;
  position: relative;
  cursor: pointer; /* dodaj ovo */
}

.nav-links a.active {
  color: #e67e22;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #e67e22;
  border-radius: 2px;
}

.navbar {
  padding: 20px 32px;
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap:28px;
}

.nav-logo {
  height: 42px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}


.kbd {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  font-size: 11px;
}

/* LAYOUT */
.docs-layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  padding-top: 80px;

  background: linear-gradient(45deg, #131927 0%, rgb(48, 57, 79, 100%));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

.docs-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

/* SIDEBAR */
.docs-sidebar {
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.docs-sidebar,
.docs-content {
  position: relative;
  z-index: 1;
}

.docs-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
}

.sidebar-header {
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
}

.sidebar-section a {
  color: rgba(255,255,255,0.85);
  padding: 10px 14px;
  border-radius: 10px;
}

.sidebar-section a:hover {
  background: rgba(255,255,255,0.08);
}

.sidebar-section h4 {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

.sidebar-section a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
}

.sidebar-section a:hover {
  background: rgba(230,126,34,0.15);
  color: #e67e22;
}

.sidebar-section a.active {
  background: rgba(230,126,34,0.25);
  color: #f3a45c;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: #666;
}

/* CONTENT */
.docs-content {
  padding: 60px;
  max-width: 1200px;
}

.docs-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docs-topbar h1 {
  font-size: 38px;
}

.ask-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #eaeaea;
  cursor: pointer;
}

.docs-intro {
  font-size: 18px;
  line-height: 1.8;
  max-width: 700px;
  margin: 20px 0 60px;
  color: rgba(255,255,255,0.85);
}

h2 {
  font-size: 26px;
  margin-bottom: 30px;
}

/* GRID */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.doc-card {
    background: linear-gradient(
    135deg,
    rgba(20, 24, 36, 0.7) 0%,
    rgba(30, 34, 46, 0.7) 100%
  );
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all .3s ease;
  transform-style: preserve-3d;
}

.doc-card:hover {
 transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 25px 80px rgba(255,140,0,.10);
  border-color: rgba(230, 126, 34, 0.6);


}


.doc-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  
}

.doc-body {
  padding: 18px;
}

.doc-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.doc-body p {
  font-size: 14px;
  color: #999;
}

.doc-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: #131927;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 149, 0, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 149, 0, 0.7);
}

/* =========================
	RESPONSIVE
   ========================= */
@media (max-width: 900px) {

  /* ===== LAYOUT ===== */
  .docs-layout {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  /* ===== SIDEBAR ===== */
  .docs-sidebar {
    display: none !important;
  }

  .docs-layout::before {
    background: rgba(0,0,0,0.6);
  }

  /* ===== CONTENT ===== */
  .docs-content {
    padding: 28px 18px 60px;
    max-width: 100%;
  }

  /* ===== TOP BAR ===== */
  .docs-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .docs-topbar h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .ask-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  /* ===== INTRO TEXT ===== */
  .docs-intro {
    font-size: 15px;
    line-height: 1.7;
    margin: 16px 0 40px;
    max-width: 100%;
  }

  /* ===== HEADINGS ===== */
  h2 {
    font-size: 22px;
    margin-bottom: 22px;
  }

  /* ===== GRID ===== */
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ===== CARDS ===== */
  .doc-card img {
    height: 140px;
  }

  .doc-body {
    padding: 16px;
  }

  .doc-body h3 {
    font-size: 15px;
  }

  .doc-body p {
    font-size: 13px;
  }

  /* ===== NAVBAR ===== */
  .navbar {
    padding: 14px 18px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 13px;
  }
  
  .welcome-rules-box {
    text-align: center !important;
  }
  .welcome-rules-box > * {
    display: inline-block;
    /* or */
    margin-left: auto;
    margin-right: auto;
  }
}


/* SHOP CARDS */

/* GRID LISTA */
.donations-list {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap:20px;
}

/* CARD */
.don-card {
  position:relative;
  background:#0f172a;
  border:1px solid rgba(255,140,0,0.15);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
  transition:.3s ease;
  
}

.don-card:hover {
  box-shadow:0 20px 60px rgba(255,140,0,0.15);
  transform: rotateX(10deg) rotateY(-10deg) scale(1.03);
  box-shadow: 0 25px 80px rgba(255,140,0,.25);
}


/* IMAGE */
.don-img {
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.28),#131927);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  transition:.4s ease;
  
}

.don-img:hover {
  transform: scale(1.12);
}

/* BODY */
.don-body {
  padding:16px;
}

.don-body h3 {
  font-size:18px;
  margin:0 0 6px;
  color:#e67e22;
}

.don-body p {
  font-size:13px;
  color:#9ca3af;
  margin-bottom:12px;
}

/* PRICE */
.don-price {
  font-size:20px;
  font-weight:250;
  color:#fff;
}

/* BADGE */
.don-badge {
  position:absolute;
  top: 10px;
  left:10px;
  background:linear-gradient(135deg,#ff8c00,#ff4500);
  color:#000;
  font-weight:700;
  font-size:12px;
  padding:4px 10px;
  border-radius:6px;
  box-shadow:0 0 10px rgba(255,140,0,.6);
}


/* QUOTTE RULES*/

.rp-quote {
  display: flex;
  align-items: center;
  background: #0b1324;
  border-radius: 16px;
  padding: 30px;
  margin: 50px 0;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

/* NARANDŽASTA STRIP */
.rp-quote-bar {
  width: 10px;
  height: 100%;
  background: linear-gradient(180deg, #ff8c00, #ff4500);
  border-radius: 10px;
  margin-right: 25px;
  box-shadow: 0 0 25px rgba(255,140,0,0.6);
}

/* TEXT */
.rp-quote-text h2 {
  margin: 5px 0 10px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.rp-quote-text p {
  color: #b9c3ff;
  font-size: 17px;
  line-height: 1.7;
  max-width: 650px;
}

/* TAG */
.rp-quote-tag {
  display: inline-block;
  background: rgba(255,140,0,0.15);
  color: #ff8c00;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.rp-quote {
  transition: .3s ease;
}

.rp-quote:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 120px rgba(255,140,0,0.25);
  transform: rotateX(10deg) rotateY(-10deg) scale(1.03);
}
