/* Color Palette & Variables */
:root {
  --bg-color: #0b0d12;
  --card-bg: #141824;
  --accent-color: #00f0ff;
  --text-main: #e0e6ed;
  --text-muted: #8a99ad;
  --border-color: #1e293b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 7-Second Intro Screen with Faded Background Logo */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease-out;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

/* Background Logo Pseudo-Element */
#intro-screen::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background-image: url('images/PGP.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

/* Keep text and timer bar above the background */
.intro-bio, 
.timer-bar {
  position: relative;
  z-index: 1;
}

/* Timer Progress Bar */
.timer-bar {
  width: 200px;
  height: 3px;
  background: var(--border-color);
  margin-top: 25px;
  border-radius: 2px;
  overflow: hidden;
}

.timer-progress {
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  animation: load 7s linear forwards;
}

@keyframes load {
  from { width: 100%; }
  to { width: 0%; }
}

/* Main Layout */
header {
  text-align: center;
  padding: 40px 20px 20px;
  border-bottom: 1px solid var(--border-color);
}

header h2 {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-color);
}

.comics-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Comic Cards */
.comic-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-color);
}

.comic-image-slot {
  width: 100%;
  height: 350px;
  background-color: #0f121a;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 12px;
  position: relative;
}

/* Image containment rules to ensure covers fit properly */
.comic-image-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.comic-details {
  padding: 20px;
}

.comic-details h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.comic-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Donation Section Styles */
.donation-card {
  background-color: var(--card-bg);
  border: 1px dashed var(--accent-color);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

/* Section Divider */
.section-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.donation-card:hover {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

.donation-details h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.donation-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.donate-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.donate-btn:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 12px var(--accent-color);
}

/* Desktop Horizontal View */
@media (min-width: 768px) {
  .comic-card {
    flex-direction: row;
  }
  .comic-image-slot {
    width: 45%;
    height: 250px;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
  .comic-details {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .donation-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Business Info Footer */
.business-info {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-content h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer-content a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-content .copyright {
  margin-top: 16px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* Price Tag Styling */
.price-tag {
  display: inline-block;
  background-color: rgba(0, 240, 255, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  font-weight: bold;
  font-size: 0.9rem;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

/* Navigation Bar */
.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px 20px;
  border-bottom: 1px solid var(--border-color);
}

.main-header nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.3s;
}

.nav-link.active, .nav-link:hover {
  color: var(--accent-color);
  background-color: rgba(0, 240, 255, 0.1);
}

/* Add to Cart Button */
.add-to-cart-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

.add-to-cart-btn:hover {
  opacity: 0.85;
}

/* Cart Container & Items */
.cart-wrapper {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-summary {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 2px solid var(--border-color);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
}

.remove-btn {
  background: transparent;
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .main-header {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* Custom Cart Toast Notification */
.cart-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--card-bg);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
}

.cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}