/* Modern CSS Styles */
:root {
  --primary-color: #292929;
  --primary-dark: #303030;
  --secondary-color: #b80000;
  --accent-color: #000000;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: -1;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  background: #7c0000;
  color: white;
  padding: 12px;
  text-align: center;
  position: relative;
}

.header-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.header-box h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.intro {
  width: fit-content;
  background: #292929;
  color: white;
  padding: 3px 9px;
  border-radius: 14px;
  margin: 12px auto;

}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
}

.main-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
  min-height: 700px;
}

.sidebar {
  width: 250px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 12px;
}

.sidebar h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-btn {
  padding: 6px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.category-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
  transform: translateX(5px);
}

.category-btn.active {
  background: #7c0000;
  color: white;
  border-color: var(--primary-color);
  font-weight: 600;
}

.category-btn.active:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.content-area {
  flex: 1;
  min-width: 0;
}

#filters {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#filters input {
  padding: 0.75rem 1rem;
  width: 300px;
  margin: 0 auto;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 15px;
  transition: var(--transition);
  background: var(--bg-secondary);
}

#filters input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--bg-primary);
}

#filters select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 15px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
}

#filters select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--bg-primary);
}

#featured {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

#featured h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
}

#featured h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.featured-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.featured-card {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
}



.featured-card:hover {
  border-color: var(--primary-color);
}

.featured-card:hover::before {
  transform: scaleX(1);
}

.featured-content {
  padding: 0.5rem;
}

.featured-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.featured-content p {
  color: var(--text-secondary);
}

.featured-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--success-color);
}

.featured-rating {
  color: var(--warning-color);
  font-weight: 500;
}

.featured-link {
  display: block;
  width: fit-content;
  padding: 6px 9px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.featured-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.featured-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.featured-link:hover::before {
  left: 100%;
}

#listings {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 10px;
  justify-content: left;
  align-content: start;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: fit-content;
  font-size: 14px;
  width: 300px;
}

.card-link {
  width: 100%;
  height: 200px;
  max-width: 300px;
}

.tool-header {
  display: flex;
  flex-direction: column;
  gap: 5x;
}

.tool-header img {
  height: 30px;
  width: fit-content;
  border-radius: 5px;
}


.card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
}



.card .rating {
  color: var(--warning-color);
  font-weight: 500;
  margin: 0.5rem 0;
}


.card a {

  border: 1px solid var(--border-color);
  padding: 6px 10px;
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}


.card a:hover {
  border: 1px solid #6b7280;
}


footer {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  margin-top: 3rem;
  box-shadow: var(--shadow-lg);
}

footer p {
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .sidebar {
    width: 100%;
    position: static;
    order: -1;
  }

  .sidebar h3 {
    font-size: 1.1rem;
  }

  .category-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .category-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  #filters {
    flex-direction: column;
    align-items: stretch;
  }

  #filters input,
  #filters select {
    width: 90%;
    margin-bottom: 1rem;
  }

  header h1 {
    font-size: 1rem;
  }

  #listings {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    height: fit-content;
  }

  .card-link {
    max-width: 100%;
    width: 100%;
    height: 150px;
  }


  #featured {
    padding: 1.5rem;
  }

  #featured h2 {
    font-size: 1.5rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px;
  }

  .header-box {
    text-align: center;
  }

  .header-box h1 {
    font-size: 2rem;
  }

  .header-box p {
    font-size: 0.9rem;
  }

  .submit-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 0.9rem;
  }

  header p {
    font-size: 0.8rem;
  }

  #filters {
    padding: 1rem;
  }

  .card h2 {
    font-size: 1.2rem;
  }



  #featured {
    padding: 1rem;
  }

  #featured h2 {
    font-size: 1.3rem;
  }

  .featured-content h3 {
    font-size: 1rem;
  }

  .featured-content p {
    font-size: 0.9rem;
  }

  .header-box h1 {
    font-size: 1.8rem;
  }

  .header-box p {
    font-size: 0.8rem;
  }

  .submit-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Loading animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Submit Button Styles */
.submit-btn {
  display: block;
  height: fit-content;
  width: fit-content;
  background: white;
  color: rgb(131, 0, 0);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}