/* Modern 2025 Styling - Inspired by Elferspot */

/* Import Barlow font */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@200;300;400;500;600;700&display=swap');

/* Root variables - Elferspot inspired color scheme */
:root {
  --primary-color: #d4a574;
  --primary-dark: #b8935f;
  --text-dark: #1a1a1a;
  --text-color: #4a4a4a;
  --text-light: #888888;
  --border-color: #e5e5e5;
  --light-bg: #f7f7f7;
  --white: #ffffff;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Typography - Barlow font */
body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--white);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Modern navigation */
.navigation {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  padding: 0;
}

.navigation .navbar {
  padding: 0;
  margin: 0;
  min-height: auto;
}

.navigation .navbar-collapse {
  padding: 0;
}

.navigation .navbar-nav {
  margin: 0;
}

.navbar-brand img {
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.2s ease;
  padding: 0.625rem 1rem !important;
}

.nav-link:hover,
.nav-link.current {
  color: var(--primary-color);
}

/* Modern buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Page title section */
.page-title {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Logo header for homepage */
.logo-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

/* Content sections */
.page-wrapper,
.main-content {
  padding: 4rem 0;
}

.content {
  max-width: none;
}

/* Modern cards */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

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

/* Links styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
}

/* Lists */
ul li, ol li {
  margin-bottom: 0.5rem;
}

/* Code blocks */
code {
  background: var(--light-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 0.875rem;
}

/* Modern Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

th, td {
  padding: 1.25rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

th {
  background: var(--primary-color);
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Parts table specific styling */
.parts-table tr {
  transition: all 0.2s ease;
  cursor: pointer;
}

.parts-table tr:hover {
  background-color: rgba(37, 99, 235, 0.04);
  transform: translateX(2px);
}

.parts-table td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

.parts-table td:last-child {
  font-size: 0.9rem;
}

/* Parts table images */
.parts-table img {
  max-width: 80px;
  max-height: 60px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 0.25rem 0;
  display: block;
}

.parts-table img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Parts table links */
.parts-table a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.parts-table a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Modern Parts Catalog */
.parts-catalog {
  margin: 2rem 0;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.part-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.part-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.part-image {
  height: 140px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.part-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.part-card:hover .part-image img {
  transform: scale(1.05);
}

.no-image {
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: italic;
  background: linear-gradient(135deg, var(--light-bg) 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--border-color);
}

.part-details {
  padding: 1rem;
}

.part-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.part-suppliers {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.part-suppliers strong {
  color: var(--text-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.part-suppliers a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.part-suppliers a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.part-notes {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

/* Responsive grid */
@media (min-width: 1200px) {
  .parts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .parts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .parts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 599px) {
  .parts-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .part-image {
    height: 120px;
  }

  .part-details {
    padding: 0.75rem;
  }

  .part-details h3 {
    font-size: 1rem;
    min-height: auto;
    margin-bottom: 0.5rem;
  }

  .part-suppliers {
    font-size: 0.85rem;
  }

  .part-notes {
    font-size: 0.8rem;
  }
}

/* Legacy table styles for compatibility */
@media (max-width: 768px) {
  .parts-table {
    font-size: 0.875rem;
  }

  .parts-table th,
  .parts-table td {
    padding: 0.75rem 0.5rem;
  }

  .parts-table img {
    max-width: 60px;
    max-height: 45px;
  }
}

/* Blog Cards - Elferspot Inspired */
.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.blog-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--light-bg);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.blog-card-category {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  flex: 1;
}

.blog-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.blog-card-link:hover {
  gap: 0.75rem;
  color: var(--primary-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-image {
    height: 200px;
  }
}

/* Footer - Simple & Modern */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-main {
  padding-bottom: 2rem;
  max-width: 500px;
}

.footer-left h3 {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-left p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-dark);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1.125rem;
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-bottom-left {
  flex: 1;
}

.footer-bottom-left p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.footer-bottom-left a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-left a:hover {
  color: var(--primary-color);
}

.footer-bottom-right {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-bottom-left p {
    font-size: 0.8rem;
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .page-title h1 { font-size: 2.5rem; }

  .page-wrapper,
  .main-content {
    padding: 2rem 0;
  }

  .page-title {
    padding: 2rem 0;
  }
}

/* Modern focus states */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--primary-color);
  color: white;
}

/* Specs Page - Modern Card Layout */
.specs-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
}

.specs-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-color);
  font-weight: 400;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.spec-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.spec-card-header {
  background: linear-gradient(135deg, var(--text-dark) 0%, #2a2a2a 100%);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spec-card-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.spec-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.spec-card-body {
  padding: 1.5rem;
  flex: 1;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item.highlight {
  background: linear-gradient(90deg, rgba(212, 165, 116, 0.08) 0%, transparent 100%);
  padding: 0.75rem 1rem;
  margin: 0 -1rem;
  border-bottom: 1px solid var(--primary-color);
}

.spec-item.highlight:last-child {
  border-bottom: none;
}

.spec-key {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
  flex-shrink: 0;
  max-width: 50%;
}

.spec-value {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  font-size: 0.95rem;
}

.spec-item.highlight .spec-key {
  color: var(--text-dark);
  font-weight: 600;
}

.spec-item.highlight .spec-value {
  color: var(--primary-color);
  font-weight: 700;
}

/* Performance card special styling */
.spec-card-performance {
  grid-column: span 1;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
}

.spec-card-performance .spec-card-header {
  background: rgba(0, 0, 0, 0.2);
}

.spec-card-performance .spec-card-header h3 {
  color: var(--white);
}

.spec-card-performance .spec-card-header i {
  color: var(--white);
}

.spec-card-performance .spec-card-body {
  background: var(--white);
}

/* Responsive specs grid */
@media (min-width: 1200px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .spec-card-header {
    padding: 1.25rem;
  }

  .spec-card-body {
    padding: 1.25rem;
  }

  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .spec-key,
  .spec-value {
    max-width: 100%;
    text-align: left;
  }

  .specs-lead {
    font-size: 1.125rem;
  }
}