/* Siidona Marketplace - Standalone CSS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --danger: #ef4444;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --text-dark: #111827;
  --text-gray: #6b7280;
  --border: #e5e7eb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Categories */
.categories {
  padding: 4rem 0;
}

.categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.category-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  color: var(--text-gray);
}

/* Featured Listings */
.featured {
  padding: 4rem 0;
  background: var(--bg-white);
}

.featured h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.listing-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s, box-shadow 0.3s;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.listing-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.listing-info {
  padding: 1rem;
}

.category-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.listing-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Footer */
footer {
  background: #1f2937;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.no-results {
  text-align: center;
  color: var(--text-gray);
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Dark Mode */
.dark {
  --bg-light: #111827;
  --bg-white: #1f2937;
  --text-dark: #f9fafb;
  --text-gray: #9ca3af;
  --border: #374151;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] nav .nav-links {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  nav .nav-links {
    display: none;
  }
}
