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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    color: #FFD700;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* All Blogs Section */
.all-blogs-section {
    padding: 60px 20px 100px;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease;
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    animation: fadeInScale 0.5s ease;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 25px;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #FFD700;
}

.blog-excerpt {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #E0E0E0;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-rank {
    background: rgba(255, 215, 0, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    color: #FFD700;
}

.btn-read-more {
    display: inline-block;
    padding: 10px 25px;
    background: #228B22;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-read-more:hover {
    background: #1a6b1a;
    transform: scale(1.05);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 1.5rem;
    color: #FFD700;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.loading-spinner.hidden {
    display: none;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    text-align: center;
}

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

.social-links a {
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: #FFD700;
}

.x-icon-footer {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.social-links a:hover .x-icon-footer {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(30deg);
}

/* Email Links */
.email-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.email-link {
    color: #FFD700;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.1);
    display: inline-block;
}

.email-link:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
    color: #FFF;
}

.copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-card {
        max-width: 100%;
    }
    
    .social-links a {
        font-size: 20px;
    }
    
    .x-icon-footer {
        width: 20px;
        height: 20px;
    }
    
    .email-link {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
}
