/**
 * Budgeted shared content components (cards, sections, newsletter).
 */
.content-section {
    padding: 4.5rem 0;
}

.content-section:nth-child(even) {
    background: var(--surface);
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 auto 2.5rem;
    max-width: 38rem;
}

.blogs-grid,
.videos-grid,
.earnings-grid,
.podcast-episodes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.blog-card,
.video-card,
.earnings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover,
.video-card:hover,
.earnings-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.blog-image,
.video-thumbnail {
    height: 190px;
    background: linear-gradient(135deg, var(--primary), #134e4a);
    position: relative;
}

.blog-category,
.video-duration {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--surface);
    color: var(--text);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.video-duration {
    top: auto;
    left: auto;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
}

.blog-content,
.video-content {
    padding: 1.2rem;
}

.blog-date,
.read-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-title,
.video-title {
    margin: 0.4rem 0 0.65rem;
    font-size: 1.1rem;
}

.blog-excerpt,
.video-description {
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 650;
}

.play-button,
.podcast-play {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.podcast-section {
    background: #0f172a;
    color: #f8fafc;
}

.podcast-section .section-title,
.podcast-info h3,
.episode-title {
    color: #f8fafc;
}

.podcast-player,
.episode-card {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
}

.episode-number {
    color: #5eead4;
    font-weight: 700;
}

.earnings-card {
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
}

.company-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.change-positive { color: #15803d; }
.change-negative { color: #b91c1c; }

.newsletter {
    background: #0f172a;
    color: #f8fafc;
    padding: 3.5rem 0;
    text-align: center;
}

.newsletter h3 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    max-width: 520px;
    margin: 1.25rem auto 0;
}

.newsletter-form input[type="email"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
}

.newsletter-form button,
.newsletter-form .btn {
    width: 100%;
    min-height: 48px;
    min-width: 0;
    padding: 0.75rem 1.25rem;
    background: var(--cta);
    color: var(--on-cta);
    border: 1px solid var(--cta);
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.newsletter-form button:hover,
.newsletter-form .btn:hover {
    background: var(--cta-hover);
    color: var(--on-cta);
    border-color: var(--cta-hover);
}

.newsletter-message.success {
    background: #dcfce7;
    color: #166534;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.newsletter-message.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.newsletter-popup {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1400;
    max-width: none;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-heavy);
    border-left: 4px solid var(--primary);
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.25s ease;
}

.newsletter-popup.show {
    transform: none;
    opacity: 1;
}

.popup-content {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}

.popup-close {
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .blogs-grid,
    .videos-grid,
    .earnings-grid,
    .podcast-episodes {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .newsletter-form {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }
    .newsletter-form input[type="email"] {
        width: auto;
        flex: 1 1 auto;
    }
    .newsletter-form button,
    .newsletter-form .btn {
        width: auto;
        min-width: 8.75rem;
        flex: 0 0 auto;
    }
    .newsletter-popup {
        left: auto;
        right: 1rem;
        max-width: 380px;
        transform: translateX(120%);
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 3rem 0;
    }
}
