/* Single Questionable Choice page overrides */

/* Poster mat - beige background behind the white mat */
.qc-single-page-wrapper {
    background: #f4efe6;
    min-height: 100vh;
    padding: 24px;
}

/* White mat with border */
.qc-single-mat {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px 50px 50px;
    background: var(--base-2, #f7f3ec);
    border: 24px solid #fff;
    box-sizing: border-box;
    overflow: visible;
}

.qc-single-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.qc-single-wrapper .questionable-choice-spotlight {
    max-width: 100%;
}

.qc-single-wrapper .qc-media,
.qc-single-wrapper .qc-media.landscape,
.qc-single-wrapper .qc-media.portrait {
    max-width: 480px;
    max-height: 600px;
    margin-left: auto;
    margin-right: auto;
}

.qc-single-wrapper .qc-media img,
.qc-single-wrapper .qc-media iframe {
    max-height: 500px;
    object-fit: contain;
}

.qc-media-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    position: relative;
}

.qc-media-row .qc-media {
    margin: 0;
    position: relative;
    z-index: 1;
}

.qc-awarded-badge {
    background-image: url('../images/award.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 180px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Caveat', cursive;
    text-align: center;
    padding: 0;
    padding-bottom: 75px;
    position: absolute;
    right: -120px;
    top: 100px;
    z-index: 2;
}

.qc-awarded-badge .award-label {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.qc-awarded-badge .award-month {
    display: block;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1;
    margin-bottom: -2px;
}

.qc-awarded-badge .award-year {
    display: block;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1;
}

.qc-single-nav {
    margin-bottom: 2rem;
}

.qc-single-nav a {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qc-single-nav a:hover {
    color: #4a9b9b;
}

.qc-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #d0d0d0;
}

.qc-post-nav .prev-post,
.qc-post-nav .next-post {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 45%;
}

.qc-post-nav .next-post {
    text-align: right;
    align-items: flex-end;
}

.qc-nav-label {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: #aaa;
    letter-spacing: 0.02em;
}

.qc-post-nav a {
    font-family: 'Caveat', cursive;
    font-size: 1.35rem;
    color: #4a9b9b;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.qc-post-nav a:hover {
    color: #2d7a7a;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
    .qc-single-page-wrapper {
        padding: 10px;
    }

    .qc-single-mat {
        padding: 0 15px 30px 15px;
        border-width: 12px;
    }

    .qc-awarded-badge {
        width: 120px;
        height: 140px;
        right: -40px;
        top: 60px;
        padding-bottom: 50px;
    }

    .qc-awarded-badge .award-label {
        font-size: 0.9rem;
    }

    .qc-awarded-badge .award-month,
    .qc-awarded-badge .award-year {
        font-size: 1.1rem;
    }

    .qc-post-nav {
        gap: 1rem;
    }

    .qc-post-nav a {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .qc-awarded-badge {
        position: relative;
        right: auto;
        top: auto;
        margin: 1rem auto 0;
        width: 140px;
        height: 160px;
        padding-bottom: 60px;
    }

    .qc-media-row {
        flex-direction: column;
        align-items: center;
        margin-bottom: 5.5rem;
    }
}
