/* Custom Styles for Bayi Sipariş Sistemi */

/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e9ecef;
}

body.dark-mode .navbar {
  background-color: #343a40 !important;
}

body.dark-mode .card {
  background-color: #2d3436;
  border-color: #495057;
  color: #e9ecef;
}

body.dark-mode .bg-light {
  background-color: #343a40 !important;
}

body.dark-mode .text-muted {
  color: #adb5bd !important;
}

/* Navbar Enhancements */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Buttons */
.btn {
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Product Grid */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card .card-text {
  color: #6c757d;
  font-size: 0.9rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #007bff;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Category Cards */
.category-card {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 15px;
  transition: transform 0.3s;
}

.category-card:hover {
  transform: scale(1.05);
}

.category-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Search Bar */
.form-control {
  border-radius: 25px;
  border: 2px solid #e9ecef;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Footer */
footer {
  margin-top: 4rem;
}

.social-links a {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .card {
    margin-bottom: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}