/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Blog-specific styles */

.blog-header {
    background: linear-gradient(135deg, #00FF88 0%, #8B00FF 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.blog-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00FF88, #FFD700, #8B00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    position: relative;
    z-index: 1;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-main {
    padding: 80px 0;
    background: #0A0A0A;
    color: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.featured-article {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 255, 136, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 255, 136, 0.3);
    border-color: rgba(0, 255, 136, 0.4);
}

.article-image {
    position: relative;
    overflow: hidden;
}

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

.featured-article:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category {
    background: linear-gradient(135deg, #00FF88, #8B00FF);
    color: #0A0A0A;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.date {
    color: #cccccc;
    font-size: 0.875rem;
}

.article-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    background: linear-gradient(45deg, #00FF88, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00FF88;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.read-more:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.blog-posts {
    display: grid;
    gap: 2rem;
}

.blog-post {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 255, 136, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
}

.blog-post h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    background: linear-gradient(45deg, #00FF88, #8B00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-post .excerpt {
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #cccccc;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 255, 136, 0.1);
}

.sidebar-widget h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    background: linear-gradient(45deg, #00FF88, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #cccccc;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #00FF88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    background: rgba(10, 10, 10, 0.8);
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #00FF88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

.newsletter-form button {
    background: linear-gradient(135deg, #00FF88, #8B00FF);
    color: #0A0A0A;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.newsletter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #00FF88;
    background: rgba(0, 255, 136, 0.1);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 100px 0 60px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-main {
        padding: 60px 0;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .blog-post {
        padding: 1rem;
    }
}

/* Animation for loading new posts */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post.new {
    animation: fadeInUp 0.5s ease-out;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(10, 10, 10, 0.8);
    color: #cccccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    border-color: #00FF88;
    color: #00FF88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.pagination button.active {
    background: linear-gradient(135deg, #00FF88, #8B00FF);
    color: #0A0A0A;
    border-color: #00FF88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Blog Footer Override */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: white !important;
}

.footer-content {
    color: white !important;
}

.footer-section h3,
.footer-section h4 {
    color: white !important;
}

.footer-section p,
.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-section ul li a:hover {
    color: white !important;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Search functionality */
.blog-search {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(10, 10, 10, 0.8);
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00FF88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(0, 255, 136, 0.1);
    color: #00FF88;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.tag:hover {
    background: rgba(0, 255, 136, 0.2);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}