/* ========== Plataformas Portal ========== */
.plat-page {
    padding-bottom: 48px;
}

/* Hero */
.plat-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 36px 32px;
    margin-bottom: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #101827 85%, #01a982 100%);
    flex-wrap: wrap;
}

.plat-hero-inner h1 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
}

.plat-hero-inner p {
    color: rgba(255,255,255,.72);
    margin: 0;
    font-size: 1.05rem;
}

.plat-hero-meta {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    white-space: nowrap;
    align-self: flex-end;
}

.plat-hero-meta strong {
    color: #5eead4;
    font-size: 1.5rem;
}

.plat-kicker {
    display: inline-block;
    color: #01a982;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Sections */
.plat-section {
    margin-bottom: 40px;
}

.plat-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--corp-ink, #0f172a);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #01a982;
    display: inline-block;
}

/* Grid */
.plat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* Cards */
.plat-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
    text-decoration: none !important;
    color: #111827 !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.plat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15,23,42,.12);
    border-color: rgba(1,169,130,.45);
}

/* Card image area */
.plat-card-img {
    position: relative;
    height: 200px;
    background: #e8edf5;
    overflow: hidden;
    flex-shrink: 0;
}

.plat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.plat-card:hover .plat-card-img img {
    transform: scale(1.04);
}

.plat-card-img--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5f2, #dbeafe);
}

.plat-card-img--fallback i {
    font-size: 2.5rem;
    color: #01a982;
    opacity: .6;
}

/* Badge */
.plat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #01a982;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .04em;
}

/* Card body */
.plat-card-body {
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
    flex: 1;
}

.plat-card-title {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.plat-card-desc {
    font-size: .88rem;
    color: #5b6472;
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.plat-card-url {
    color: #64748b;
    font-size: .76rem;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plat-card-action {
    font-size: .82rem;
    font-weight: 700;
    color: #01a982;
    margin-top: auto;
}

/* Empty state */
.plat-empty {
    text-align: center;
    padding: 60px 24px;
    color: #9ca3af;
}

.plat-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 14px;
    color: #d1d5db;
}

.plat-empty p {
    font-size: 1.1rem;
    margin-bottom: 18px;
}

/* Dark mode */
[data-theme="dark"] .plat-hero {
    background: linear-gradient(135deg, #020617 85%, #065f46 100%) !important;
}

[data-theme="dark"] .plat-card {
    background: #111827 !important;
    border-color: rgba(148,163,184,.18) !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .plat-card:hover {
    border-color: rgba(45,212,191,.5) !important;
}

[data-theme="dark"] .plat-card-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .plat-card-desc {
    color: #94a3b8 !important;
}

[data-theme="dark"] .plat-card-url {
    color: #94a3b8 !important;
}

[data-theme="dark"] .plat-card-img--fallback {
    background: linear-gradient(135deg, #0f2a20, #0f1e3a) !important;
}

[data-theme="dark"] .plat-section-title {
    color: #f8fafc !important;
}

/* Responsive */
@media (max-width: 768px) {
    .plat-hero {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .plat-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .plat-grid {
        grid-template-columns: 1fr;
    }
}
