/* TLR Guide styles */

/* Index page */
.guide-intro {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.guide-intro strong {
  color: var(--text);
}

.brand-nav {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.brand-nav a {
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 0.9rem;
  border-bottom: 1px solid #333;
}

.brand-nav a:hover {
  border-color: var(--chrome);
}

.brand-section {
  margin-bottom: 2.5rem;
}

.brand-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #333;
  color: var(--chrome);
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.camera-card {
  background: var(--surface);
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: border-color 0.2s;
}

.camera-card:hover,
.camera-card:focus-visible {
  border-color: var(--chrome);
  outline: none;
}

.camera-card:focus-visible {
  box-shadow: 0 0 0 2px var(--chrome);
}

.camera-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #1e1e1e;
  padding: 8px;
}

.card-info {
  padding: 0.8rem;
}

.card-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.card-years, .card-price {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
}

.card-price {
  color: var(--chrome-dim);
  margin-top: 0.1rem;
}

/* Camera detail page */
.camera-page .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.camera-page h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.cam-tagline {
  font-size: 1.1rem;
  color: var(--chrome);
  font-style: italic;
  margin-bottom: 1rem;
}

.cam-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.cam-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cam-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  background: #1e1e1e;
}

.attribution {
  font-size: 0.75rem;
  color: var(--chrome-dim);
  margin-top: 0.4rem;
}

.attribution a {
  font-size: 0.75rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid #2a2a2a;
}

.specs-table td:first-child {
  color: var(--chrome-dim);
  width: 40%;
  padding-right: 1rem;
}

.specs-table td:last-child {
  color: var(--text);
}

.features-list {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
}

.features-list li {
  padding: 0.15rem 0;
  color: var(--text-dim);
}

.features-list li::before {
  content: "\2713";
  color: var(--chrome);
  margin-right: 0.5rem;
}

.cam-history, .famous-users, .pop-culture, .innovations,
.collector-notes, .buying-tips, .resources, .related, .pricing-table {
  margin-bottom: 1.5rem;
}

.cam-history h2, .cam-details h2 {
  font-size: 1.15rem;
  color: var(--chrome);
  margin-bottom: 0.5rem;
}

.cam-history p, .famous-users p, .pop-culture p, .collector-notes p, .buying-tips p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.buying-tips ul {
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.buying-tips li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.buying-tips li strong {
  color: var(--text);
}

.buying-tips .bt-link {
  font-size: 0.85rem;
  color: var(--chrome-dim);
  margin-top: 0.5rem;
}

.innovations ul, .resources ul {
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.innovations li, .resources li {
  margin-bottom: 0.3rem;
}

.resources .source {
  color: var(--chrome-dim);
  font-size: 0.85rem;
}

.pricing-table h3, .resources h3, .innovations h3,
.famous-users h3, .pop-culture h3, .collector-notes h3, .buying-tips h3, .related h3 {
  font-size: 1rem;
  color: var(--chrome);
  margin-bottom: 0.5rem;
}

.pricing-table table {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table th {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px solid #444;
  color: var(--chrome-dim);
  font-weight: 500;
}

.pricing-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid #2a2a2a;
  color: var(--text);
}

.pricing-table td:first-child {
  color: var(--text-dim);
}

.price-source {
  font-size: 0.8rem;
  color: var(--chrome-dim);
  margin-top: 0.3rem;
}

.shop-link {
  margin-bottom: 1.5rem;
}

.shop-link a {
  font-size: 0.9rem;
}

.related p {
  line-height: 1.8;
  font-size: 0.9rem;
}

.app-cta {
  background: var(--surface);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.app-cta h2, .app-cta h3 {
  color: var(--chrome);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.app-cta p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Lightbox */
.cam-image img {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--chrome-dim);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--chrome);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Tablet */
@media (max-width: 768px) {
  .cam-layout { gap: 1.5rem; }
  .camera-card img { height: 160px; }
  .app-cta { padding: 1.2rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .cam-layout {
    grid-template-columns: 1fr;
  }
  .cam-image {
    text-align: center;
  }
  .cam-image img {
    max-width: 280px;
    margin: 0 auto;
  }
  .camera-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
  }
  .camera-page h1 {
    font-size: 1.5rem;
  }
  .cam-tagline {
    font-size: 1rem;
  }
  .cam-meta {
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .brand-nav {
    gap: 0.5rem;
  }
  .brand-nav a {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
  }
  .specs-table {
    font-size: 0.85rem;
  }
  .specs-table td:first-child {
    width: 45%;
    padding-right: 0.5rem;
  }
  .pricing-table table {
    max-width: 100%;
  }
  .camera-card img {
    height: 150px;
  }
  .card-info { padding: 0.6rem; }
  .card-info h3 { font-size: 0.9rem; }
  .app-cta {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  .app-cta h2, .app-cta h3 {
    font-size: 1rem;
  }
  .guide-intro {
    font-size: 0.95rem;
  }
}

/* Small phones */
@media (max-width: 375px) {
  .camera-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .camera-card img {
    height: 130px;
  }
  .card-info h3 {
    font-size: 0.85rem;
  }
  .brand-nav {
    flex-direction: column;
  }
  .brand-nav a {
    text-align: center;
  }
  .cam-image img {
    max-width: 100%;
  }
}
