/* ========================================
   CLOTHBITE FASHION PLATFORM - STYLES
   ======================================== */

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  background-color: #ffffff;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}

.hero-section h1 {
  line-height: 1.2;
  color: #1a202c;
}

.hero-section .lead {
  font-size: 1.25rem;
  color: #4a5568;
}


/* SECTION TITLES */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* FEATURE CARDS */
.feature-card {
  background: #ffffff;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15) !important;
}

.feature-icon {
  font-size: 3rem;
  line-height: 1;
}

/* GENDER BUTTONS */
.gender-btn {
  min-width: 140px;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.gender-btn:hover {
  border-color: #667eea;
  background-color: #f7fafc;
  transform: translateY(-2px);
}

.gender-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* COLOR PICKER BOXES */
.color-picker-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.color-picker-box:hover {
  border-color: #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.color-hex {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  color: #718096;
  font-weight: 500;
}

.color-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
}

/* OUTFIT PREVIEW */
.outfit-preview {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  min-height: 400px;
}

.person-figure {
  max-width: 280px;
}

.outfit-label {
  background: #f0f4f8;
  border-radius: 8px;
  padding: 1rem;
}

/* SIZE FINDER */
.size-result {
  min-height: 400px;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

/* PRODUCT CARDS */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.product-icon {
  font-size: 3.5rem;
  line-height: 1;
}

/* BUTTONS */
.btn-dark {
  background-color: #2d3748;
  border-color: #2d3748;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background-color: #1a202c;
  border-color: #1a202c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 55, 72, 0.3);
}

.btn-outline-dark {
  color: #2d3748;
  border-color: #2d3748;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background-color: #2d3748;
  border-color: #2d3748;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 55, 72, 0.2);
}

/* NAVIGATION */
.navbar-brand {
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #667eea !important;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #667eea !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* FOOTER */
footer {
  background-color: #1a202c;
}

footer h5 {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* FORCE FOOTER LINKS & TEXT TO WHITE */
footer a,
footer a.text-secondary,
footer a.text-muted {
  color: #ffffff !important;
}

footer a:hover,
footer a.text-secondary:hover,
footer a.text-muted:hover {
  color: #667eea !important;
}

footer hr {
  opacity: 0.2;
}
.mb-0 { color: #ffffff }


/* FORM CONTROLS */
.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.form-control-lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/*blog sesction */

    .blog-hero {
      position: relative;
      height: 350px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .blog-hero::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 80px;
      background: #ffffff;
      clip-path: polygon(0 100%, 35% 0, 65% 0, 100% 100%);
    }
    .blog-hero h1 {
      color:WHITE;
      font-size: 4rem;
      font-weight: 800;
      position: relative;
      z-index: 2;
      text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* MAIN CONTENT AREA */
    .blog-content {
      background: #ffffff;
      padding: 4rem 0;
    }

    /* BLOG POST CARD */
    .blog-post-card {
      background: #ffffff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      margin-bottom: 2rem;
      border: 1px solid #e2e8f0;
    }

    .blog-post-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    }

    .blog-post-image {
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .blog-post-card:hover .blog-post-image {
      transform: scale(1.05);
    }

    .blog-post-content {
      padding: 1.5rem;
    }

    .blog-category-tag {
      display: inline-block;
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: #ffffff;
      padding: 0.35rem 1rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: lowercase;
      margin-bottom: 0.75rem;
    }

    .blog-post-meta {
      display: flex;
      align-items: center;
      gap: 1rem;
      font-size: 0.85rem;
      color: #718096;
      margin-bottom: 0.75rem;
    }

    .blog-post-meta span {
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .blog-post-title {
      font-size: 1.35rem;
      font-weight: 700;
      color: #2d3748;
      margin-bottom: 0.75rem;
      line-height: 1.4;
    }

    .blog-post-title a {
      color: inherit;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .blog-post-title a:hover {
      color: #667eea;
    }

    .blog-post-excerpt {
      color: #4a5568;
      font-size: 0.95rem;
      line-height: 1.7;
      margin-bottom: 1rem;
    }

    .read-full-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 1.5rem;
      background: linear-gradient(135deg, #5a67d8, #667eea);
      color: #ffffff;
      text-decoration: none;
      border-radius: 6px;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    }

    .read-full-btn:hover {
      background: linear-gradient(135deg, #667eea, #764ba2);
      transform: translateX(3px);
      color: #ffffff;
      box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
    }

    /* SIDEBAR */
    .sidebar {
      position: sticky;
      top: 2rem;
    }

    .sidebar-card {
      background: #ffffff;
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
      margin-bottom: 2rem;
      border: 1px solid #e2e8f0;
    }

    .sidebar-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: #2d3748;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 3px solid #667eea;
    }

    .category-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .category-list li {
      padding: 0.75rem 0;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s ease;
    }

    .category-list li:last-child {
      border-bottom: none;
    }

    .category-list li:hover {
      padding-left: 0.5rem;
      color: #667eea;
    }

    .category-list a {
      color: #4a5568;
      text-decoration: none;
      font-weight: 500;
      flex: 1;
      transition: color 0.3s ease;
    }

    .category-list a:hover {
      color: #667eea;
    }

    .category-count {
      background: #f0f4f8;
      color: #667eea;
      padding: 0.25rem 0.65rem;
      border-radius: 12px;
      font-size: 0.85rem;
      font-weight: 600;
    }

    .upcoming-article {
      padding: 1rem 0;
      border-bottom: 1px solid #e2e8f0;
    }

    .upcoming-article:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .upcoming-article-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #2d3748;
      margin-bottom: 0.35rem;
      line-height: 1.4;
    }

    .upcoming-article-title a {
      color: inherit;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .upcoming-article-title a:hover {
      color: #667eea;
    }

    .upcoming-article-icon {
      width: 8px;
      height: 8px;
      background: linear-gradient(135deg, #667eea, #764ba2);
      border-radius: 50%;
      display: inline-block;
      margin-right: 0.5rem;
    }

    /* ANIMATIONS */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .blog-post-card {
      animation: fadeInUp 0.6s ease-out backwards;
    }

    .blog-post-card:nth-child(1) { animation-delay: 0.1s; }
    .blog-post-card:nth-child(2) { animation-delay: 0.2s; }
    .blog-post-card:nth-child(3) { animation-delay: 0.3s; }
    .blog-post-card:nth-child(4) { animation-delay: 0.4s; }
    .blog-post-card:nth-child(5) { animation-delay: 0.5s; }

    /* RESPONSIVE */
    @media (max-width: 992px) {
      .blog-hero h1 {
        font-size: 3rem;
      }
      
      .sidebar {
        position: static;
        margin-top: 3rem;
      }
    }

    @media (max-width: 768px) {
      .blog-hero {
        height: 250px;
      }
      
      .blog-hero h1 {
        font-size: 2.5rem;
      }
      
      .blog-hero::after {
        height: 60px;
      }
      
      .blog-post-image {
        height: 200px;
      }
    }

    @media (max-width: 576px) {
      .blog-hero h1 {
        font-size: 2rem;
      }
      
      .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }
    }





/* COLOR INPUT STYLING */
input[type="color"] {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.product-card {
  animation: fadeInUp 0.6s ease-out;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .hero-section {
    padding: 3rem 0 !important;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .feature-icon,
  .product-icon {
    font-size: 2.5rem;
  }
  
  .gender-btn {
    min-width: 120px;
    padding: 0.5rem 1rem;
  }
  
  .color-picker-box {
    padding: 1rem !important;
  }
  
  .outfit-preview {
    min-height: 350px;
  }
  
  .size-result {
    min-height: 300px;
  }
}

@media (max-width: 576px) {
  .section-title::after {
    width: 60px;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .person-figure {
    max-width: 220px;
  }
}

/* UTILITY CLASSES */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.rounded-3 {
  border-radius: 12px !important;
}

/* LOADING STATES */
.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

/* PRINT STYLES */
@media print {
  .navbar,
  footer,
  .btn,
  .gender-btn {
    display: none;
  }
  
  .section-title::after {
    display: none;
  }
  
  body {
    background: white;
  }
}