/* 
 * OWASP Agentic Top 10 Comic - Cover Page Styles
 */

body {
  overflow: hidden;
  background-color: #e6a74c;
  background-image: url('../assets/images/halftone-bg.png');
  background-size: cover;
}

.comic-book {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  height: 100vh;
  overflow: hidden;
}

.comic-cover {
  background: linear-gradient(135deg, #86b6c6 0%, #5b8a71 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;        /* ← was 40px — recovered ~56px of vertical space */
  position: relative;
  overflow: hidden;
}

.comic-cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../assets/images/halftone-pattern.png');
  background-size: 500px;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

/* ── OWASP banner — slimmer ── */
.owasp-banner {
  padding: 8px 15px;          /* ← was 15px — saves ~14px */
  margin-bottom: 4px;
  border: 3px solid #000;
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

/* ── Title — slightly tighter ── */
.cover-title {
  font-family: 'Bangers', cursive;
  font-size: 4.5rem;          /* ← was 5rem */
  color: white;
  text-shadow: 4px 4px 0 #000, 7px 7px 0 rgba(0,0,0,0.5);
  text-align: center;
  letter-spacing: 3px;
  line-height: 1;
  margin: 0;
  transform: skew(-5deg, 0);
  position: relative;
  z-index: 2;
}

.title-highlight {
  color: #d95e40;
  display: inline-block;
  position: relative;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 3px;
  background-color: #fff;
}

.cover-subtitle {
  font-family: 'Bangers', cursive;
  font-size: 2.2rem;          /* ← was 2.5rem */
  color: white;
  text-shadow: 3px 3px 0 #000;
  margin: 4px 0 8px;          /* ← was 10px 0 30px — saves ~28px */
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

/* ── Cover image — bigger ── */
.cover-illustration {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  flex: 1;
  position: relative;
}

.custom-cover-image {
  max-width: 92%;
  max-height: 82vh;           /* ← was 70vh — main gain */
  width: auto;
  height: auto;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.custom-cover-image:hover {
  transform: scale(1.02);
}

/* ── Enter button — overlaid on image, centred ── */
.enter-button {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  z-index: 3;
  animation: pulse 2s infinite;
}

.enter-button a {
  display: inline-block;
  background-color: #e6a74c;
  color: #000;
  font-family: 'Bangers', cursive;
  font-size: 28px;
  padding: 12px 40px;
  border: 3px solid #000;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  letter-spacing: 1px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.enter-button a:hover {
  background-color: #d95e40;
  color: #fff;
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.enter-button a::after {
  content: ' →';
}

/* ── Credits bar ── */
.cover-credits {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background-color: rgba(0,0,0,0.55);
  padding: 8px 10px;
  text-align: center;
  z-index: 2;
}

.company-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.company-logo {
  height: 22px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.cover-credits p {
  margin: 0;
  color: white;
  font-size: 13px;
}

.cover-credits strong { color: white; font-weight: bold; }

/* ── Pulse animation ── */
@keyframes pulse {
  0%   { transform: translateX(-50%) scale(1) rotate(3deg); }
  50%  { transform: translateX(-50%) scale(1.06) rotate(3deg); }
  100% { transform: translateX(-50%) scale(1) rotate(3deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cover-title    { font-size: 3.2rem; }
  .cover-subtitle { font-size: 1.6rem; }
  .custom-cover-image { max-height: 68vh; }
  .enter-button a { font-size: 22px; padding: 10px 28px; }
}

@media (max-width: 480px) {
  .cover-title    { font-size: 2.4rem; }
  .cover-subtitle { font-size: 1.2rem; }
  .custom-cover-image { max-height: 58vh; }
  .enter-button a { font-size: 18px; padding: 8px 22px; }
}
