/* 
 * Home Portal CSS (G1 Style)
 * Baseado em Grid e Flexbox
 */

:root {
    --portal-primary: var(--primary-color, #c4170c);
    /* Fallback default (G1 Red) */
    --portal-text: #333;
    --portal-meta: #666;
    --portal-bg: #fff;
    --portal-gap: 20px;
    --portal-surface: rgba(196, 23, 12, 0.1);
    --portal-radius: 12px;
}

.portal-wrapper {
    background: var(--portal-surface);
    background: color-mix(in srgb, var(--portal-primary) 10%, transparent);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px 28px;
    border-radius: 0;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
}

.portal-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* --- HERO SECTION --- */
.portal-hero {
    margin-bottom: 40px;
}

.portal-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 para Main, 1/3 para Side */
    gap: var(--portal-gap);
}

@media (max-width: 768px) {
    .portal-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Main (Text Only) */
.portal-card-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    padding: 24px;
    height: 100%;
    border: 1px solid #eee;
    border-radius: var(--portal-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.portal-hero-header {
    margin-bottom: 15px;
}

.portal-hero-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--portal-text);
    text-transform: uppercase;
    margin: 0;
}

.portal-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px;
    color: var(--portal-primary);
}

.portal-hero-title a {
    color: inherit;
    text-decoration: none;
}

.portal-hero-title a:hover {
    text-decoration: underline;
}

.portal-hero-bullets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-hero-bullets li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
}

.portal-hero-bullets li::before {
    content: "•";
    color: var(--portal-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.portal-hero-bullets a {
    color: inherit;
    text-decoration: none;
}

.portal-hero-bullets a:hover {
    color: var(--portal-primary);
    text-decoration: underline;
}

/* Hero Side (Image Overlay) */
.portal-hero-side {
    display: flex;
    flex-direction: column;
    gap: var(--portal-gap);
}

.portal-card-side {
    position: relative;
    overflow: hidden;
    border-radius: var(--portal-radius);
    flex: 1;
    min-height: 200px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.portal-side-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.portal-side-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portal-card-side:hover img {
    transform: scale(1.05);
}

.portal-side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portal-cat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.9;
}

.portal-side-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.portal-side-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-side-bullets li {
    font-size: 0.9rem;
    color: #ddd;
    position: relative;
    padding-left: 10px;
}

.portal-side-bullets li::before {
    content: "•";
    color: #fff;
    position: absolute;
    left: 0;
}

/* --- MAIN CONTENT --- */
.portal-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

@media (max-width: 768px) {
    .portal-main-grid {
        grid-template-columns: 1fr;
    }
}

.portal-section-title {
    font-size: 1.5rem;
    color: var(--portal-text);
    border-bottom: 2px solid var(--portal-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Feed List */
.portal-feed-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.portal-feed-item {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.portal-feed-item:last-child {
    border-bottom: none;
}

.portal-feed-thumb {
    flex: 0 0 220px;
}

@media (max-width: 480px) {
    .portal-feed-item {
        flex-direction: column;
    }

    .portal-feed-thumb {
        flex: 0 0 auto;
        width: 100%;
    }
}

.portal-feed-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.portal-feed-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-cat-tiny {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--portal-primary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.portal-feed-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}

.portal-feed-title a {
    color: var(--portal-text);
    text-decoration: none;
}

.portal-feed-title a:hover {
    color: var(--portal-primary);
}

.portal-feed-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.4;
}

.portal-time {
    font-size: 0.8rem;
    color: #999;
}

/* Sidebar */
.portal-sidebar-col .widget {
    margin-bottom: 30px;
}

.portal-sidebar-col .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    border-left: 4px solid var(--portal-primary);
    padding-left: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.portal-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: pop-counter;
}

.portal-popular-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
    margin-bottom: 15px;
}

.portal-popular-list li::before {
    counter-increment: pop-counter;
    content: counter(pop-counter);
    position: static;
    font-size: 1rem;
    font-weight: 800;
    color: #b0b0b0;
    line-height: 1.2;
    min-width: 20px;
    text-align: right;
    margin-top: 2px;
}

.portal-pop-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--portal-text);
    line-height: 1.3;
    display: block;
}

.portal-popular-list li a {
    text-decoration: none;
}

.portal-popular-list li a:hover .portal-pop-title {
    color: var(--portal-primary);
}

/* Destaques (Above Mais Lidas) */
.portal-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-highlight-list li a {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
}

.portal-highlight-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-highlight-title {
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--portal-text);
    line-height: 1.3;
}

.portal-highlight-list li a:hover .portal-highlight-title {
    color: var(--portal-primary);
}

.portal-highlight-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
}

.portal-highlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
