/* ---------- Main layout ---------- */

main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---------- Comic of the Day card ---------- */

.comic-box {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.2rem 1.6rem;
}

/* Header in the card */
.comic-box h2 {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
    text-align: center;
}

.comic-box h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
}

/* Comic navigation buttons (top & bottom) */

.comic-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

#comic-nav-bottom {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.comic-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.35rem 0.7rem;
    background-color: var(--color-orange);
    border-radius: 12px;
    border: 3px solid var(--color-border-strong);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.05s ease, box-shadow 0.05s ease, filter 0.1s ease;
}

.comic-nav a:hover,
.comic-nav a:focus-visible {
    filter: brightness(1.06);
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Comic frame */

.comic-image-wrapper {
    max-width: 720px;
    margin: 0 auto 0.85rem;
    background-color: transparent;
    border-radius: 26px;
    border: 0.3rem solid #24044a;
    padding: 0.3rem;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

#comic-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    background-color: #FFFFFF;
}

/* ---------- News section ---------- */

.comic-news {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-card);
    border: 3px solid var(--color-border-strong);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.3rem 1.1rem;
}

.news h2 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.news p {
    margin: 0;
    color: var(--color-text-main);
}

/* ---------- Optional footer style (if you add one later) ---------- */

/* Example:
<footer class="site-footer">
   <p>© Mug &amp; Marker 2025</p>
</footer>
*/

.site-footer {
    max-width: 960px;
    margin: 1.5rem auto 2.5rem;
    padding: 0.9rem 1.3rem;
    border-radius: 18px;
    border: 3px solid var(--color-border-strong);
    background-color: var(--color-card-bg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- Responsive adjustments ---------- */

@media (max-width: 700px) {
    header {
        align-items: flex-start;
    }

    header .logo img {
        width: 58px;
    }

    header .header {
        gap: 0.35rem;
    }

    header nav ul {
        gap: 0.75rem;
        font-size: 0.92rem;
    }

    .comic-box {
        padding: 1.2rem 1rem 1.4rem;
    }

    .news {
        padding: 1rem 1rem 0.9rem;
    }

    #next-link, #next-link-bottom {
        content: "→";
    }

    #prev-link, #prev-link-bottom {
        content: "←";
    }
}

@media (min-width: 900px) {
    header {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .comic-box {
        margin-inline: 0.75rem;
        padding: 1.25rem 1rem 1.6rem;
    }

    .comic-image-wrapper {
        padding: 0.6rem;
        border-radius: 20px;
    }

    #comic-image {
        border-radius: 14px;
    }
}

.comic-nav a.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.comic-dictionary {
    margin: 1rem auto;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
    max-width: 88%;
    text-align: right;
}

.dict-term {
    margin-bottom: 0.5rem;
}

.dict-term strong {
    font-size: 1.05rem;
}

.dict-phonetic {
    margin-left: 0.4rem;
    color: var(--color-text-muted);
    font-family: monospace;
}

.dict-pos {
    margin-left: 0.25rem;
    font-style: italic;
}

.dict-definitions {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.dict-definitions li {
    margin-bottom: 0.35rem;
}

@media (max-width: 600px) {
    .comic-dictionary {
        max-width: 100%;
        margin-left: 0;
    }
}

#comic-title {
    font-size: 2rem;
    margin: 0 1rem 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
}

.updates-section {
    background: var(--color-card-bg);
    border: 3px solid var(--color-border-strong);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.6rem 1.4rem;
}

.updates-title {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.updates-title::before {
    content: '✦';
    color: var(--color-border-strong);
    font-size: 1.1rem;
}

.updates-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.update-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-tiny);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.update-card.is-pinned {
    border-color: var(--accent-lavender);
    box-shadow: 0 8px 18px rgba(125, 80, 150, 0.18);
}

.update-card__pill {
    align-self: flex-start;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-lavender);
    border: 1px solid var(--color-border-strong);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.update-card__media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    object-fit: cover;
}

.update-card__title {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
}

.update-card__meta {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.update-card__body {
    margin: 0.1rem 0 0.2rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.update-card__link {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    background: var(--accent-yellow);
    border: 2px solid #e8b95f;
    color: #4a2c00;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

.update-card__link:hover {
    background: #ffdfa3;
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.updates-empty {
    margin: 0.5rem 0 0;
    color: var(--color-text-muted);
}


.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--lavender-dark);
}

.not-found p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
