/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bfm-red: #E30613;
    --bfm-red-dark: #B8050F;
    --bfm-black: #1A1A1A;
    --bfm-gray-dark: #333333;
    --bfm-gray: #666666;
    --bfm-gray-light: #999999;
    --bfm-gray-lighter: #E5E5E5;
    --bfm-gray-bg: #F5F5F5;
    --bfm-white: #FFFFFF;
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-title: 'Roboto Condensed', 'Roboto', sans-serif;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    color: var(--bfm-black);
    background-color: var(--bfm-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: var(--bfm-black);
    color: var(--bfm-white);
    padding: 8px 0;
    font-size: 12px;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--bfm-red);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.top-bar-text {
    color: var(--bfm-gray-light);
}

/* Header */
.header {
    background-color: var(--bfm-white);
    border-bottom: 3px solid var(--bfm-red);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    flex-shrink: 0;
}

.logo-svg {
    width: 100px;
    height: 34px;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bfm-gray-dark);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background-color: var(--bfm-gray-bg);
    color: var(--bfm-red);
}

.main-nav li.active a {
    background-color: var(--bfm-red);
    color: var(--bfm-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--bfm-gray-dark);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: var(--bfm-gray-bg);
}

/* Mobile Nav */
.mobile-nav {
    background-color: var(--bfm-gray-bg);
    border-bottom: 1px solid var(--bfm-gray-lighter);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav ul {
    display: flex;
    white-space: nowrap;
    padding: 0 10px;
}

.mobile-nav a {
    display: block;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bfm-gray-dark);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-nav li.active a {
    color: var(--bfm-red);
    border-bottom-color: var(--bfm-red);
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    font-size: 12px;
    color: var(--bfm-gray);
    border-bottom: 1px solid var(--bfm-gray-lighter);
}

.breadcrumb a {
    color: var(--bfm-gray);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--bfm-red);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--bfm-gray-light);
}

/* Main Content */
.main-content {
    padding: 25px 0 50px;
    background-color: var(--bfm-gray-bg);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Article */
.article {
    background-color: var(--bfm-white);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.category-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--bfm-red);
    color: var(--bfm-white);
    border-radius: 2px;
}

.category-badge.secondary {
    background-color: var(--bfm-black);
}

.article-title {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bfm-black);
    margin-bottom: 15px;
}

.article-chapo {
    font-size: 18px;
    line-height: 1.5;
    color: var(--bfm-gray-dark);
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bfm-gray-lighter);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--bfm-gray);
}

.article-author {
    font-weight: 500;
}

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

.article-share {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bfm-gray-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--bfm-gray);
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: var(--bfm-red);
    color: var(--bfm-white);
}

/* Article Image */
.article-image {
    margin-bottom: 25px;
}

.featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 4px;
}

.image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
}

.image-placeholder span {
    font-size: 14px;
    color: var(--bfm-gray-light);
    font-weight: 500;
}

.article-image figcaption {
    font-size: 12px;
    color: var(--bfm-gray);
    padding: 10px 0;
    font-style: italic;
}

/* Article Body */
.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--bfm-gray-dark);
}

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

.article-body h2 {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    color: var(--bfm-black);
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--bfm-red);
}

.article-body strong {
    font-weight: 600;
}

.article-body em {
    font-style: italic;
    color: var(--bfm-gray);
}

/* Article Tags */
.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bfm-gray-lighter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tag-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--bfm-gray);
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bfm-gray-dark);
    background-color: var(--bfm-gray-bg);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: var(--bfm-red);
    color: var(--bfm-white);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background-color: var(--bfm-white);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--bfm-black);
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--bfm-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-article {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bfm-gray-lighter);
}

.sidebar-article:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-article-image {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-article-content {
    flex: 1;
    min-width: 0;
}

.sidebar-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--bfm-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sidebar-article h4 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bfm-black);
}

.sidebar-article h4 a:hover {
    color: var(--bfm-red);
}

/* Most Read */
.most-read {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.most-read-article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bfm-gray-lighter);
}

.most-read-article:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.most-read-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--bfm-red);
    color: var(--bfm-white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}

.most-read-article h4 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bfm-black);
}

.most-read-article h4 a:hover {
    color: var(--bfm-red);
}

/* Footer */
.footer {
    background-color: var(--bfm-black);
    color: var(--bfm-white);
    padding: 40px 0 25px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 25px;
}

.footer-logo .logo-svg {
    width: 90px;
    height: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    font-size: 13px;
    color: var(--bfm-gray-light);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--bfm-white);
}

.footer-bottom {
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--bfm-gray);
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--bfm-white);
}

.footer-copyright {
    font-size: 11px;
    color: var(--bfm-gray);
    line-height: 1.6;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .article {
        padding: 30px;
    }

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

    .article-chapo {
        font-size: 20px;
    }

    .image-placeholder {
        height: 350px;
    }

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

    .article-body h2 {
        font-size: 24px;
    }

    .content-wrapper {
        grid-template-columns: 1fr 300px;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .mobile-nav {
        display: none;
    }

    .main-nav {
        display: block;
    }

    .logo-svg {
        width: 120px;
        height: 40px;
    }

    .article {
        padding: 40px;
    }

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

    .image-placeholder {
        height: 450px;
    }

    .content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }

    .sidebar-section {
        padding: 25px;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .header,
    .mobile-nav,
    .breadcrumb,
    .article-share,
    .article-tags,
    .sidebar,
    .footer {
        display: none;
    }

    .main-content {
        padding: 0;
        background: none;
    }

    .article {
        box-shadow: none;
        padding: 0;
    }

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