/* Import from main styles.css */
@import url('styles.css');

/* Blog Specific Overrides */
body {
    background: #ffffff;
}

/* Blog Hero Section */
.blog-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: white;
    text-align: center;
    position: relative;
    padding: 180px 20px 100px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, rgba(16, 185, 129, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glassFloat 8s ease-in-out infinite;
}

@keyframes glassFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-60%, -45%) scale(1.1);
    }
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Filter Section */
.blog-filter {
    padding: 30px 0;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.filter-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-trigger-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.search-trigger-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.search-trigger-btn i {
    color: #6b7280;
    font-size: 18px;
}

.search-trigger-btn:hover i {
    color: #2563eb;
}

/* Search Modal */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal-overlay.show .search-modal {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.search-modal-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-modal-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #6b7280;
    font-size: 18px;
}

.search-modal-input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #000000;
    font-size: 16px;
    transition: all 0.3s;
}

.search-modal-input-wrapper input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
}

.search-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.search-modal-close:hover {
    background: #ef4444;
    color: white;
}

.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.search-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.search-placeholder i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.search-placeholder p {
    font-size: 16px;
}

.search-result-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.search-result-item:hover {
    border-color: #2563eb;
    background: #f9fafb;
    transform: translateX(4px);
}

.search-result-category {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-result-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.search-result-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 8px;
}

.search-result-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.search-result-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.search-no-results i {
    font-size: 64px;
    color: #2563eb;
    opacity: 0.3;
    margin-bottom: 16px;
}

.search-no-results h3 {
    font-size: 20px;
    color: #000;
    margin-bottom: 8px;
}

.search-no-results p {
    color: #6b7280;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-tag:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-tag.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title i {
    color: #ef4444;
    font-size: 2.2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Popular Posts Section */
.popular-posts-section {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Admin Posts Section */
.admin-posts-section {
    padding: 80px 0 40px;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.admin-posts-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    top: 20%;
    right: -10%;
    animation: adminFloat 12s ease-in-out infinite;
}

.admin-posts-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.3) 0%, rgba(16, 185, 129, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    bottom: 10%;
    left: -10%;
    animation: adminFloat 15s ease-in-out infinite reverse;
}

@keyframes adminFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

.admin-posts-section .section-header {
    position: relative;
    z-index: 1;
}

.admin-posts-section .section-title {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.admin-posts-section .section-title i {
    color: #34d399;
    font-size: 2rem;
}

.admin-posts-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.admin-header-content {
    position: relative;
    z-index: 1;
}

.admin-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 24px rgba(16, 185, 129, 0.8); 
    }
}

.admin-posts-grid {
    display: flex;
    gap: 35px;
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.admin-posts-grid::-webkit-scrollbar {
    height: 10px;
}

.admin-posts-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.admin-posts-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
}

.admin-posts-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.admin-post-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    min-width: 380px;
    max-width: 380px;
    flex-shrink: 0;
}

.admin-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.admin-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    border-color: #34d399;
}

.admin-post-card .blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.admin-post-card .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.admin-author-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
    animation: adminGlow 2s infinite;
}

@keyframes adminGlow {
    0%, 100% { 
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 24px rgba(16, 185, 129, 0.9);
        transform: scale(1.05);
    }
}

.admin-author-badge i {
    font-size: 11px;
}

/* Most Viewed Section */
.most-viewed-section {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.popular-posts-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.popular-posts-grid::-webkit-scrollbar {
    height: 10px;
}

.popular-posts-grid::-webkit-scrollbar-track {
    background: rgba(251, 191, 36, 0.2);
    border-radius: 10px;
}

.popular-posts-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 10px;
}

.popular-posts-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.popular-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.popular-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.popular-post-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

.popular-post-card:nth-child(1) .popular-post-rank {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.4);
}

.popular-post-card:nth-child(2) .popular-post-rank {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    box-shadow: 0 4px 8px rgba(209, 213, 219, 0.4);
}

.popular-post-card:nth-child(3) .popular-post-rank {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    box-shadow: 0 4px 8px rgba(251, 146, 60, 0.4);
}

/* Multilang Badge */
.multilang-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: pulseBadge 2s ease-in-out infinite;
}

.multilang-badge i {
    font-size: 1rem;
}

@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    }
}

.popular-post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.popular-post-content {
    padding: 20px;
}

.popular-post-category {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.popular-post-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.popular-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-post-card .popular-post-content {
    padding: 24px;
}

.admin-post-card .popular-post-category {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
}

.admin-post-card .popular-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-post-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-post-card .popular-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.admin-post-card .popular-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
}

.admin-post-card .popular-post-meta i {
    color: #10b981;
}

.admin-post-card .popular-post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.admin-post-card .popular-post-link:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.admin-post-card .popular-post-link i {
    transition: transform 0.3s;
}

.admin-post-card .popular-post-link:hover i {
    transform: translateX(5px);
}

.popular-post-meta i {
    color: #2563eb;
}

.popular-post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    transition: gap 0.3s;
}

.popular-post-link:hover {
    gap: 12px;
}

/* Most Viewed Posts Styles */
.most-viewed-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.most-viewed-grid::-webkit-scrollbar {
    height: 10px;
}

.most-viewed-grid::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
}

.most-viewed-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
}

.most-viewed-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.most-viewed-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
}

.most-viewed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.most-viewed-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.4);
}

.most-viewed-card:nth-child(1) .most-viewed-rank {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.4);
}

.most-viewed-card:nth-child(2) .most-viewed-rank {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.4);
}

.most-viewed-card:nth-child(3) .most-viewed-rank {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.most-viewed-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.most-viewed-content {
    padding: 20px;
}

.most-viewed-category {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.most-viewed-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-viewed-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.most-viewed-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.most-viewed-meta i {
    color: #2563eb;
}

.most-viewed-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    transition: gap 0.3s;
}

.most-viewed-link:hover {
    gap: 12px;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

/* Blog Cards */
.blog-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.blog-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.blog-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ef4444;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-card.featured .blog-card-image {
    height: 100%;
}

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

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

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.read-more {
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}

.blog-category {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.blog-date,
.blog-read-time {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.blog-author span {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.blog-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

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

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    border: 2px solid #e5e7eb;
    color: #000000;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    background: #f3f4f6;
}

.newsletter-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 36px;
    color: white;
}

.newsletter-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #000000;
    font-weight: 700;
}

.newsletter-box p {
    color: #6b7280;
    margin-bottom: 35px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-section .newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-section .newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #000000;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-section .newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-section .newsletter-form input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.newsletter-section .newsletter-form button {
    padding: 16px 32px;
    background: #2563eb;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    white-space: nowrap;
}

.newsletter-section .newsletter-form button i {
    font-size: 16px;
}

.newsletter-section .newsletter-form button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.newsletter-section .newsletter-form button:active {
    transform: translateY(0);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-container > * {
    pointer-events: all;
}

/* Logout Modal Override */
.logout-modal-overlay.show,
.logout-modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Smooth blog card transitions */
.blog-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive toast positioning */
@media (max-width: 768px) {
    .toast-container {
        top: 90px;
        right: 15px;
        left: 15px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-title i {
        font-size: 1.6rem;
    }

    .popular-posts-grid {
        grid-template-columns: 1fr;
    }

    .popular-post-rank {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .most-viewed-grid {
        grid-template-columns: 1fr;
    }

    .most-viewed-rank {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .search-modal {
        max-height: 90vh;
        margin: 0;
    }

    .search-modal-overlay {
        padding: 10px;
        align-items: center;
    }

    .search-modal-input-wrapper input {
        font-size: 14px;
    }

    .search-result-title {
        font-size: 16px;
    }

    .blog-hero {
        padding: 140px 20px 80px;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }

    .blog-hero-subtitle {
        font-size: 1.1rem;
    }

    .blog-filter {
        padding: 20px 0;
    }

    .filter-wrapper {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .filter-tags {
        width: 100%;
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        padding: 40px 30px;
    }

    .newsletter-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 25px;
    }

    .newsletter-box h2 {
        font-size: 2rem;
    }

    .newsletter-box p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .newsletter-section .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-section .newsletter-form input {
        padding: 14px 20px;
    }

    .newsletter-section .newsletter-form button {
        padding: 14px 24px;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }

    .newsletter-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .newsletter-box {
        padding: 35px 25px;
    }

    .newsletter-box h2 {
        font-size: 1.6rem;
    }

    .newsletter-box p {
        font-size: 0.95rem;
    }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    color: #6b7280;
}

/* Blog Card Link */
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: 1rem;
}

.blog-card-link:hover {
    gap: 0.75rem;
}

.blog-card-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

/* Blog Card Meta */
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-card-meta i {
    font-size: 0.75rem;
}

/* Blog Card Image */
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Blog Card Title */
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Blog Card Category */
.blog-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Card Content */
.blog-card-content {
    padding: 1rem;
}

/* ============================================
   SKELETON LOADING STYLES
   ============================================ */

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Skeleton Loader Container */
.skeleton-loader {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

/* Skeleton Card */
.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Skeleton Image */
.skeleton-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Skeleton Content */
.skeleton-content {
    padding: 1.5rem;
}

/* Skeleton Lines */
.skeleton-line {
    height: 16px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Skeleton Variations */
.skeleton-category {
    width: 30%;
    height: 12px;
}

.skeleton-title {
    width: 100%;
    height: 20px;
    margin-top: 12px;
}

.skeleton-title-short {
    width: 70%;
    height: 20px;
}

.skeleton-excerpt {
    width: 100%;
    height: 14px;
    margin-top: 12px;
}

.skeleton-excerpt-short {
    width: 85%;
    height: 14px;
}

/* Skeleton Meta */
.skeleton-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.skeleton-meta-item {
    width: 80px;
    height: 12px;
}

/* Grid Layouts for Skeleton Loader */
.popular-posts-grid .skeleton-loader,
.most-viewed-grid .skeleton-loader {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.blog-grid .skeleton-loader {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Responsive Skeleton Grid */
@media (max-width: 1024px) {
    .blog-grid .skeleton-loader {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid .skeleton-loader {
        grid-template-columns: 1fr;
    }
    
    .skeleton-img {
        height: 180px;
    }
}
