/* GossipNarrotor - Main Stylesheet */
/* ================================ */

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --orange-accent: #ff8c00;
  --dark-bg: #2d3748;
  --darker-bg: #1a202c;
  --text-light: #e2e8f0;
  --text-muted: #a0aec0;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  color: #333;
}
/* === Brands Page Styles === */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.brand-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

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

.banner-wrapper {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #fff;
}

.content {
  padding: 20px;
}

.logo-name {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.logo-img,
.logo-placeholder {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
  background: #f0f0f0;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}

.logo-name h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.desc p {
  margin: 0 0 15px;
  font-size: 0.95rem;
  color: #555;
}

.colors {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.colors span {
  background: #eee;
  padding: 2px 8px;
  border-radius: 4px;
}

.deals {
  font-size: 0.9rem;
  color: #16a34a;
  margin-bottom: 15px;
}

.view-btn {
  display: block;
  text-align: center;
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  color: white;
  padding: 10px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.view-btn:hover {
  background: linear-gradient(to right, #4338ca, #6d28d9);
}

.no-brands {
  text-align: center;
  padding: 60px 20px;
}

.no-brands i {
  font-size: 60px;
  color: #ccc;
  margin-bottom: 20px;
}

/* Preloader Styles - Fixed and Working */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

.loader-circle:nth-child(1) {
  border-top-color: var(--primary-color);
  animation-delay: 0s;
}

.loader-circle:nth-child(2) {
  border-right-color: var(--secondary-color);
  animation-delay: 0.5s;
}

.loader-circle:nth-child(3) {
  border-bottom-color: var(--primary-color);
  animation-delay: 1s;
}

.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  z-index: 10;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Navigation Styles */
.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6eea 0%, #6a3b9c 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Carousel Styles */
.carousel-item img {
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 1rem;
}

/* Coupon Card Styles */
.coupon-card {
  border: 2px dashed var(--primary-color);
  border-radius: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coupon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

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

.coupon-card:hover::before {
  left: 100%;
}

.copy-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Home Page Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  padding: 100px 0 150px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  backdrop-filter: blur(10px);
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(45deg, #ffd89b, #19547b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-weight: 500;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Styles */
.blogs-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.blogs-carousel-wrapper,
.promotions-carousel-wrapper {
  position: relative;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.feature-content h5 {
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: #666;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
}

.cta-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.btn-cta {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: var(--secondary-color);
}

/* Footer Styles */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

footer p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

footer small {
  color: #94a3b8;
}

/* Blogs Page Specific Styles */
.blogs-hero {
  background: var(--gradient-primary);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.blogs-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

/* Categories Navigation */
.categories-section {
  padding: 2rem 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.categories-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: 25px;
  text-decoration: none;
  color: #64748b;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 2px solid transparent;
  font-weight: 500;
}

.category-item:hover,
.category-item.active {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons .btn {
    display: block;
    margin: 0.5rem 0;
    width: 100%;
  }

  .stat-item {
    margin-bottom: 2rem;
  }

  .feature-item {
    text-align: center;
    flex-direction: column;
  }

  .feature-icon {
    margin: 0 auto 1rem;
  }

  .categories-scroll {
    padding-bottom: 1rem;
  }
}

/* Utility Classes */
.text-primary-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
    var(--gradient-primary) border-box;
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Disable problematic loading indicators */
#page-loading {
  display: none !important;
}
