*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    color: #EEEEEE;
    min-height: 100vh;
}

/* ── Background ───────────────────────────────────── */

.bg {
    position: fixed;
    inset: -30px;
    background: url(assets/img/header-bg.jpeg) center / cover no-repeat;
    filter: blur(14px);
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 20, 0.72);
    z-index: -1;
}

/* ── Header ───────────────────────────────────────── */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.25);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar-sm {
    width: 42px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.header-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #EEEEEE;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.header-sub {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
}

.header-title {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Main ─────────────────────────────────────────── */

main {
    padding: 56px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 32px;
    font-weight: 400;
}

/* ── Grid ─────────────────────────────────────────── */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ── Card ─────────────────────────────────────────── */

.app-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: #EEEEEE;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.app-card:hover {
    border-color: rgba(248, 92, 55, 0.6);
    box-shadow: 0 0 24px rgba(248, 92, 55, 0.12);
    transform: translateY(-3px);
}

.app-preview {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.app-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.app-card:hover .app-preview img {
    transform: scale(1.03);
}

.app-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px;
    flex: 1;
}

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

.badge-wip {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    color: #EEEEEE;
    line-height: 1.2;
}

.app-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    flex: 1;
}

.app-link {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    margin-top: 6px;
    transition: color 0.2s;
}

.app-card:hover .app-link {
    color: #f85c37;
}

/* ── Empty state ──────────────────────────────────── */

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
}

.empty-state .empty-icon {
    font-size: 48px;
}

.empty-state p {
    font-size: 13px;
    letter-spacing: 0.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.25);
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 600px) {
    header        { padding: 16px 20px; }
    main          { padding: 36px 20px 60px; }
    .app-grid     { grid-template-columns: 1fr; }
    .header-title { display: none; }
}
