/* Blog-specific styles */

/* Blog Hero Section */
.blog-hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '📖';
    position: absolute;
    top: 20px;
    left: 10%;
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.blog-hero::after {
    content: '🍄';
    position: absolute;
    top: 20px;
    right: 10%;
    font-size: 2.5rem;
    animation: bounce 2s infinite 0.5s;
}

.blog-hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 
        3px 3px 0px #FF6B6B,
        6px 6px 0px #4ECDC4,
        9px 9px 20px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

.blog-hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Blog Posts Section */
.blog-posts {
    padding: 60px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Blog Post Cards */
.blog-post-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover::before {
    opacity: 1;
}

.blog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.5);
    border-color: #FFD700;
}

.post-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-content h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.post-date,
.post-category {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Active navigation link */
nav a.active {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #5C94FC 100%);
    margin: 2% auto;
    padding: 0;
    border: 3px solid #FFD700;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.close {
    color: #FFD700;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.close:hover {
    color: #FF6B6B;
    transform: scale(1.2);
}

#modalContent {
    padding: 40px;
    color: white;
    line-height: 1.8;
}

#modalContent h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #FFD700;
    text-shadow: 
        2px 2px 0px #FF6B6B,
        4px 4px 0px #4ECDC4,
        6px 6px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

#modalContent h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    margin: 30px 0 15px;
    color: #4ECDC4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#modalContent p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

#modalContent img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    margin: 20px auto;
    display: block;
    border: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-content h2 {
        font-size: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    #modalContent {
        padding: 20px;
    }
    
    #modalContent h1 {
        font-size: 1.4rem;
    }
    
    #modalContent h2 {
        font-size: 1rem;
    }
    
    .blog-hero::before,
    .blog-hero::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        margin: 20px 0;
        padding: 40px 0 30px;
    }
    
    .blog-hero h1 {
        font-size: 1.5rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-content h2 {
        font-size: 0.9rem;
    }
    
    .close {
        font-size: 1.5rem;
        padding: 15px;
    }
}

