/* =====================================================
   Blog Styles - TargaReport
   ===================================================== */

/* Fonts */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800.woff2') format('woff2')}

/* =====================================================
   Blog Index Page
   ===================================================== */

.blog-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230F1419' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.blog-hero-badge {
    display: inline-block;
    background: rgba(15, 20, 25, 0.08);
    color: #0F1419;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #0F1419;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 18px;
    color: #5F6368;
    max-width: 600px;
    margin: 0 auto;
}

.blog-section {
    padding: 80px 0;
    background: #FAFBFC;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Article Cards */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.15s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.article-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-image .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F1419;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 13px;
    color: #5F6368;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-meta svg {
    width: 14px;
    height: 14px;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3B82F6;
    font-weight: 500;
}

.reading-time svg {
    width: 14px;
    height: 14px;
}

.article-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0F1419;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card h2 a {
    text-decoration: none;
    color: inherit;
}

.article-card h2 a:hover {
    color: #3B82F6;
}

.article-excerpt {
    font-size: 15px;
    color: #5F6368;
    line-height: 1.6;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #3B82F6;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.read-more:hover {
    color: #2563EB;
}

.read-more svg {
    transition: transform 0.2s ease;
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    color: #DADCE0;
    margin-bottom: 24px;
}

.empty-state h2 {
    font-size: 24px;
    color: #0F1419;
    margin-bottom: 12px;
}

.empty-state p {
    color: #5F6368;
    margin-bottom: 24px;
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-nav a {
    padding: 12px 20px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #DADCE0;
    color: #0F1419;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-nav a:hover {
    border-color: #FCC419;
    background: #FFF9E6;
}

.pagination-nav a.active {
    background: #FCC419;
    border-color: #FCC419;
    color: #000;
}

.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px !important;
    background: #0F1419 !important;
    border-color: #0F1419 !important;
    color: #fff !important;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #1a2530 !important;
    border-color: #1a2530 !important;
    transform: translateY(-2px);
}

.pagination-ellipsis {
    color: #5F6368;
    padding: 0 4px;
}

/* Blog CTA Section */
.blog-cta {
    background: #0F1419;
    padding: 60px 0;
    text-align: center;
}

.blog-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.blog-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.blog-cta .btn-primary {
    display: inline-block;
    background: #FCC419;
    color: #000;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.blog-cta .btn-primary:hover {
    transform: scale(1.05);
}

/* =====================================================
   Article Detail Page
   ===================================================== */

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FCC419 0%, #F59F00 100%);
    transition: width 0.1s ease-out;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.share-label {
    font-size: 14px;
    color: #5F6368;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-whatsapp:hover {
    background: #25D366;
}

.share-whatsapp:hover svg {
    fill: #fff;
}

.share-facebook:hover {
    background: #1877F2;
}

.share-facebook:hover svg {
    fill: #fff;
}

.share-twitter:hover {
    background: #0F1419;
}

.share-twitter:hover svg {
    fill: #fff;
}

.share-linkedin:hover {
    background: #0A66C2;
}

.share-linkedin:hover svg {
    fill: #fff;
}

.share-copy {
    color: #5F6368;
}

.share-copy:hover {
    background: #3B82F6;
    color: #fff;
}

.share-copy:hover svg {
    stroke: #fff;
}

.share-copy.copied {
    background: #22C55E;
    color: #fff;
}

.share-copy.copied svg {
    stroke: #fff;
}

.article-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
    padding: 60px 0 40px;
    text-align: left;
}

.article-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #0F1419;
    margin-bottom: 20px;
    line-height: 1.2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5F6368;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #0F1419;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

.article-hero .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #5F6368;
    font-size: 15px;
}

.article-hero .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-hero .article-meta svg {
    width: 18px;
    height: 18px;
}

.article-body {
    padding: 60px 0;
    background: #FAFBFC;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 48px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #0F1419;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-content h1 { font-size: 32px; }
.article-content h2 { font-size: 26px; }
.article-content h3 { font-size: 22px; }

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.article-content a {
    color: #3B82F6;
    text-decoration: underline;
}

.article-content a:hover {
    color: #2563EB;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #3B82F6;
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #5F6368;
    background: #F3F4F6;
    border-radius: 0 12px 12px 0;
}

/* Article CTA Box */
.article-cta {
    max-width: 760px;
    margin: 48px auto;
    padding: 40px;
    background: linear-gradient(135deg, #FCC419 0%, #F59F00 100%);
    border-radius: 16px;
    text-align: center;
}

.article-cta h3 {
    font-size: 26px;
    font-weight: 700;
    color: #0F1419;
    margin-bottom: 12px;
}

.article-cta p {
    font-size: 17px;
    color: #374151;
    margin-bottom: 24px;
}

.article-cta .btn-primary {
    display: inline-block;
    background: #0F1419;
    color: #fff;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.article-cta .btn-primary:hover {
    transform: scale(1.05);
}

/* Article Navigation */
.article-navigation {
    max-width: 760px;
    margin: 0 auto 60px;
    display: flex;
    gap: 24px;
}

.article-nav-link {
    flex: 1;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.article-nav-link.next {
    text-align: right;
}

.article-nav-label {
    font-size: 13px;
    color: #5F6368;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.article-nav-title {
    color: #0F1419;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

.article-nav-link:hover .article-nav-title {
    color: #3B82F6;
}

/* =====================================================
   Responsive Styles
   ===================================================== */

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        padding: 60px 0;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .article-hero {
        padding: 40px 0 30px;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .article-hero .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .share-buttons {
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .share-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }

    .share-btn svg {
        width: 16px;
        height: 16px;
    }

    .article-content {
        padding: 24px;
        border-radius: 12px;
    }

    .article-navigation {
        flex-direction: column;
    }

    .article-cta {
        padding: 30px 20px;
    }

    .pagination-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination-prev,
    .pagination-next {
        padding: 10px 16px !important;
        font-size: 14px;
    }

    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .pagination-numbers a {
        padding: 10px 16px;
    }
}
