/* SockFinder - Professional Sock Recommendation Tool */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1f2937;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--gray-100);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-icon {
  font-size: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--secondary);
  color: var(--dark);
}

.btn-primary:hover {
  background: #e08e00;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--gray-100);
}

/* Recommendation Tool */
.recommendation-tool {
  background: var(--white);
  padding: 60px 0;
}

.tool-container {
  max-width: 800px;
  margin: 0 auto;
}

.tool-header {
  text-align: center;
  margin-bottom: 40px;
}

.tool-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.tool-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-step.active {
  display: block;
}

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

.question {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--dark);
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.option {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.option:hover {
  border-color: var(--primary);
  background: var(--white);
}

.option.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.option-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.option-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--gray-200);
}

.progress-bar {
  background: var(--gray-200);
  height: 6px;
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  background: var(--primary);
  height: 100%;
  transition: width 0.3s ease;
}

/* Results Section */
.results-section {
  display: none;
}

.results-section.active {
  display: block;
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.match-score {
  display: inline-block;
  background: var(--success);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.product-content {
  padding: 20px;
}

.product-category {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 8px 0;
  color: var(--dark);
}

.product-features {
  list-style: none;
  margin: 15px 0;
}

.product-features li {
  padding: 5px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.product-features li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: bold;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.product-link {
  display: block;
  text-align: center;
  background: var(--secondary);
  color: var(--dark);
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}

.product-link:hover {
  background: #e08e00;
  color: var(--dark);
}

/* Category Section */
.categories {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.category-link {
  color: var(--primary);
  font-weight: 500;
}

/* Features Section */
.features {
  background: var(--white);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--gray-500);
}

/* Guide Section */
.guide-content {
  background: var(--white);
  padding: 60px 0;
}

.guide-section {
  max-width: 800px;
  margin: 0 auto 50px;
}

.guide-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.guide-section h3 {
  font-size: 1.3rem;
  margin: 25px 0 15px;
  color: var(--dark);
}

.guide-section p {
  color: var(--gray-600);
  margin-bottom: 15px;
  line-height: 1.8;
}

.guide-section ul, .guide-section ol {
  margin: 15px 0 15px 25px;
  color: var(--gray-600);
}

.guide-section li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--dark);
}

.comparison-table tr:hover {
  background: var(--gray-100);
}

/* Tips Box */
.tips-box {
  background: rgba(37, 99, 235, 0.1);
  border-left: 4px solid var(--primary);
  padding: 20px 25px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 25px 0;
}

.tips-box h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.tips-box ul {
  margin-left: 20px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--gray-500);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 10px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-700);
  font-size: 0.9rem;
  color: var(--gray-400);
}

.affiliate-disclosure {
  background: var(--gray-700);
  padding: 15px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  nav ul.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .tool-header h2 {
    font-size: 1.5rem;
  }

  .question {
    font-size: 1.2rem;
  }

  .options {
    grid-template-columns: 1fr;
  }

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

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .categories,
  .features {
    padding: 50px 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
