/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red-primary: #cc0000;
    --red-dark: #a00000;
    --black: #000000;
    --gray-dark: #262626;
    --gray-medium: #555555;
    --gray-light: #767676;
    --gray-border: #e6e6e6;
    --white: #ffffff;
    --bg-light: #f8f8f8;
}

body {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    background-color: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo h1 {
    color: var(--red-primary);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    font-family: 'Libre Franklin', sans-serif;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-primary);
    border-bottom-color: var(--red-primary);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--red-primary);
}

/* Main Content */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

.container {
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--red-primary);
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--black);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--red-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.live-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--red-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Article */
.featured-article {
    margin-bottom: 50px;
    position: relative;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--bg-light);
    margin-bottom: 20px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-link:hover .featured-image img {
    transform: scale(1.02);
}

.image-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 400;
}

.featured-content {
    max-width: 800px;
}

.article-label {
    display: inline-block;
    background-color: var(--red-primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.article-label.small {
    font-size: 10px;
    padding: 4px 8px;
}

.featured-headline {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--black);
    transition: color 0.2s;
}

.article-link:hover .featured-headline {
    color: var(--gray-dark);
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray-medium);
    font-weight: 500;
}

.article-section {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-time {
    color: var(--gray-light);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding-bottom: 20px;
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-light);
    margin-bottom: 15px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 0;
}

.article-headline {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--black);
    transition: color 0.2s;
}

.article-link:hover .article-headline {
    color: var(--gray-dark);
}

/* Article Detail Page */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red-primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: gap 0.2s;
}

.back-link:hover {
    gap: 12px;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--black);
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    margin-bottom: 30px;
}

.byline-author {
    font-weight: 700;
    color: var(--black);
}

.byline-date {
    color: var(--gray-medium);
    font-size: 14px;
}

.article-featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-dark);
}

.article-body p {
    margin-bottom: 24px;
}

.article-description {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--red-primary);
}

/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-note {
    color: var(--gray-light);
    font-size: 12px;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 12px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .featured-image {
        height: 300px;
    }

    .featured-headline {
        font-size: 28px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-body {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .featured-headline {
        font-size: 24px;
    }

    .article-headline {
        font-size: 18px;
    }
}

/* Paywall Overlay */
.paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.paywall-overlay.active {
    opacity: 1;
    visibility: visible;
}

.paywall-modal {
    background: var(--white);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.paywall-content {
    padding: 40px 30px;
    text-align: center;
}

.paywall-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 15px;
}

.paywall-message {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-medium);
    margin-bottom: 30px;
}

.paywall-features {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 6px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--red-primary);
}

.feature-item span {
    font-size: 15px;
    font-weight: 500;
}

.paywall-btn {
    width: 100%;
    padding: 16px 32px;
    background-color: var(--red-primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.paywall-btn:hover {
    background-color: var(--red-dark);
    transform: translateY(-2px);
}

.paywall-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .paywall-content {
        padding: 30px 20px;
    }

    .paywall-title {
        font-size: 24px;
    }

    .paywall-message {
        font-size: 14px;
    }

    .feature-item span {
        font-size: 14px;
    }
}
