/* Pixel Reverie - Retro Gaming Journal */
/* Custom Bootstrap overrides and retro-modern styling */

:root {
  --charcoal: #2D2D2D;
  --charcoal-light: #3A3A3A;
  --warm-cream: #F5F0E8;
  --cream-dark: #E8E0D4;
  --burnt-orange: #C75B39;
  --burnt-orange-light: #D4693A;
  --faded-teal: #5A8A8A;
  --faded-teal-light: #6B9B9B;
  --pixel-red: #C0392B;
  --paper: #FDF6E3;
  --ink: #1A1A1A;
  --muted: #7A7267;
}

/* ===== Base & Typography ===== */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: var(--warm-cream);
  color: var(--ink);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

a {
  color: var(--burnt-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pixel-red);
}

/* ===== Navigation ===== */
.navbar {
  background-color: var(--charcoal) !important;
  padding: 1rem 0;
  border-bottom: 3px solid var(--burnt-orange);
}

.navbar-brand {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--warm-cream) !important;
  letter-spacing: -0.03em;
}

.navbar-brand span {
  color: var(--burnt-orange);
}

.nav-link {
  color: var(--cream-dark) !important;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--burnt-orange) !important;
}

.navbar-toggler {
  border-color: var(--burnt-orange);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28199, 91, 57, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--charcoal);
}

.hero-section .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(45, 45, 45, 0.3) 0%,
    rgba(45, 45, 45, 0.7) 60%,
    rgba(45, 45, 45, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--warm-cream);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content .lead {
  font-size: 1.35rem;
  color: var(--cream-dark);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-content .btn-primary {
  background-color: var(--burnt-orange);
  border-color: var(--burnt-orange);
  color: var(--warm-cream);
  font-weight: 600;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.hero-content .btn-primary:hover {
  background-color: var(--pixel-red);
  border-color: var(--pixel-red);
  transform: translateY(-2px);
}

.hero-content .btn-outline-light {
  border-color: var(--cream-dark);
  color: var(--cream-dark);
  font-weight: 600;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.hero-content .btn-outline-light:hover {
  background-color: var(--warm-cream);
  color: var(--charcoal);
}

/* ===== Section Styling ===== */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--burnt-orange);
  margin-top: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 3rem;
}

/* ===== Console Eras / Genres ===== */
.era-card {
  background: var(--paper);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.era-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(45, 45, 45, 0.15);
  border-color: var(--burnt-orange);
}

.era-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: filter 0.3s ease;
}

.era-card:hover img {
  filter: saturate(1) contrast(1.05);
}

.era-card .card-body {
  padding: 1.5rem;
}

.era-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.era-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.era-badge {
  display: inline-block;
  background: var(--faded-teal);
  color: var(--warm-cream);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* ===== Why These Games Still Matter ===== */
.matter-section {
  background-color: var(--charcoal);
  color: var(--cream-dark);
}

.matter-section h2 {
  color: var(--warm-cream);
}

.matter-section h2::after {
  background-color: var(--burnt-orange);
}

.matter-section .section-subtitle {
  color: var(--muted);
}

.matter-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  height: 100%;
  transition: all 0.3s ease;
}

.matter-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--burnt-orange);
}

.matter-item .matter-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--burnt-orange);
}

.matter-item h4 {
  color: var(--warm-cream);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.matter-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== Reader Memories / Testimonials ===== */
.memory-card {
  background: var(--paper);
  border-left: 4px solid var(--burnt-orange);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.memory-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.memory-card .memory-author {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 600;
  color: var(--burnt-orange);
  font-size: 0.9rem;
}

.memory-card .memory-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== FAQ ===== */
.accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cream-dark);
}

.accordion-button {
  background: transparent;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 0;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--burnt-orange);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C75B39'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 0 0 1.25rem 0;
  color: var(--muted);
}

/* ===== Games Page - Archive Grid ===== */
.archive-hero {
  background-color: var(--charcoal);
  padding: 5rem 0;
  text-align: center;
}

.archive-hero h1 {
  color: var(--warm-cream);
  font-size: 2.75rem;
}

.archive-hero p {
  color: var(--muted);
  font-size: 1.15rem;
}

.timeline-nav {
  background: var(--paper);
  border-bottom: 2px solid var(--cream-dark);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.timeline-nav .nav-pills .nav-link {
  color: var(--charcoal) !important;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.5rem 1.25rem !important;
  margin-right: 0.5rem;
  border: 1px solid transparent;
}

.timeline-nav .nav-pills .nav-link:hover {
  background: var(--cream-dark);
}

.timeline-nav .nav-pills .nav-link.active {
  background: var(--burnt-orange);
  color: var(--warm-cream) !important;
  border-color: var(--burnt-orange);
}

.game-shelf {
  background: var(--charcoal-light);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.game-shelf h3 {
  color: var(--warm-cream);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--burnt-orange);
}

.game-item {
  background: var(--paper);
  border-radius: 3px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.game-item:hover {
  border-left-color: var(--burnt-orange);
  transform: translateX(4px);
}

.game-item h5 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}

.game-item .game-meta {
  font-size: 0.8rem;
  color: var(--burnt-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.game-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ===== Community Page ===== */
.community-hero {
  background-color: var(--faded-teal);
  padding: 5rem 0;
  text-align: center;
}

.community-hero h1 {
  color: var(--warm-cream);
  font-size: 2.75rem;
}

.community-hero p {
  color: rgba(245, 240, 232, 0.85);
  font-size: 1.15rem;
}

.community-section {
  padding: 4rem 0;
}

.community-section.alt {
  background-color: var(--paper);
}

.discussion-card {
  background: var(--warm-cream);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.discussion-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.discussion-card .discussion-meta {
  font-size: 0.8rem;
  color: var(--faded-teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.discussion-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0;
}

.challenge-box {
  background: var(--charcoal);
  color: var(--warm-cream);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
}

.challenge-box h4 {
  color: var(--burnt-orange);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.challenge-box p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ===== Contact Page ===== */
.contact-hero {
  background-color: var(--burnt-orange);
  padding: 5rem 0;
  text-align: center;
}

.contact-hero h1 {
  color: var(--warm-cream);
  font-size: 2.75rem;
}

.contact-hero p {
  color: rgba(245, 240, 232, 0.9);
  font-size: 1.15rem;
}

.contact-info-box {
  background: var(--paper);
  border-radius: 4px;
  padding: 2rem;
}

.contact-info-box h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.contact-info-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-info-box .contact-icon {
  font-size: 1.5rem;
  color: var(--burnt-orange);
  margin-bottom: 0.75rem;
}

.form-control {
  background: var(--paper);
  border: 1px solid var(--cream-dark);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  color: var(--charcoal);
  font-family: 'Georgia', serif;
}

.form-control:focus {
  border-color: var(--burnt-orange);
  box-shadow: 0 0 0 0.2rem rgba(199, 91, 57, 0.15);
  background: var(--warm-cream);
}

.form-label {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.btn-submit {
  background: var(--burnt-orange);
  border: none;
  color: var(--warm-cream);
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: var(--pixel-red);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: var(--muted);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--burnt-orange);
}

.site-footer h5 {
  color: var(--warm-cream);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--burnt-orange);
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: var(--cream-dark);
  padding: 1.25rem;
  z-index: 9999;
  border-top: 2px solid var(--burnt-orange);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--burnt-orange);
}

.cookie-banner .btn-cookie {
  background: var(--burnt-orange);
  color: var(--warm-cream);
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  margin-left: 1rem;
  transition: background 0.2s ease;
}

.cookie-banner .btn-cookie:hover {
  background: var(--pixel-red);
}

/* ===== Success Notification ===== */
.success-notification {
  position: fixed;
  top: 100px;
  right: 2rem;
  background: var(--faded-teal);
  color: var(--warm-cream);
  padding: 1.25rem 2rem;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.4s ease;
  max-width: 400px;
}

.success-notification.show {
  transform: translateX(0);
}

.success-notification h5 {
  color: var(--warm-cream);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.success-notification p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== Legal Pages ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content .lead {
    font-size: 1.1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .archive-hero h1,
  .community-hero h1,
  .contact-hero h1 {
    font-size: 2rem;
  }

  .timeline-nav {
    position: relative;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--warm-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--burnt-orange);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pixel-red);
}

/* ===== Selection ===== */
::selection {
  background: var(--burnt-orange);
  color: var(--warm-cream);
}
