/* GOKO Classifieds — ikman.lk-inspired styles */

:root {
  --goko-primary: #D24726;
  --goko-primary-dark: #A8321A;
  --goko-accent: #F5A623;
  --goko-bg: #F5F5F5;
  --goko-text: #222;
  --goko-muted: #6B7280;
}

/* General */
body {
  background: var(--goko-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Buttons */
.btn-goko {
  background-color: var(--goko-primary);
  border-color: var(--goko-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
}
.btn-goko:hover {
  background-color: var(--goko-primary-dark);
  border-color: var(--goko-primary-dark);
  color: #fff;
}

/* Breadcrumb */
.goko-breadcrumb a {
  color: var(--goko-muted);
  text-decoration: none;
}
.goko-breadcrumb a:hover {
  color: var(--goko-primary);
}

/* --- Filter Card --- */
.goko-filter-card {
  border-radius: 8px;
  position: sticky;
  top: 20px;
}

/* --- Ad Cards (grid) --- */
.goko-ad-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.goko-ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.goko-ad-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.goko-ad-img-placeholder {
  height: 180px;
}
.goko-ad-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.3;
}
.goko-ad-price {
  color: var(--goko-primary);
  font-size: 1.1rem;
}
.goko-featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #F5A623, #E8920E);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* --- Single Ad Page --- */
.goko-gallery-card {
  border-radius: 8px;
  overflow: hidden;
}
.goko-gallery-img {
  max-height: 500px;
  object-fit: contain;
  background: #f8f9fa;
}
.goko-gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.goko-ad-price-display {
  color: var(--goko-primary);
}
.text-goko {
  color: var(--goko-primary);
}

/* --- Homepage --- */
.goko-hero {
  background: linear-gradient(135deg, #D24726 0%, #A8321A 100%);
  padding: 60px 0;
}
.goko-hero h1 {
  font-size: 2rem;
  font-weight: 800;
}
.goko-search-form .form-control,
.goko-search-form .form-select {
  height: 54px;
  font-size: 1rem;
  border: none;
}
.goko-search-form .btn {
  height: 54px;
  border-radius: 0 4px 4px 0;
}

/* Category Grid */
.goko-category-grid .goko-cat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--goko-text);
  transition: transform 0.15s, box-shadow 0.15s;
  height: 100%;
}
.goko-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.goko-cat-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.goko-cat-name {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}
.goko-cat-count {
  font-size: 0.8rem;
  color: var(--goko-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .goko-hero h1 { font-size: 1.5rem; }
  .goko-ad-img { height: 140px; }
}
