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

/* Blog Hero Section */
.blog-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.blog-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Blog Card */
.blog-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.3);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

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

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-date::before {
    content: '📅';
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-read-time::before {
    content: '⏱️';
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-card:hover .read-more {
    gap: 1rem;
}

/* Blog CTA Section */
.blog-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Blog Post Page Styles */
.blog-post-hero {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
}

.blog-post-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.blog-post-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.blog-post-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.blog-post-content {
    padding: 80px 0;
    background: var(--bg-primary);
}

.blog-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
}

.blog-content-wrapper h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.blog-content-wrapper h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--accent);
}

.blog-content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.blog-content-wrapper li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.blog-content-wrapper strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-content-wrapper blockquote {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(0, 217, 255, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
}

.blog-content-wrapper .highlight-box {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.blog-content-wrapper .key-points {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.blog-content-wrapper .key-points h3 {
    margin-top: 0;
    color: var(--accent);
}

/* Responsive */
@media (max-width: 991px) {
    .blog-hero-title {
        font-size: 3rem;
    }

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

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

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

    .blog-cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 140px 0 60px;
    }

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

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

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-image {
        height: 200px;
    }

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

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-cta-content h2 {
        font-size: 2rem;
    }

    .blog-cta-content p {
        font-size: 1rem;
    }

    .blog-content-wrapper h2 {
        font-size: 2rem;
    }

    .blog-content-wrapper h3 {
        font-size: 1.5rem;
    }

    .blog-content-wrapper p,
    .blog-content-wrapper li {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}
