/**
 * Gorilla Insights Feed — Styles
 * Brand: Gorilla Marketing
 * Font: Poppins
 */

:root {
    --bg-primary: #0D0D0D;
    --bg-card: #151517;
    --bg-card-hover: #1A1A1D;
    --gorilla-green: #136800;
    --gorilla-green-light: #1A8A00;
    --gorilla-yellow: #F5C614;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --text-muted: #666666;
    --border: #333333;
    --border-light: #2A2A2A;
    --radius: 45px;
}


/* ── WRAPPER ── */

.gorilla-insights-wrap {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* ── CATEGORY FILTERS ── */

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 40px 24px 48px;
    max-width: 800px;
    margin: 0 auto;
}

.filter-link {
    display: inline-block;
    background: var(--gorilla-green) !important;
    border: 1px solid var(--gorilla-green) !important;
    color: #FFFFFF !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none !important;
}

.filter-link:hover {
    background: var(--gorilla-yellow) !important;
    border-color: var(--gorilla-yellow) !important;
    color: #0D0D0D !important;
}

.filter-link.active {
    background: var(--gorilla-yellow) !important;
    border-color: var(--gorilla-yellow) !important;
    color: #0D0D0D !important;
}


/* ── FEATURED POST ── */

.featured-post {
    max-width: 1120px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    border-color: var(--gorilla-green);
    transform: translateY(-3px);
}

.featured-card .thumb {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.featured-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .thumb img {
    transform: scale(1.04);
}

.featured-card .thumb .category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.featured-card .content {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gorilla-yellow);
    margin-bottom: 20px;
}

.featured-label svg {
    width: 14px;
    height: 14px;
}

.featured-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.featured-card .excerpt {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.featured-card .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gorilla-green-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 8px;
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    gap: 14px;
}

.read-more-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

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


/* ── CATEGORY BADGES ── */

.category-badge {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
}

.badge-ai        { background: rgba(139, 240, 112, 0.12); color: #8BF070; border: 1px solid rgba(139, 240, 112, 0.25); }
.badge-gorilla   { background: rgba(245, 198, 20, 0.12); color: #F5C614; border: 1px solid rgba(245, 198, 20, 0.25); }
.badge-local     { background: rgba(74, 222, 128, 0.12); color: #4ADE80; border: 1px solid rgba(74, 222, 128, 0.25); }
.badge-ppc       { background: rgba(212, 225, 87, 0.12); color: #D4E157; border: 1px solid rgba(212, 225, 87, 0.25); }
.badge-seo       { background: rgba(26, 138, 0, 0.2); color: #1A8A00; border: 1px solid rgba(26, 138, 0, 0.35); }


/* ── POST GRID ── */

.posts-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.post-count {
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    transition: opacity 0.3s ease;
}

.posts-grid.loading {
    opacity: 0.4;
    pointer-events: none;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--gorilla-green);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card .thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .thumb img {
    transform: scale(1.06);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #1A1A1A, #222);
}

.post-card .thumb .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.post-card .thumb .read-time {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
}

.post-card .card-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    color: var(--gorilla-green-light);
}

.post-card .excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.post-card .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-card .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gorilla-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.post-card .author-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.post-card .date {
    font-size: 12px;
    color: var(--text-muted) !important;
    font-family: 'Poppins', sans-serif;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    padding: 60px 0;
}


/* ── LOAD MORE ── */

.load-more-wrap {
    text-align: center;
    padding: 40px 0 0;
}

.load-more-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 48px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.load-more-btn:hover {
    border-color: var(--gorilla-green);
    background: rgba(19, 104, 0, 0.08);
    color: var(--gorilla-green-light);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ── RESPONSIVE ── */

@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-card .thumb {
        min-height: 240px;
    }

    .featured-card .content {
        padding: 32px 28px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .filter-bar {
        gap: 8px;
        padding: 20px 16px 36px;
    }

    .filter-link {
        padding: 8px 16px;
        font-size: 13px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card .card-body {
        padding: 22px 22px 26px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .featured-card h2 {
        font-size: 22px;
    }
}


/* ── SCROLLBAR ── */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gorilla-green); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gorilla-green-light); }


/* ── BREADCRUMB ── */

.gorilla-breadcrumb {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.gorilla-breadcrumb a {
    color: var(--gorilla-yellow) !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.gorilla-breadcrumb a:hover {
    opacity: 0.75;
}

.gorilla-bc-sep {
    color: var(--text-muted) !important;
    margin: 0 4px;
}

.gorilla-bc-current {
    color: #136800 !important;
}


/* ── ARCHIVE TITLE ── */

.gorilla-archive-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(32px, 5vw, 48px) !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
    margin: 0 !important;
    padding: 0 !important;
}
