/* 
   Movie Review Style - Magazine Edition 
   Usage: Add <link rel="stylesheet" href="/css/movie-style.css"> to your post
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* 1. Global Container & Typography */
#article-container {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 19px;
    /* Slightly larger for that "book" feel */
    line-height: 1.8;
    --movie-article-media-max-width: min(100%, 1180px);
    --movie-article-media-max-height: clamp(360px, 76vh, 900px);
    color: #2c2c2c;
    background-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* 2. Headings - The Magazine Headline Look */
#article-container h1.post-title,
#article-container h1,
#article-container h2,
#article-container h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

#article-container h1 {
    font-size: 2.5em;
    border-bottom: none;
}

#article-container h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.3em;
    margin-top: 2em;
}

#article-container h3 {
    font-size: 1.4em;
    font-style: italic;
    color: #444;
}

/* 3. The "Lead" Paragraph & Drop Cap */
/* We will apply a class .drop-cap-para to the first paragraph */
#article-container p.drop-cap-para::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4.5em;
    line-height: 0.8;
    padding-right: 0.1em;
    padding-top: 0.05em;
    color: #e74c3c;
    /* Accent Color: Cinema Red */
    font-weight: 700;
}

#article-container p {
    margin-bottom: 1.5em;
    text-align: justify;
    /* Magazine style often fully justified */
}

/* 4. Pull Quotes */
#article-container .pull-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    font-style: italic;
    color: #111;
    text-align: center;
    border: none;
    border-top: 2px solid #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding: 1.5em 2em;
    margin: 2.5em auto;
    width: 80%;
    background: transparent;
    line-height: 1.4;
}

/* 5. Movie Meta Info Box */
#article-container .movie-meta {
    background-color: #f9f9f9;
    border-left: 5px solid #111;
    padding: 1.5em;
    margin: 2em 0;
    font-family: 'Lora', serif;
    font-size: 0.95em;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

#article-container .movie-meta strong {
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85em;
}

/* 6. Verdict Box */
#article-container .movie-verdict {
    background: transparent;
    /* Adapt to theme light/dark automatically, or use specific variable if needed */
    color: #333;
    /* Dark text for light mode */
    padding: 2em;
    border-radius: 4px;
    margin: 3em 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #eaeaea;
}

#article-container .movie-verdict h3 {
    color: #111 !important;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-top: 0;
    border-bottom: 1px solid #eaeaea !important;
    padding-bottom: 0.5em;
}

#article-container .movie-verdict .score {
    font-size: 3em;
    font-weight: 700;
    color: #e74c3c;
    display: block;
    margin: 0.2em 0;
    font-family: 'Playfair Display', serif;
}

#article-container .movie-verdict p {
    color: #555;
    text-align: center;
    font-style: italic;
    font-size: 1.1em;
}

/* Dark Mode Verdict Override */
[data-theme="dark"] #article-container .movie-verdict {
    background: transparent;
    /* Or a slightly lighter dark like #222 */
    color: #eee;
    border-color: #444;
}

[data-theme="dark"] #article-container .movie-verdict h3 {
    color: #fff !important;
    border-bottom-color: #444 !important;
}

[data-theme="dark"] #article-container .movie-verdict p {
    color: #aaa;
}

/* 7. Image Captions */
#article-container div[align='center'] {
    display: flex;
    justify-content: center;
    margin: clamp(24px, 4vw, 40px) auto;
}

#article-container img {
    border-radius: 2px;
    margin: 0 auto;
    display: block;
    width: auto;
    max-width: var(--movie-article-media-max-width);
    height: auto;
    max-height: var(--movie-article-media-max-height);
    /* No shadow for magazine style, cleaner look */
}

#article-container .img-caption {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 0.85em;
    color: #777;
    font-style: italic;
    margin-top: 0.5em;
    margin-bottom: 2em;
}

/* Dark Mode Adjustments */
[data-theme="dark"] #article-container {
    color: #ccc;
}

[data-theme="dark"] #article-container h1,
[data-theme="dark"] #article-container h2,
[data-theme="dark"] #article-container .pull-quote {
    color: #eee;
}

[data-theme="dark"] #article-container .pull-quote {
    border-color: #ff6b6b;
}

[data-theme="dark"] #article-container p.drop-cap-para::first-letter {
    color: #ff6b6b;
}

[data-theme="dark"] #article-container .movie-meta {
    background-color: #222;
    border-left-color: #eee;
    color: #aaa;
}

[data-theme="dark"] #article-container .movie-meta strong {
    color: #fff;
}

@media screen and (max-width: 768px) {
    #article-container {
        --movie-article-media-max-height: clamp(240px, 58vh, 520px);
    }
}


/* 8. Movie List Page Styling */
.movie-list-page .recent-post-item .article-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700;
    font-size: 1.8em;
    letter-spacing: -0.01em;
}

.movie-list-page .recent-post-item .content {
    font-family: 'Lora', serif;
    font-size: 1.05em;
    line-height: 1.6;
}

/* Optional: Adjust color for list page titles if needed */
.movie-list-page .recent-post-item .article-title {
    color: #111;
}

[data-theme="dark"] .movie-list-page .recent-post-item .article-title {
    color: #eee;
}
