/*
Theme Name: DinaView Minimal
Description: Minimalist editorial WordPress theme for DinaView.
Author: Custom Developer
Version: 2.0
*/

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #6e6e6e;
    --border: #e6e6e6;
    --accent: #111111;
    --font-logo: 'Noto Serif Display', Georgia, serif;
    --font-serif: 'Newsreader', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Minimalist Header --- */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-logo);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
}

.site-Logo:hover {
    opacity: 1;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-navigation a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text);
}

/* --- Home Page Hero Grid (1 Large 16:9 Left + 2 Smaller Right) --- */
.hero-section {
    padding: 48px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background-color: #f2f2f2;
    display: block;
}

.hero-card-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    aspect-ratio: 16 / 9;
}

.hero-card-small {
    grid-column: 2 / 3;
    min-height: 180px;
}

.hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-card:hover img {
    transform: scale(1.02);
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
}

.hero-card-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 6px;
}

.hero-card-large .hero-card-title {
    font-family: var(--font-logo);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    color: #fff;
}

.hero-card-small .hero-card-title {
    font-family: var(--font-logo);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

/* --- Home Page Secondary Feed --- */
.home-more-section {
    padding: 36px 0 64px;
    border-top: 1px solid var(--border);
}

.section-heading {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 0 0 32px 0;
}

/* --- Sequential Full Posts Stream ("One After Another") --- */
.posts-stream {
    padding: 48px 0 64px;
}

.stream-article {
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--border);
}

.stream-article:last-child {
    border-bottom: none;
}

.entry-meta {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.entry-meta a {
    color: var(--text);
    font-weight: 500;
}

.entry-title {
    font-family: var(--font-logo);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 20px 0;
}

.entry-thumbnail {
    margin: 24px 0 32px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-content p {
    margin: 0 0 1.4em 0;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: var(--font-logo);
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

/* --- Page & Archive Headers --- */
.page-header {
    padding: 48px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.page-title {
    font-family: var(--font-logo);
    font-size: 2.4rem;
    font-weight: 500;
    margin: 0;
}

/* --- Pagination & Buttons --- */
.pagination {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.view-all-wrap {
    text-align: center;
    margin-top: 32px;
}

.btn-minimal {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-minimal:hover {
    background: var(--accent);
    color: #fff;
    opacity: 1;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .hero-card-large,
    .hero-card-small {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    .entry-title {
        font-size: 1.75rem;
    }
}