/* News-specific styles */
.nav-links {
    margin-top: 10px;
}

.nav-link {
    color: #ffd700;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.news-article {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-article:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.news-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b35);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    image-rendering: pixelated;
}

.article-title {
    color: #ffd700;
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-excerpt {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.article-date {
    color: #ffd700;
}

.article-category {
    background: #444;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Modal styles */
.article-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.article-content {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.article-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #ffd700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.article-content .close-btn:hover {
    color: #ffffff;
}

.article-content .article-title {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 15px;
    padding-right: 40px;
}

.article-content .article-meta {
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 14px;
}

.article-body {
    color: #cccccc;
    line-height: 1.6;
    font-size: 16px;
}

.article-body h3 {
    color: #ffd700;
    margin: 25px 0 15px 0;
}

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

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

.article-body li {
    margin-bottom: 8px;
}

.article-body code {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.article-body .recipe-highlight {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-left: 4px solid #ffd700;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-content {
        padding: 20px;
        margin: 10px;
    }

    .article-content .article-title {
        font-size: 1.5rem;
    }
}