/* Base Styles */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

/* Site Footer */
.site-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.social-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.social-button:hover {
    background-color: #3a3a3a;
}

.copyright {
    color: #808080;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* News Post Specific Styles */
.news-header {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.news-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #f44336, #4CAF50, #00BCD4, #CDDC39, #9C27B0);
}

.news-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 15px;
}

.news-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    color: #000000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Category Colors */
.news-category.code { background-color: #f44336; }
.news-category.vr { background-color: #4CAF50; }
.news-category.ai { background-color: #00BCD4; }
.news-category.stuff { background-color: #CDDC39; }
.news-category.tech { background-color: #9C27B0; }

/* News Content Styles */
.news-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.news-content h2 {
    margin: 2rem 0 1rem;
    color: #ffffff;
}

.news-content h3 {
    margin: 1.5rem 0 0.75rem;
    color: #f0f0f0;
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Staggered layout */
.gallery-item.large {
    grid-column: span 8;
    grid-row: span 2;
}

.gallery-item.medium {
    grid-column: span 6;
}

.gallery-item.small {
    grid-column: span 4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Fullscreen Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ffffff;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Back to home link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.back-link::before {
    content: '←';
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 6;
    }
    
    .gallery-item.medium {
        grid-column: span 3;
    }
    
    .gallery-item.small {
        grid-column: span 3;
    }
    
    .news-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.small {
        grid-column: span 1;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
}