/* ============================================================
   Newspaper Layout Styles
   Plugin: Newspaper Layout by Dalgarno
   ============================================================ */

/* ---------- Masthead ---------- */
.newspaper-masthead {
    text-align: center;
    padding: 24px 0;
    border-bottom: 2px solid #1a1a2e;
    margin-bottom: 24px;
}

.newspaper-masthead h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    font-family: Georgia, serif;
    color: #1a1a2e;
}

.newspaper-masthead p {
    margin: 4px 0;
}

/* ---------- Breaking News ---------- */
.newspaper-breaking-news {
    background-color: #e94560;
    color: #ffffff;
    padding: 8px 16px;
    text-align: center;
    font-size: 14px;
}

.newspaper-breaking-news strong {
    margin-right: 4px;
}

/* ---------- Section ---------- */
.newspaper-section {
    margin-bottom: 32px;
}

.newspaper-section-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #cc0000;
    padding-bottom: 8px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

/* ---------- Grid Row / Columns ---------- */
.newspaper-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.newspaper-col {
    flex: 1 1 0;
    min-width: 280px;
}

/* ---------- Headline Block ---------- */
.newspaper-headline {
    margin-bottom: 16px;
}

.newspaper-headline__image {
    margin-bottom: 16px;
}

.newspaper-headline__image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

.newspaper-headline__category {
    font-size: 12px;
    text-transform: uppercase;
    color: #cc0000;
    letter-spacing: 1px;
    font-weight: 700;
}

.newspaper-headline__content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin: 8px 0;
    font-family: Georgia, serif;
    color: #1a1a2e;
}

.newspaper-headline__content p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

/* ---------- Article Card ---------- */
.newspaper-article-card {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.newspaper-article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.newspaper-article-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.newspaper-article-card__body {
    padding: 16px;
}

.newspaper-article-card__category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    color: #cc0000;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 6px;
}

.newspaper-article-card__title {
    font-size: 20px;
    margin: 4px 0 8px;
    color: #1a1a2e;
    line-height: 1.3;
}

.newspaper-article-card__title a {
    color: #1a1a2e;
    text-decoration: none;
}

.newspaper-article-card__title a:hover {
    color: #e94560;
}

.newspaper-article-card__excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px;
}

.newspaper-article-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888;
}

.newspaper-article-card__author {
    font-weight: 600;
    color: #555;
}

/* Card style variants */
.newspaper-article-card--horizontal {
    display: flex;
    gap: 16px;
}

.newspaper-article-card--horizontal .newspaper-article-card__image {
    flex: 0 0 200px;
}

.newspaper-article-card--horizontal .newspaper-article-card__image img {
    height: 100%;
    min-height: 150px;
}

.newspaper-article-card--minimal {
    box-shadow: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding-bottom: 12px;
}

/* ---------- Opinion Piece ---------- */
.newspaper-opinion {
    border-left: 4px solid #cc0000;
    padding-left: 16px;
    margin-bottom: 16px;
}

.newspaper-opinion h4 {
    font-size: 18px;
    font-style: italic;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.newspaper-opinion__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.newspaper-opinion__author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- Top Stories ---------- */
.newspaper-top-stories h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #1a1a2e;
    padding-bottom: 8px;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.newspaper-top-stories ol {
    margin: 0;
    padding-left: 20px;
}

.newspaper-top-stories li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
}

.newspaper-top-stories li a {
    color: #1a1a2e;
    text-decoration: none;
}

.newspaper-top-stories li a:hover {
    color: #e94560;
}

/* ---------- Sidebar ---------- */
.newspaper-sidebar {
    padding: 16px;
}

.newspaper-widget {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.newspaper-widget:last-child {
    border-bottom: none;
}

.newspaper-widget h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
    color: #1a1a2e;
}

/* ---------- Poll Widget ---------- */
.newspaper-poll-option {
    font-size: 13px;
    margin: 4px 0;
    cursor: default;
}

/* ---------- Advertisements ---------- */
.newspaper-ad img {
    width: 100%;
    height: auto;
}

/* ---------- Most Read List ---------- */
.newspaper-most-read-list li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

/* ---------- Footer ---------- */
.newspaper-footer {
    background-color: #1a1a2e;
    color: #ffffff;
}

.newspaper-footer a {
    color: #cccccc;
    text-decoration: none;
}

.newspaper-footer a:hover {
    color: #ffffff;
}

/* ---------- Shortcode Grid ---------- */
.newspaper-grid {
    display: grid;
    gap: 24px;
}

/* ---------- Error Message ---------- */
.newspaper-error {
    padding: 12px 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .newspaper-row {
        flex-direction: column;
        gap: 16px;
    }

    .newspaper-col {
        flex-basis: 100% !important;
        min-width: 0;
    }

    .newspaper-headline__content h2 {
        font-size: 28px;
    }

    .newspaper-masthead h1 {
        font-size: 32px;
    }

    .newspaper-article-card--horizontal {
        flex-direction: column;
    }

    .newspaper-article-card--horizontal .newspaper-article-card__image {
        flex: none;
    }

    .newspaper-grid--3-cols,
    .newspaper-grid--4-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .newspaper-grid--2-cols,
    .newspaper-grid--3-cols,
    .newspaper-grid--4-cols {
        grid-template-columns: 1fr !important;
    }

    .newspaper-headline__content h2 {
        font-size: 24px;
    }

    .newspaper-masthead h1 {
        font-size: 26px;
    }

    .newspaper-article-card__image img {
        height: 160px;
    }
}

/* ---------- Utility ---------- */
.newspaper-category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    color: #cc0000;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}

.newspaper-byline {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
}

.newspaper-excerpt {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}
