/* 
 * KAZrotech Blog Page Specific Styles
 * Enhanced styling for blog layouts and content
 */

/* Blog specific variables */
:root {
    --blog-card-bg: rgba(255, 255, 255, 0.08);
    --blog-meta-color: rgba(255, 255, 255, 0.7);
    --blog-excerpt-color: rgba(255, 255, 255, 0.85);
    --blog-hover-transform: translateY(-8px);
}

/* Blog header styling */
.blog-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 30px 30px;
}

.blog-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog navigation */
.blog-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-nav-links a:hover,
.blog-nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Blog post cards */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-post-card {
    background: var(--blog-card-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover::before {
    opacity: 1;
}

.blog-post-card:hover {
    transform: var(--blog-hover-transform);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--blog-meta-color);
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #a855f7;
}

.blog-post-excerpt {
    color: var(--blog-excerpt-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tag {
    background: rgba(79, 70, 229, 0.3);
    color: #a855f7;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    gap: 1rem;
    color: #c084fc;
}

/* Featured post */
.featured-post {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Blog sidebar (if needed) */
.blog-sidebar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.sidebar-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Refresh button */
.refresh-blog-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.refresh-blog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Responsive design for blog */
@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-post-read-time {
        margin-left: 0;
    }
}

/* Loading animation for dynamic content */
.blog-loading {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
