/* Review Container */
.review-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

/* Sidebar */
.review-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.cover-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
}

.no-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'FiraCode', monospace;
}

.sidebar-info {
    margin-bottom: 1.5rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.star {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.star.filled {
    color: #ffd700;
}

.rating-text {
    font-family: 'FiraCode', monospace;
    font-size: 1rem;
    color: var(--text);
    margin-left: 0.5rem;
}

.review-type {
    font-family: 'FiraCode', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--accent-light);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.review-date {
    font-family: 'FiraCode', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.review-series-link {
    font-family: 'FiraCode', monospace;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.review-series-link a {
    color: var(--accent-bright);
    text-decoration: none;
}

.review-series-link a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.back-link a {
    color: var(--accent-bright);
    text-decoration: none;
    font-family: 'FiraCode', monospace;
    font-size: 0.9rem;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Main Content */
.review-main {
    min-width: 0;
    p {
        font-family: "EBGaramond";
    }
}

.review-title {
    font-family: 'FiraCode', monospace;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 0;
    color: var(--text);
}

.review-quote {
    border-left: 4px solid var(--accent-light);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text);
}

.review-quote p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.review-summary-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--accent-light);
    border-radius: 8px;
}

.review-summary-section h2 {
    margin: 0 0 1rem 0;
    font-family: 'FiraCode', monospace;
    font-size: 1.5rem;
}

.review-summary-section p {
    margin: 0;
    line-height: 1.6;
}

.review-text,
.review-longtext {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
}

.review-longtext {
    margin-top: 3rem;
}

.review-longtext h2 {
    font-family: 'FiraCode', monospace;
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--accent);
}

/* Rich Text Content Styling */
.review-text p,
.review-longtext p {
    margin: 1.5rem 0;
}

.review-text h1,
.review-text h2,
.review-text h3,
.review-text h4,
.review-longtext h1,
.review-longtext h2,
.review-longtext h3,
.review-longtext h4 {
    font-family: 'FiraCode', monospace;
    margin: 2rem 0 1rem 0;
}

.review-text blockquote,
.review-longtext blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    p {
        margin: 0;
    }
}

.review-text ul,
.review-text ol,
.review-longtext ul,
.review-longtext ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.review-text li,
.review-longtext li {
    margin: 0.5rem 0;
}

.review-text a,
.review-longtext a {
    color: var(--accent-bright);
    text-decoration: none;
}

.review-text a:hover,
.review-longtext a:hover {
    text-decoration: underline;
}

.review-text code,
.review-longtext code {
    background-color: var(--accent-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'FiraCode', monospace;
    font-size: 0.9em;
}

.review-text hr,
.review-longtext hr {
    border: none;
    border-top: 1px solid var(--accent);
    margin: 2rem 0;
}

/* Spoiler Styling */
.spoiler {
    background-color: var(--text);
    color: var(--text);
    cursor: pointer;
    padding: 0 0.2rem;
    border-radius: 2px;
    transition: background-color 0.3s, color 0.3s;
    user-select: none;
}

.spoiler.revealed {
    background-color: transparent;
    color: var(--text);
    cursor: default;
}

.spoiler:hover:not(.revealed) {
    background-color: var(--accent);
}

/* Not Found */
.not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.not-found h2 {
    font-family: 'FiraCode', monospace;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.not-found p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.not-found a {
    color: var(--accent-bright);
    text-decoration: none;
    font-family: 'FiraCode', monospace;
}

.not-found a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .review-container {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }

    .review-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .review-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .review-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }

    .cover-container {
        margin-bottom: 0;
    }

    .back-link {
        grid-column: 1 / -1;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .review-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .review-sidebar {
        grid-template-columns: 1fr;
    }

    .review-text,
    .review-longtext{
        font-size: 1.3rem;
    }

    .cover-container {
        max-width: 250px;
        margin: 0 auto 1.5rem;
    }

    .review-title {
        font-size: 1.5rem;
    }

    .review-quote p {
        font-size: 1.2rem;
    }
}
