/* Uncrate-inspired minimal design */

/* Base typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  background-color: #fff;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #000;
  letter-spacing: 0.025em;
}

/* Clean prose styling */
.prose {
  color: #666;
  line-height: 1.6;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  color: #666;
}

.prose strong {
  color: #000;
  font-weight: 700;
}

/* Minimal button styling */
.btn-minimal {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-minimal:hover {
  background: #333;
}

/* Clean image styling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove rounded corners and shadows */
.no-radius {
  border-radius: 0 !important;
}

.no-shadow {
  box-shadow: none !important;
}

/* Minimal navigation */
nav {
  border-bottom: 1px solid #e5e5e5;
}

nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

nav a:hover {
  color: #666;
}

/* Product grid enhancements */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Universal post card styling - applies to all posts site-wide */
article {
  border: 1px solid #e5e5e5 !important;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

article:hover {
  border-color: #d0d0d0 !important;
}

/* Add padding to text content areas */
article .space-y-3 {
  padding: 1.5rem;
}

article .text-center {
  padding: 2rem;
}

/* Ensure content areas that don't have specific classes get padding */
article > div:not(.mb-4):not(.mb-6) {
  padding: 1.5rem;
}

/* Minimal form styling */
input[type="text"],
input[type="email"],
textarea {
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: 0.75rem;
  font-size: 1rem;
  background: #fff;
  color: #000;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #000;
}

/* Clean table styling */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5e5;
}

th {
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

/* Minimal scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 2px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Focus states */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Utility classes */
.border-minimal {
  border: 1px solid #e5e5e5;
}

.text-minimal {
  color: #666;
  font-size: 0.875rem;
}

.uppercase-minimal {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Mobile Navigation Fixes */
.mobile-menu-button {
  z-index: 50;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button svg {
  color: #000;
}

.dark .mobile-menu-button svg {
  color: #fff;
}

.mobile-menu {
  background: white;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 40;
}

.dark .mobile-menu {
  background: #1f2937;
  border-color: #374151;
}

/* Ensure mobile menu items are properly spaced */
.mobile-menu li {
  width: 100%;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  width: 100%;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  border-bottom: 1px solid #f5f5f5;
}

.dark .mobile-menu a {
  color: #fff;
  border-bottom-color: #374151;
}

.mobile-menu a:hover {
  color: #666;
  background-color: #f9f9f9;
}

.dark .mobile-menu a:hover {
  color: #d1d5db;
  background-color: #374151;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .prose {
    font-size: 0.875rem;
  }
  
  /* Force consistent mobile logo size across all pages - multiple selectors */
  .md\\:hidden img[alt="Go Bike Review"],
  .fixed img[alt="Go Bike Review"],
  [class*="mobile"] img[alt="Go Bike Review"],
  img[src="/images/go-bike-review-logo-mobile.png"] {
    height: 3rem !important;
    width: auto !important;
    max-height: 3rem !important;
    min-height: 3rem !important;
  }
  
  /* Additional mobile header logo fixes */
  .md\\:hidden .flex-1 img,
  .fixed .flex-1 img {
    height: 3rem !important;
    max-height: 3rem !important;
  }
  
  /* Target the exact mobile header structure */
  .md\\:hidden.fixed.top-0.left-0.right-0.z-50 .flex.justify-between.items-center.bg-black.px-4.py-3 .flex-1.flex.justify-center img {
    height: 3rem !important;
    max-height: 3rem !important;
    min-height: 3rem !important;
    width: auto !important;
  }
  
  /* Override h-12 class for mobile logo specifically */
  .md\\:hidden img.h-12,
  .fixed img.h-12 {
    height: 3rem !important;
    max-height: 3rem !important;
  }
  
  /* Fix mobile logo size specifically for buyer guide pages */
  body.buyer-guides .md\\:hidden img[alt="Go Bike Review"],
  body.buyer-guide .md\\:hidden img[alt="Go Bike Review"],
  body.buyer-guides img[src="/images/go-bike-review-logo-mobile.png"],
  body.buyer-guide img[src="/images/go-bike-review-logo-mobile.png"] {
    height: 3rem !important;
    width: auto !important;
    max-width: 225px !important;
    max-height: 3rem !important;
    min-height: 3rem !important;
    object-fit: contain !important;
  }
  
  /* Header adjustments for mobile */
  header {
    padding: 1rem 1.5rem;
  }
  
  
  /* Post title styling */
  .post-title, article h1, h1.title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    margin: 1rem 0 !important;
    word-wrap: break-word !important;
  }
  
  /* Ensure header icons have space */
  header .header-icons, header nav, header > div:last-child {
    flex-shrink: 0 !important;
    margin-left: auto !important;
    min-width: 100px !important;
  }
  
  /* Ensure mobile menu doesn't get cut off */
  .mobile-menu {
    min-width: 200px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Make sure the mobile menu button is always visible */
  .mobile-menu-button {
    display: block !important;
  }
  
  /* Author section mobile spacing - just add small padding to text */
  .flex-grow {
    padding-left: 0.5rem !important;
  }
  
  /* Fix oversized author photo on mobile */
  .flex-shrink-0 img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
  }
  
  /* Fix multiple authors layout on mobile */
  .author-list, .authors, [class*="author"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }
  
  /* Individual author containers for multiple authors */
  .author-item, .author, .mb-4.flex.items-start.space-x-4 {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
  }
  
  /* When multiple authors, make them stack vertically on mobile */
  .authors .author:not(:last-child), 
  .author-list .author:not(:last-child) {
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid #e5e5e5 !important;
    padding-bottom: 1rem !important;
  }
  
  /* Fix footer image on mobile */
  footer img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
  }
  
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 1rem;
  }
  
  .mobile-menu {
    left: 0;
    right: 0;
    width: 100%;
  }
  
  /* Larger touch targets for mobile */
  .mobile-menu a {
    padding: 1rem 0;
    font-size: 1rem;
  }
  
  /* Better article card sizing on mobile */
  article {
    margin-bottom: 1.5rem;
  }
  
  /* Improved content spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

