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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #111827;
    background-color: #F8F9FA;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background-color: #D90429;
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: ticker-scroll 30s linear infinite;
}

.breaking-label {
    background-color: #B71C1C;
    color: white;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-text {
    color: white;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.main-navigation {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo h1 {
    font-family: 'Lora', serif;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.logo-accent {
    color: #D90429;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #6B7280;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

    .nav-link:hover,
    .nav-link.active {
        color: #111827;
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #D90429;
        }

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 240px;
    height: 44px;
    padding: 0 44px 0 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

    .search-input:focus {
        border-color: #D90429;
    }

.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

    .search-btn:hover {
        color: #D90429;
    }

/* Main Content */
.main-content {
    padding: 64px 0;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 48px;
    text-align: center;
}

/* Featured Section */
.featured-section {
    margin-bottom: 96px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.featured-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .featured-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.05);
    }

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
    }

.category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #D90429;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 32px;
}

.featured-card.large .card-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.card-content h3 {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-content p {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
}

/* Latest News Section */
.latest-news-section {
    margin-bottom: 96px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.news-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.05);
    }

    .news-card .card-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .news-card .card-content p {
        font-size: 14px;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
    }

.load-more-btn {
    display: block;
    margin: 0 auto;
    padding: 16px 32px;
    background-color: #D90429;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .load-more-btn:hover {
        background-color: #EF233C;
    }

/* Footer */
.main-footer {
    background-color: #111827;
    color: white;
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Lora', serif;
    margin-bottom: 24px;
}

.footer-section p {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 12px;
    }

        .footer-section ul li a {
            color: #9CA3AF;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: #D90429;
            }

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: #9CA3AF;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .social-link:hover {
        color: #D90429;
        background-color: rgba(217, 4, 41, 0.1);
    }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-card.large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 16px 24px;
        gap: 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .search-input {
        width: 200px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card.large {
        grid-column: span 1;
    }

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

    .container {
        padding: 0 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .breaking-news-ticker {
        height: 50px;
    }

    .ticker-content {
        animation-duration: 25s;
    }

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

    .search-input {
        width: 160px;
    }

    .card-content {
        padding: 24px;
    }

    .featured-card.large .card-content h3 {
        font-size: 24px;
    }

    .card-content h3 {
        font-size: 20px;
    }
}

/* Article Page Specific Styles */
.article-main {
    padding: 48px 0 96px;
    background-color: #F8F9FA;
    min-height: calc(100vh - 400px);
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
    color: #6B7280;
}

    .breadcrumb a {
        color: #6B7280;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .breadcrumb a:hover {
            color: #D90429;
        }

.breadcrumb-separator {
    margin: 0 8px;
}

.breadcrumb span:last-child {
    color: #111827;
    font-weight: 500;
}

/* Article Header */
.article-header {
    margin-bottom: 48px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.article-category {
    background-color: #D90429;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    font-weight: 600;
}

.article-date,
.reading-time {
    color: #6B7280;
}

    .reading-time::before {
        content: '•';
        margin-right: 8px;
    }

.article-title {
    font-family: 'Lora', serif;
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 32px;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid #E5E7EB;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 600;
    color: #111827;
}

.publish-date {
    font-size: 14px;
    color: #6B7280;
}

.article-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .action-btn:hover {
        border-color: #D90429;
        color: #D90429;
        background-color: rgba(217, 4, 41, 0.05);
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

/* Article Image */
.article-image-container {
    margin-bottom: 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 16px;
    background-color: #F8F9FA;
    color: #6B7280;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Article Body */
.article-body {
    margin-bottom: 64px;
}

    .article-body p {
        font-size: 18px;
        line-height: 1.8;
        color: #111827;
        margin-bottom: 32px;
    }

    .article-body h2 {
        font-family: 'Lora', serif;
        font-size: 32px;
        font-weight: 600;
        color: #111827;
        margin: 48px 0 24px;
        line-height: 1.3;
    }

    .article-body h3 {
        font-family: 'Lora', serif;
        font-size: 24px;
        font-weight: 600;
        color: #111827;
        margin: 32px 0 16px;
        line-height: 1.4;
    }

    .article-body blockquote {
        border-left: 4px solid #D90429;
        padding-left: 24px;
        margin: 32px 0;
        font-style: italic;
        font-size: 20px;
        line-height: 1.6;
        color: #4B5563;
        background-color: #F8F9FA;
        padding: 24px;
        border-radius: 0 8px 8px 0;
    }

    .article-body ul,
    .article-body ol {
        margin: 24px 0;
        padding-left: 32px;
    }

    .article-body li {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 1.7;
    }

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

    .article-body em {
        font-style: italic;
        color: #4B5563;
    }

.loading-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #F8F9FA;
    border-radius: 8px;
    border: 2px dashed #E5E7EB;
}

.loading-text {
    color: #6B7280;
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Article Tags */
.article-tags {
    margin-bottom: 64px;
    padding: 32px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    .article-tags h3 {
        font-family: 'Lora', serif;
        font-size: 20px;
        font-weight: 600;
        color: #111827;
        margin-bottom: 16px;
    }

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background-color: #F3F4F6;
    color: #4B5563;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .tag:hover {
        background-color: #D90429;
        color: white;
        transform: translateY(-2px);
    }

/* Related Articles */
.related-articles {
    margin-bottom: 64px;
}

.related-title {
    font-family: 'Lora', serif;
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 32px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Comments Section */
.comments-section {
    background-color: #FFFFFF;
    padding: 48px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comments-title {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 32px;
}

.comment-form {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E5E7EB;
}

.form-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input {
    flex: 1;
    min-height: 80px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

    .comment-input:focus {
        border-color: #D90429;
    }

.comment-submit {
    padding: 12px 24px;
    background-color: #D90429;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .comment-submit:hover {
        background-color: #EF233C;
    }

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.comment {
    display: flex;
    gap: 16px;
}

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

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #111827;
}

.comment-time {
    font-size: 14px;
    color: #6B7280;
}

.comment-text {
    color: #111827;
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-action {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .comment-action:hover {
        color: #D90429;
        background-color: rgba(217, 4, 41, 0.1);
    }

/* Article responsive design */
@media (max-width: 1024px) {
    .article-container {
        max-width: 700px;
    }

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

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

@media (max-width: 768px) {
    .article-container {
        padding: 0 16px;
    }

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

    .article-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .article-image {
        height: 300px;
    }

    .comments-section {
        padding: 32px 16px;
    }

    .form-header {
        flex-direction: column;
    }

    .user-avatar {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .article-main {
        padding: 24px 0 48px;
    }

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

    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .article-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

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

    .article-body h3 {
        font-size: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
