* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'poppins', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

.hero-banner {
    background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(20, 20, 20, 0.6)),
    url('./assets/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
    min-height: 500px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-banner h1 {
font-size: 65px;
font-weight: 900;
background: linear-gradient(135deg, #FFD700, #FFA500);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 20px;
text-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.curiosities-intro {
    padding: 60px 20px;
    text-align: center;
    background-color: #0a0a0a;
}

.curiosities-intro h2 {
    font-size: 40px;
    font-weight: 700;
    color: #33a8db
    margin-bottom: 20px;
}

.curiosities-intro p {
    font-size: 16px;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
}

#curiosities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    background-color: #000000;
}

.curiosity-card {
    background-color: rgba(20, 20, 20, 0.8);
    border: 2px solid #33a8db;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.curiosity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(51, 168, 219, 0.5);

}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #33a8db;
    color: #000000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.card-badge.villain {
    background-color: #d32f2f;
    color:#ffffff;
}

.card-media {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    display: block;
}

.curiosity-card h3 {
    font-size: 22px;
    font-weight: 900;
    color: #33a8db;
    margin: 15px 0;
    line-height: 1.4;
}

.curiosity-card p {
    font-size: 14px;
    color: #d3d3d3;
    line-height: 1.6;
}

.hero-card {
    border-color: #33a8db;
}

.villain-card {
    border-color: #d32f2f;
}

footer {
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #33a8db;
}

footer p {
    margin: 10px 0;
    font-size: 14px;
}

footer a {
    color: #33a8db;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {

    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
  /* @media = regra de mídia (aplica quando condição é verdadeira)
     (max-width: 768px) = quando a tela tem NO MÁXIMO 768px de largura
     (celulares e tablets!)
  */
  
  .hero-banner h1 {
    font-size: 40px;
    /* Título menor em telas pequenas (era 60px no desktop) */
  }
  
  .curiosities-intro h2 {
    font-size: 28px;
    /* Heading menor também */
  }
  
  #curiosities-grid {
    grid-template-columns: 1fr;
    /* 1 coluna só (cards empilhados verticalmente) */
    
    gap: 20px;
    /* Espaço menor entre cards */
  }
}

/* ========== CARD CLICK AFFORDANCE ========== */
/* Cards are now clickable to open the popup — cursor + subtle focus ring
   for keyboard users tabbing through with tabindex="0". */

.curiosity-card {
    cursor: pointer;
}

.curiosity-card:focus-visible {
    outline: 3px solid #33a8db;
    outline-offset: 4px;
}

.villain-card:focus-visible {
    outline-color: #d32f2f;
}

/* ========== CHARACTER MODAL (POPUP) ========== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    /* [hidden] already sets display:none natively — this display:flex only
       applies once the "hidden" attribute is removed by script.js. */
}

.modal-overlay[hidden] {
    display: none;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: rgba(15, 15, 15, 0.98);
    border: 2px solid #33a8db;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(51, 168, 219, 0.35);
    animation: modal-pop 0.25s ease;
}

.modal-content.villain {
    border-color: #d32f2f;
    box-shadow: 0 25px 70px rgba(211, 47, 47, 0.35);
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: #33a8db;
    color: #000000;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
    background-color: #ffffff;
}

.modal-content.villain .modal-close {
    background-color: #d32f2f;
    color: #ffffff;
}

.modal-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background-color: #33a8db;
    color: #000000;
    margin-bottom: 15px;
}

.modal-content.villain .modal-badge {
    background-color: #d32f2f;
    color: #ffffff;
}

.modal-media {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    display: block;
}

.modal-title {
    font-size: 26px;
    font-weight: 900;
    color: #33a8db;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-content.villain .modal-title {
    color: #d32f2f;
}

.modal-summary {
    font-size: 15px;
    color: #d3d3d3;
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-facts-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #33a8db;
    text-align: left;
    margin-bottom: 10px;
}

.modal-content.villain .modal-facts-title {
    color: #d32f2f;
}

.modal-facts {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-facts li {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}

.modal-facts li::before {
    content: "\2726";
    /* small four-pointed star, matches the "fascinating facts" theme */
    position: absolute;
    left: 0;
    color: #33a8db;
    font-size: 12px;
}

.modal-content.villain .modal-facts li::before {
    color: #d32f2f;
}

/* Extra facts live in the DOM (for SEO / no-JS fallback) but stay hidden
   inside the grid card — script.js reads them and re-renders them in the
   modal instead. */
.extra-facts {
    display: none;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 22px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-media {
        max-height: 240px;
    }
}