/* 
File: assets/css/blog-style.css 
*/

/* ==========================================================================
   Variables & Typography
   ========================================================================== */
:root {
    --primary-color: #0F62FE;
    --dark-color: #050B14;
    --bg-light: #F4F7FC;
    --gradient-blue: linear-gradient(90deg, #0F62FE 0%, #00D4FF 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-radius: 20px;
    --btn-radius: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.blog-page-wrapper {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: #4A5568;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.blog-container {
    max-width: 1320px;
}

.tracking-wider { letter-spacing: 0.1em; }
.tracking-wide { letter-spacing: 0.05em; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.blog-hero {
    background: var(--dark-color);
    padding: 120px 0 80px;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(15,98,254,0.15) 0%, rgba(5,11,20,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-bottom-glow {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    box-shadow: 0 -10px 40px rgba(0, 212, 255, 0.6);
    z-index: 2;
}

.hero-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.hero-subtitle {
    font-size: 0.875rem;
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.blog-card {
    border-radius: var(--card-radius);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.blog-card-img-wrap {
    width: 100%;
    height: 220px;
}

@media (min-width: 768px) {
    .blog-card-img-wrap {
        width: 320px;
        height: 220px;
    }
}

.transition-transform {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.group:hover .group-hover-scale {
    transform: scale(1.08);
}

.hover-text-primary:hover {
    color: var(--primary-color) !important;
}

.transition-colors {
    transition: color 0.3s ease;
}

.category-text {
    font-size: 0.75rem;
}

.read-more-link {
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.widget {
    border: 1px solid rgba(0,0,0,0.03);
}

.search-widget .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.search-widget .btn-primary:hover {
    background: #0d54db;
}

.cat-list li {
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.cat-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.newsletter-widget {
    background: linear-gradient(145deg, #061124 0%, #050B14 100%);
    border: 1px solid rgba(255,255,255,0.05);
}

.popular-post-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.blog-pagination ul {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 0.5rem;
    margin-bottom: 0;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: var(--dark-color);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.blog-pagination .page-numbers:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.blog-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(15,98,254,0.3);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-box {
    border: 2px solid transparent;
}

.cta-bg {
    background: var(--gradient-blue);
}

.cta-rocket {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 991.98px) {
    .blog-hero {
        padding: 80px 0 60px;
    }
    .cta-box {
        border-radius: 30px !important;
        text-align: center;
    }
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    .cta-rocket {
        margin-bottom: -20px;
    }
}

@media (max-width: 767.98px) {
    .blog-card-img-wrap {
        height: 200px;
    }
    .blog-card {
        text-align: center;
    }
    .blog-meta {
        justify-content: center;
    }
    .read-more-link {
        justify-content: center;
    }
}