/* ============================================
   developer-insights.css - Deecipher Technologies
   Developer Insights / Blog Page Styles
   Follows the same design system as about.css
   Version: 2.0 | Production Ready
   ============================================ */

/* ============================================
   1. Hero Section (Original About Page Style)
   ============================================ */
.insights-hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.insights-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
}

.section-tag.center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--neutral-500);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Stats Row */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    line-height: 1.2;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--neutral-500);
    font-weight: 500;
}

/* Testimonial Feature Card */
.testimonial-feature-card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.testimonial-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.quote-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    opacity: 0.4;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.author-info span {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

/* ============================================
   2. Categories Filter Section
   ============================================ */
.categories-section {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 70px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.categories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--neutral-300);
    background: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   3. Featured Post Section
   ============================================ */
.featured-section {
    padding: 60px 0 40px;
    background: var(--white);
}

.featured-post {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.featured-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-blue);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-category {
    background: rgba(26, 35, 126, 0.1);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.post-date,
.post-read-time {
    font-size: 0.75rem;
    color: var(--neutral-500);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.featured-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    line-height: 1.3;
}

.featured-content p {
    font-size: 0.95rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.featured-footer .author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-footer .author-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-footer .author-info strong {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0;
}

.featured-footer .author-info span {
    font-size: 0.7rem;
    color: var(--neutral-500);
}

.read-more-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   4. Latest Posts Section
   ============================================ */
.latest-posts-section {
    padding: 60px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--neutral-500);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.08);
}

.post-category-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.post-body {
    padding: 1.5rem;
}

.post-body .post-meta {
    margin-bottom: 0.75rem;
}

.post-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    line-height: 1.4;
}

.post-body p {
    font-size: 0.85rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-mini img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.author-mini span {
    font-size: 0.75rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.read-link {
    font-size: 0.8rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.read-link:hover {
    gap: 0.5rem;
    color: var(--primary-purple);
}

/* Load More Button */
.btn-outline-primary-custom {
    background: transparent;
    color: var(--primary-blue);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
}

.btn-outline-primary-custom:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   5. Code Spotlight Section
   ============================================ */
.code-spotlight-section {
    padding: 80px 0;
    background: var(--neutral-100);
}

.code-description h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.code-description p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.code-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.code-features span {
    font-size: 0.8rem;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.code-features span i {
    font-size: 0.7rem;
}

.code-block {
    background: #1e1e1e;
    border-radius: 16px;
    overflow: hidden;
}

.code-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-language {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ============================================
   6. Tags Section
   ============================================ */
.tags-section {
    padding: 80px 0;
    background: var(--white);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag {
    background: var(--white);
    border: 1px solid var(--neutral-300);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--neutral-600);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   7. Newsletter Section
   ============================================ */
.newsletter-section {
    padding: 80px 0;
    background: var(--neutral-100);
}

.newsletter-card {
    background: var(--white);
    border-radius: 32px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.newsletter-card p {
    font-size: 1rem;
    color: var(--neutral-500);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--neutral-300);
}

.newsletter-form .btn-primary-custom {
    padding: 0.85rem 1.5rem;
    white-space: nowrap;
}

.newsletter-note {
    font-size: 0.75rem;
    color: var(--neutral-400);
    margin-top: 1rem;
}

/* ============================================
   8. CTA Section (Contribute)
   ============================================ */
.contribute-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    border-radius: 32px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.cta-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: white;
    color: var(--primary-blue);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--neon-blue);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: white;
}

/* ============================================
   9. Modal Styles
   ============================================ */
.modal-content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--neutral-200);
    padding: 1rem 1.5rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--neutral-700);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-300);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    outline: none;
}

.btn-secondary {
    background: var(--neutral-200);
    color: var(--neutral-700);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
}

.btn-secondary:hover {
    background: var(--neutral-300);
}

/* ============================================
   10. Responsive Styles
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .stats-row {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .insights-hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stats-row {
        gap: 1rem;
        justify-content: space-between;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .section-subheading {
        font-size: 1rem;
    }
    
    .categories-filter {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content h2 {
        font-size: 1.25rem;
    }
    
    .featured-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .code-spotlight-section .row {
        flex-direction: column;
    }
    
    .code-description {
        margin-bottom: 2rem;
    }
    
    .newsletter-card {
        padding: 2rem;
    }
    
    .newsletter-card h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-card h3 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stats-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 0.5rem);
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .featured-image {
        min-height: 250px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .tags-cloud {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.35rem 1rem;
        font-size: 0.75rem;
    }
    
    .code-block pre {
        padding: 1rem;
        font-size: 0.7rem;
    }
}

/* ============================================
   11. Utility Classes
   ============================================ */
.bg-light {
    background-color: var(--neutral-100) !important;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.d-none {
    display: none;
}

/* Animation Overrides */
[data-aos] {
    pointer-events: auto !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .info-strip,
    .navbar,
    .categories-section,
    .newsletter-section,
    .contribute-section,
    .modal,
    footer {
        display: none;
    }
    
    .insights-hero-section,
    .featured-section,
    .latest-posts-section,
    .code-spotlight-section,
    .tags-section {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    .post-card,
    .featured-post {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}