/* ============================================================
   style.css — All visual design for the portal
   Edit this file to change the look without touching index.html
   ============================================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f2ed;
    color: #1f2a24;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal {
    max-width: 900px;
    width: 100%;
}

/* ----- HEADER ----- */
.header {
    margin-bottom: 40px;
    text-align: center;
}

.header h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1f2a24;
}

.header h1 span {
    color: #6b7a6e;
    font-weight: 400;
    font-size: 18px;
    display: block;
    margin-top: 4px;
}

.header .sub {
    color: #8a8f8a;
    font-size: 15px;
    margin-top: 6px;
}

/* ----- GRID ----- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ----- CARDS ----- */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-left: 5px solid #d4cbc2;
    transition: 0.2s;
    text-decoration: none;
    color: #1f2a24;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card .icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card .desc {
    font-size: 14px;
    color: #6b7a6e;
    line-height: 1.5;
    flex: 1;
}

.card .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee8e2;
}

.badge {
    background: #eee8e2;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #4a4f4a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge.green {
    background: #dce8dc;
    color: #2d5a3d;
}

.badge.blue {
    background: #dce4e8;
    color: #2d4a5a;
}

.badge.orange {
    background: #f0e4d8;
    color: #8a5a3d;
}

.badge.purple {
    background: #e8dce8;
    color: #5a3d5a;
}

.card .link-arrow {
    font-size: 18px;
    color: #b8b0a8;
    transition: 0.2s;
    margin-top: 10px;
    align-self: flex-end;
}

.card:hover .link-arrow {
    color: #3d5a4b;
    transform: translateX(4px);
}

/* ----- FOOTER ----- */
.footer {
    text-align: center;
    font-size: 13px;
    color: #8a8f8a;
    border-top: 1px solid #e0dad4;
    padding-top: 24px;
    margin-top: 8px;
}

.footer .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    margin-right: 6px;
}

.footer a {
    color: #6b7a6e;
    text-decoration: none;
}

.footer a:hover {
    color: #1f2a24;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
    body {
        padding: 20px 14px;
    }
    .header h1 {
        font-size: 28px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}