/* Shop Different - Main Stylesheet */

/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Header Styles */
header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
.category-nav {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.category-nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.category-nav .nav-link {
  white-space: nowrap;
  margin-right: 5px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

/* Mobile Category Navigation */
#mobileCategoryList a {
  padding: 0.75rem 0;
  color: #333;
}

#mobileCategoryList a.active {
  color: #0d6efd;
  font-weight: 600;
}

/* Deal Card Styles */
.deal-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.deal-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.deal-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.deal-card .card-text {
  font-size: 0.9rem;
  color: #6c757d;
  flex: 1;
}

.deal-card .store-logo {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 4px;
}

.deal-card .expiry {
  font-size: 0.8rem;
  color: #dc3545;
}

.deal-card .card-footer {
  background-color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1rem;
}

/* Category Card Styles */
.category-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.category-card .category-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #0d6efd;
  height: 50px;
  width: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  margin: 0 auto 15px;
}

/* Store Card Styles */
.store-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.store-card .store-logo {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* Coupon Code Styles */
.coupon-code-container {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 15px;
}

/* Modal Styles */
.modal .store-logo {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  border-radius: 4px;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

/* Ad Container Styles */
.ad-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ad-placeholder {
  min-height: 90px;
}

@media (min-width: 768px) {
  .ad-placeholder {
    min-height: 250px;
  }
}

/* Admin Panel Styles */
.admin-sidebar {
  background-color: #343a40;
  min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 1rem;
  border-radius: 0;
}

.admin-sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
  color: #fff;
  background-color: #0d6efd;
}

.admin-sidebar .nav-link i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.admin-content {
  padding: 1.5rem;
}

.admin-card {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
}

/* Toast Notifications */
.toast-container {
  z-index: 1050;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  header h1 {
    font-size: 1.25rem;
    margin-bottom: 0;
  }
  
  .deal-card .card-title {
    font-size: 1rem;
  }
  
  .category-card .category-icon {
    font-size: 1.5rem;
    height: 40px;
    width: 40px;
    line-height: 40px;
  }
  
  .category-card .card-title {
    font-size: 0.9rem;
  }
  
  .store-card .card-title {
    font-size: 0.9rem;
  }
  
  .store-card .store-logo {
    height: 40px;
  }
  
  section {
    margin-bottom: 2rem !important;
  }
  
  h2 {
    font-size: 1.25rem;
  }
}

/* Utility Classes */
.fs-md-2 {
  font-size: 2rem;
}

.fs-md-3 {
  font-size: 1.75rem;
}

@media (max-width: 767.98px) {
  .fs-md-2 {
    font-size: inherit;
  }
  
  .fs-md-3 {
    font-size: inherit;
  }
}
