/* --- NOVOS ESTILOS PARA O BLOG --- */

/* Hero Section Específica do Blog */
.blog-hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: radial-gradient(circle at 50% 0%, rgba(81, 64, 247, 0.15) 0%, rgba(18, 18, 18, 0) 60%);
    overflow: hidden;
}

/* Linhas decorativas de fundo (Double Diamond sutil) */
.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iZyIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMjIyIiBzdG9wLW9wYWNpdHk9IjAuMSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0idHJhbnNwYXJlbnQiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMCAwIEw1MCA1MCBMMTAwIDAiIHN0cm9rZT0idXJsKCNnKSIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.blog-title {
    font-size: clamp(64px, 8vw, 120px);
    color: #FAFAFA;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    z-index: 1;
    letter-spacing: -2px;
}

.blog-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
    font-weight: 300;
}

/* Featured Cards (Os 3 destaques) */
.featured-grid {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    z-index: 1;
    position: relative;
}

.featured-card {
    background: #161616;
    border: 1px solid #323232;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.featured-card:hover {
    transform: translateY(-10px);
    border-color: #5140F7;
    box-shadow: 0 20px 40px rgba(81, 64, 247, 0.15);
}

.featured-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #21BDEF, #5140F7);
    opacity: 0;
    transition: opacity 0.3s;
}
.featured-card:hover::before { opacity: 1; }

.feat-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.feat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-card:hover .feat-img { transform: scale(1.05); }

/* Badge flutuante no card */
.feat-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #21BDEF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feat-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    background: radial-gradient(circle at 50% 100%, #222 0%, #161616 100%);
}

.feat-title {
    font-size: 22px;
    font-weight: 500;
    color: #FFF;
    line-height: 1.3;
}

/* Toolbar Section (Console Style) */
.toolbar-container {
    position: sticky;
    top: 100px;
    z-index: 50;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 16px 24px;
    background: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .toolbar-container {
        position: relative;
        top: auto;
    }
}

/* Efeito quando fica sticky (opcional via JS, mas CSS puro ajuda) */
.toolbar-container:hover {
    border-color: rgba(33, 189, 239, 0.3);
    background: rgba(25, 25, 25, 0.9);
}

.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 10px;
}
.categories::-webkit-scrollbar { display: none; }

.cat-pill {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255,255,255,0.6);
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    font-family: "Ubuntu Sans";
    font-size: 15px;
    transition: 0.3s;
}

.cat-pill:hover {
    background: rgba(255,255,255,0.05);
    color: #FFF;
}

.cat-pill.active {
    background: rgba(255,255,255,0.1);
    border-color: #21BDEF;
    color: #FFF;
    box-shadow: 0 0 15px rgba(33, 189, 239, 0.1);
}

.search-group {
    position: relative;
    width: 240px;
}
.search-group .pill-input {
    height: 40px;
    font-size: 14px;
    padding-left: 40px;
    padding-right: 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: #FFF;
    width: 100%;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}

/* Section Label */
.section-label-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-bottom: 16px;
}

.section-label {
    color: #21BDEF;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #21BDEF;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(33, 189, 239, 0.6);
}

/* Main Blog Grid */
.main-grid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 120px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: radial-gradient(100% 100% at 50% 0%, #2A2A2A 2.26%, #151515 69.94%);
    border: 1px solid #393939;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: inset 0 4px 4px 1px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Efeito de Glow na borda ao Hover */
.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(33, 189, 239, 0.4);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6), 
        inset 0 0 20px rgba(33, 189, 239, 0.02);
}

.post-thumb {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    opacity: 0.9;
    transition: 0.4s;
}
.post-card:hover .post-thumb { opacity: 1; }

.post-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.post-tag {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5140F7;
    background: rgba(81, 64, 247, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.post-date {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

.post-heading {
    font-size: 26px;
    color: #FAFAFA;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.2s;
}
.post-card:hover .post-heading { color: #FFF; }

.post-excerpt {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.post-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: #333;
}
.author-name { font-size: 14px; color: #AAA; }

.read-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: #FFF;
    transition: 0.3s;
}
.post-card:hover .read-btn {
    background: #21BDEF;
    color: #000;
    transform: rotate(-45deg);
}

/* Newsletter Section (Baseado no console-hero) */
.newsletter-cta {
    width: 90%;
    max-width: 1043px;
    margin: 0 auto 120px;
    padding: 60px;
    /* background: radial-gradient(100% 100% at 50% 0%, #2A2A2A 2.26%, rgba(21, 21, 21, 0) 69.94%); */
    /* border: 1px solid #393939; */
    /* border-radius: 20px; */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de borda brilhante sutil */
.newsletter-cta::before {
    content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
    background: linear-gradient(180deg, #393939 0%, rgba(57, 57, 57, 0) 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; pointer-events: none;
}

.newsletter-cta h2 {
    font-size: 40px; margin-bottom: 16px; color: #FFF;
}
.newsletter-cta p {
    font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 40px;
}

.form-row {
    display: flex; gap: 16px; justify-content: center; max-width: 500px; margin: 0 auto;
}
@media(max-width: 600px) { .form-row { flex-direction: column; } }
