/* ===== BLOG STYLES ===== */

/* Blog Grid Layout */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
    margin-top: 2rem;
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

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

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 1rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.pagination-number:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

.pagination-number.current {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination-ellipsis {
    color: #64748b;
    padding: 0 0.5rem;
    font-weight: 500;
}

.pagination-info {
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .pagination-numbers {
        margin: 0 0.5rem;
    }
}

/* Blog Card Styles */
.blog-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 172, 254, 0.4);
    box-shadow: 0 20px 40px rgba(3, 7, 18, 0.4);
}

.blog-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

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

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(79, 172, 254, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.7);
}

.blog-card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card-title a {
    color: #e6efff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #4facfe;
}

.blog-card-excerpt {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-link {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card-link:hover {
    color: #00f2fe;
}

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

.search-wrapper {
    position: relative;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    color: #e6efff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.search-input::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(226, 232, 240, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-button:hover {
    color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
}

.search-results-info {
    margin-top: 1rem;
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.9rem;
}

.clear-search {
    color: #4facfe;
    text-decoration: none;
    margin-left: 1rem;
}

.clear-search:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(226, 232, 240, 0.7);
}

.no-results h3 {
    color: #e6efff;
    margin-bottom: 1rem;
}

/* Article Styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
}

.breadcrumb li:not(:last-child)::after {
    content: "→";
    margin-left: 0.5rem;
    color: rgba(226, 232, 240, 0.4);
}

.breadcrumb a {
    color: #4facfe;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
}

.article-category {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e6efff 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-excerpt {
    font-size: 1.2rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-author {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.9rem;
}

.article-featured-image {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    line-height: 1.8;
    color: rgba(226, 232, 240, 0.9);
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: #e6efff;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #e6efff;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content .article-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e6efff;
    margin-bottom: 2rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    background: rgba(79, 172, 254, 0.1);
    border-left: 4px solid #4facfe;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
    color: #e6efff;
}

.article-content strong {
    color: #e6efff;
    font-weight: 600;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e6efff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.tag {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-share h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e6efff;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: rgba(79, 172, 254, 0.3);
    transform: translateY(-2px);
}

/* Newsletter CTA */
.newsletter-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border: 1px solid rgba(79, 172, 254, 0.3);
}

/* Categories Page Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color, #4facfe);
    opacity: 0.8;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--category-color, #4facfe);
    box-shadow: 0 20px 40px rgba(3, 7, 18, 0.4);
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.category-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.category-title a {
    color: #e6efff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-title a:hover {
    color: var(--category-color, #4facfe);
}

.category-description {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-stats {
    color: var(--category-color, #4facfe);
    font-weight: 600;
    font-size: 0.9rem;
}

.category-posts {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 1.5rem;
}

.category-posts h4 {
    color: #e6efff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.category-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.category-post-item:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info h5 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.post-info h5 a {
    color: #e6efff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-info h5 a:hover {
    color: var(--category-color, #4facfe);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.6);
}

.view-all-link {
    color: var(--category-color, #4facfe);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #00f2fe;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-card-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .tag-list {
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-post-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 120px;
    }
}
