/* ==========================================
   Variables
   ========================================== */
:root {
  --primary: #ffb800;
  --dark: #1f1f1f;
  --light: #f8f9fa;
  --radius: 0.75rem;
  --transition: .3s ease;
  --font-base: 'Inter', sans-serif;
}

.btn-login {
  border: 1px solid #28a745;
  color: #28a745;
  background: transparent;
}
.btn-login:hover {
  background: #28a745;
  color: #fff;
}

.btn-register {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #000;
}
.btn-register:hover {
  opacity: 0.9;
}
.btn-register:hover {
  background: var(--dark);
  color: #fff;
  opacity: 0.9;
}
/* Custom background u primarnoj boji */
.bg-site-primary {
  background-color: var(--primary) !important;
}

/* Tamni tekst da uvek bude iz varijable */
.text-site-dark {
  color: var(--dark) !important;
}
/* Zeleni dugmići */
.btn-green {
  background-color: #28a745 !important;
  border-color:    #28a745 !important;
  color:           #fff !important;
}
.btn-green:hover {
  opacity: 0.9;
}
/* Zeleni link za registraciju */
a.register-link {
  color: #28a745;
  font-weight: 600;
  transition: color .2s ease;
  text-decoration: none;
}
a.register-link:hover {
  color: #218838;
  text-decoration: underline;
}
/* ==========================================
   Reset & Base
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: var(--transition);
}
body {
  font-family: var(--font-base);
  background: var(--light);
  color: var(--dark);
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ==========================================
   Navbar
   ========================================== */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.navbar-brand span{
  font-size: 1.5rem;
  font-weight: 700;
}
.navbar-brand small {
  font-size: .85rem;
}
.nav-link {
  font-weight: 500;
  color: #333 !important;
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================
   Hero Slider
   ========================================== */
.hero-swiper {
  position: relative;
  margin-bottom: 2rem;
}
.swiper-slide {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.hero-content {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}
.hero-content h1 {
  font-size: clamp(2rem,5vw,4rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.swiper-button-prev,
.swiper-button-next {
  color: #fff !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(0,0,0,0.4) !important;
  border-radius: 50% !important;
  opacity: 0;
  transition: opacity .3s ease !important;
}
.hero-swiper:hover .swiper-button-prev,
.hero-swiper:hover .swiper-button-next {
  opacity: 1 !important;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px !important;
}
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
}

/* ==========================================
   Dark Search Box
   ========================================== */
.search-section-dark {
  background: #111;
  padding: 4rem 0;
}

.search-dark-box {
  width: 100%;
  position: relative;
}

.search-dark-input {
  width: 100%;
  padding: 1rem 4rem 1rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: #fff;
  font-size: 1.1rem;
  transition: box-shadow .3s ease;
}

.search-dark-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.5);
  outline: none;
}

.btn-dark-search {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  border: none;
  background: var(--primary);
  color: #111;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: opacity .2s ease;
}

.btn-dark-search:hover {
  opacity: 0.85;
}

#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  z-index: 1002;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
}

#searchResults .list-group-item {
  background: transparent;
  color: #fff;
  border: none;
  padding: .75rem 1rem;
  transition: background .2s ease;
}

#searchResults .list-group-item:hover {
  background: rgba(255,255,255,0.1);
}


/* ==========================================
   Featured Ads Grid
   ========================================== */
.featured-grid {
  margin-bottom: 3rem;
}

.card.featured-card {
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.featured-card .card-body {
  padding: .75rem;
}

.featured-card .card-title {
  font-size: 1rem;
  margin-bottom: 0;
}

.card.featured-card {
  border: 2px solid var(--primary) !important;
}

/* ==========================================
   Latest Ads List
   ========================================== */
.latest-list .list-group-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  transition: var(--transition);
}
.latest-list .list-group-item:hover {
  background: #f1f1f1;
}
.thumb-wrap {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.date-badge {
  position: absolute;
  top: 0; right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: .2rem .4rem;
  font-size: .75rem;
  border-bottom-left-radius: .25rem;
}
.latest-list h5 {
  margin-bottom: .25rem;
  font-size: 1rem;
}
.latest-list p {
  margin-bottom: .5rem;
  font-size: .875rem;
  color: #6c757d;
}
.latest-list .btn {
  white-space: nowrap;
}

/* ==========================================
   Sidebar (Most Viewed)
   ========================================== */
.sidebar .list-group-item:first-child {
  background: var(--light);
  font-weight: 600;
}
.sidebar .list-group-item {
  transition: var(--transition);
}
.sidebar .list-group-item:hover {
  background: #f8f9fa;
}

/* ==========================================
   Cards & Buttons
   ========================================== */
.card {
  border: none;
  border-radius: var(--radius);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn {
  transition: var(--transition);
}

/* ==========================================
   Tables (Responsive Wrapper)
   ========================================== */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.table-wrapper th,
.table-wrapper td {
  padding: .5rem .75rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}
.table-wrapper thead {
  background: #f5f5f5;
}
@media (max-width: 600px) {
  .table-wrapper table,
  .table-wrapper thead,
  .table-wrapper tbody,
  .table-wrapper th,
  .table-wrapper td,
  .table-wrapper tr {
    display: block;
  }
  .table-wrapper thead { display: none; }
  .table-wrapper tr {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  .table-wrapper td {
    display: flex;
    justify-content: space-between;
    padding: .5rem;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
  }
  .table-wrapper td:last-child { border-bottom: none; }
  .table-wrapper td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }
}

/* ==========================================
   Forms & Inputs
   ========================================== */
.form-control, .form-select {
  border-radius: var(--radius);
}

/* ==========================================
   Footer
   ========================================== */
footer {
  background: var(--dark);
  color: #fff;
  padding: 1.5rem 0;
  font-size: .9rem;
}
footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}
footer a:hover {
  text-decoration: underline;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 768px) {
  .hero-content { bottom: 1.5rem; }
  .search-pill { margin: 1rem auto 2rem; }
}

/* ============ Sidebar Pills ============ */
.sidebar-card {
  background: transparent; /* or your page bg */
}
.sidebar-card .list-group {
  margin: 0;
  padding: 0;
}
.sidebar-card .list-group-item {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  transition: background .3s, color .3s;
  padding: 0.75rem 1.25rem;
}
.sidebar-card .list-group-item i {
  width: 1.25rem;
}
.sidebar-card .list-group-item:hover {
  background: var(--primary);
  color: #000;
}
.sidebar-card .list-group-item.active {
  background: var(--primary);
  color: #000;
  font-weight: 600;
}
/* keep badges styling */
.sidebar-card .badge {
  font-size: 0.75rem;
}


/* TYPOGRAPHY RESET & BASE FOR .page-content */
.page-content {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.7;
}

/* Headings */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f1f1f;
}

.page-content h1 { font-size: 2.5rem; }
.page-content h2 { font-size: 2rem; }
.page-content h3 { font-size: 1.75rem; }
.page-content h4 { font-size: 1.5rem; }
.page-content h5 { font-size: 1.25rem; }
.page-content h6 { font-size: 1rem; }

/* Paragraphs */
.page-content p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

/* Links */
.page-content a {
  color: #007bff;
  text-decoration: underline;
  transition: color .2s;
}
.page-content a:hover {
  color: #0056b3;
}

/* Lists */
.page-content ul,
.page-content ol {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}
.page-content ul li,
.page-content ol li {
  margin-bottom: .5rem;
}

/* Blockquote */
.page-content blockquote {
  margin: 1.5rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid #ccc;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

/* Code */
.page-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}
.page-content code {
  background: #f1f1f1;
  padding: .2rem .4rem;
  border-radius: 3px;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: .95rem;
}

/* Tables */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.page-content th,
.page-content td {
  border: 1px solid #ddd;
  padding: .75rem;
  text-align: left;
}
.page-content th {
  background: #f2f2f2;
}

/* Images & Videos */
.page-content img,
.page-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Horizontal Rule */
.page-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .page-content h1 { font-size: 2rem; }
  .page-content h2 { font-size: 1.75rem; }
  .page-content h3 { font-size: 1.5rem; }
  .page-content p,
  .page-content ul li,
  .page-content ol li {
    font-size: .95rem;
  }
}


