:root {
    --bg: #f6f6f6;
    --pill: #e6e6e6;
    --card: #ffffff;
    --border: rgba(255, 255, 255, 0.15);
    --text: #111111;
    --muted: #6b6b6b;

    --radius-pill: 999px;
    --radius-card: 18px;
}

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial;
    background: var(--bg);
    color: var(--text);
}

/* ---------- LAYOUT ---------- */
.shell {
    max-width: 2000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ---------- NAV PILL ---------- */
.topbar {
    margin-bottom: -10px;
    margin-top: -40px;

}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 18px;

    width: 100%;
    padding: 14px 20px;


}

/* Brand */


.brand {
    display: flex;
    align-items: center;      /* vertical alignment */
    /* space between text and icon */
}


.logo-icon {
    width: 200px;

    display: block;
    flex-shrink: 0;

    margin-left: -75px; /* ← key line */

    image-rendering: pixelated;
}

/* ---------- TABS ---------- */
.tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;

    background: transparent;
    border: none;
}

.tab {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.tab.active {
    background: #cfcfcf;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.site-name {
    font-size: 40px; /* ← change this */
    font-weight: 800;
    font-family: Orbitron;
    letter-spacing: 2px;
}

/* ---------- USER AREA ---------- */
.user {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;
    border: 1px solid var(--border);
    overflow: hidden;              /* 🔑 THIS is the key */

    display: flex;
    align-items: center;
    justify-content: center;

    background: #070707;
}

.avatar img {
    width: 130%;                   /* 🔑 force fill */
    object-fit: cover;

    image-rendering: pixelated;
}

.icon-btn {
    border: none;
    background: transparent;
    padding: 2px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn i {
    font-size: 18px;
    color: #F58220;
}

.icon-btn:hover i {
    transform: rotate(180deg);
    transition: transform 0.15s ease;
}
/* ---------- NEWS GRID ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ---------- CARD ---------- */
.card {
    background: var(--card);
    border: 1px solid gray;
    border-radius: var(--radius-card);
    padding: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ---------- CARD IMAGE ---------- */
.card-image {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;

    background: #eaeaea;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.save-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;

    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;

    color: #F58220;
}

.save-btn:hover {
    color: #000;
}
/* Pills inside cards */
.badge {
    font-size: 16px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-align: center;
    background: #f0f0f0;
    white-space: nowrap;

}

.title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.summary {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}

.meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--muted);
}

.card a {
    color: inherit;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* ---------- STATUS ---------- */
.status {
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- MODAL ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    width: min(560px, 100%);
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.muted {
    color: var(--muted);
}

.feed-list {
    display: grid;
    gap: 12px;
    margin: 16px 0 20px;
}

.feed-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 14px;
    margin-bottom: 5px;

}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-bottom: 10px;
}

.btn {
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--border);
    background: #f0f0f0;
    font-weight: 700;
    cursor: pointer;
}

.btn.primary {
    background: #d9d9d9;
}

.hidden {
    display: none;
}

.settings-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
}

.settings-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 2px solid var(--border);
    background: #f0f0f0;
    font-weight: 700;
    cursor: pointer;
}

.settings-tab.active {
    background: #d9d9d9;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

/* Appearance placeholder */
.appearance-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .nav-pill {
        flex-wrap: wrap;
    }

    .tabs {
        width: 100%;
        justify-content: center;
    }
    .site-name {
        font-size: 60px;
        text-align: center;
        justify-content: center;


    }
    /* ---------- CARD ---------- */
    .card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        padding: 10px;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .card-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    /* ---------- CARD IMAGE ---------- */
    .card-image {
        width: 100%;

        border-radius: 14px;
        overflow: hidden;

        background: #eaeaea;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Pills inside cards */
    .badge {
        font-size: 16px;
        padding: 4px 10px;
        border-radius: var(--radius-pill);
        text-align: center;
        background: rgba(134, 130, 131, 0);
        white-space: nowrap;

    }

    .title {
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
        margin: 0;
        text-align: center;
    }

    .summary {
        font-size: 14px;
        color: var(--muted);
        line-height: 1.4;
        margin: 0;
    }

    .meta {
        margin-top: auto;
        font-size: 12px;
        color: var(--muted);
    }

    .card a {
        color: inherit;
        text-decoration: none;
    }

    .card a:hover {
        text-decoration: underline;
    }
}