/* ── Native Games Forum CSS ──────────────────────────────────────────────── */

/* Hero */
.ng-hero {
    background: linear-gradient(135deg, #111110 0%, #1e1e18 50%, #2a2920 100%);
    border-bottom: 3px solid var(--accent);
    padding: 2.5rem 0 2rem;
}
.ng-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.2; }
.ng-hero .hero-sub { color: var(--muted); max-width: 560px; font-size: .97rem; line-height: 1.7; }
.ng-logo-chip {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: var(--accent);
    color: #1a1a16;
    padding: .2rem .7rem;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: .6rem;
}

/* Sub-nav */
.ng-subnav {
    background: #1e1e18;
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.ng-subnav .container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ng-subnav a {
    color: var(--muted);
    font-size: .85rem;
    padding: .3rem .7rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.ng-subnav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.ng-subnav a.active { color: var(--accent); }
.ng-subnav .ng-user-chip {
    margin-left: auto;
    display: flex; align-items: center; gap: .5rem;
}

/* Platform / status pills */
.ng-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.ng-pill {
    font-size: .78rem;
    padding: .25rem .75rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.ng-pill:hover { border-color: var(--accent); color: var(--accent); }
.ng-pill.active { background: var(--accent); color: #1a1a16; border-color: var(--accent); font-weight: 600; }
.ng-pill .count { font-size: .72rem; opacity: .7; margin-left: .25rem; }

/* Status badge */
.ng-status {
    font-size: .7rem;
    font-family: var(--font-mono);
    padding: .18rem .55rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}
.ng-status-playable { background: rgba(77,187,109,.15); color: #4dbb6d; border: 1px solid rgba(77,187,109,.3); }
.ng-status-beta     { background: rgba(108,182,224,.15); color: #6cb6e0; border: 1px solid rgba(108,182,224,.3); }
.ng-status-wip      { background: rgba(230,140,58,.15);  color: var(--accent); border: 1px solid rgba(230,140,58,.3); }
.ng-status-concept  { background: rgba(136,136,130,.15); color: #888882; border: 1px solid rgba(136,136,130,.3); }

/* Platform badge */
.ng-platform {
    font-size: .68rem;
    font-family: var(--font-mono);
    padding: .15rem .5rem;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    color: var(--muted);
    display: inline-block;
}

/* Project card */
.ng-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, transform .15s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ng-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* Project cover */
.ng-cover {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.ng-cover img { width: 100%; height: 100%; object-fit: cover; }
.ng-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.7));
}
.ng-cover-badges {
    position: absolute; bottom: .5rem; left: .7rem;
    display: flex; gap: .3rem;
}

/* Card body */
.ng-card-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.ng-card-title {
    font-weight: 700;
    font-size: .97rem;
    color: var(--text);
    text-decoration: none;
    line-height: 1.35;
    display: block;
    margin-bottom: .4rem;
}
.ng-card-title:hover { color: var(--accent); }
.ng-card-desc {
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ng-card-meta {
    margin-top: .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--muted);
}

/* Stars rating display */
.ng-stars-display { color: #f0c060; letter-spacing: .05em; font-size: .85rem; }
.ng-stars-empty { color: rgba(255,255,255,.15); }

/* Interactive star rating widget */
.ng-rate-widget { display: flex; gap: .15rem; cursor: pointer; }
.ng-rate-widget .star {
    font-size: 1.3rem;
    color: rgba(255,255,255,.2);
    transition: color .1s, transform .1s;
    cursor: pointer;
    line-height: 1;
}
.ng-rate-widget .star:hover,
.ng-rate-widget .star.active { color: #f0c060; transform: scale(1.15); }
.ng-rate-widget:hover .star { color: #f0c060; }

/* Comments */
.ng-comment {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
.ng-comment + .ng-comment { margin-top: .7rem; }

/* Avatar */
.ng-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    flex-shrink: 0;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* Search */
.ng-search {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .6rem 1rem .6rem 2.4rem;
    color: var(--text);
    font-size: .95rem;
    width: 100%;
    outline: none;
    transition: border-color .2s;
}
.ng-search:focus { border-color: var(--accent); }
.ng-search-wrap { position: relative; }
.ng-search-wrap .ng-search-icon {
    position: absolute; left: .9rem; top: 50%;
    transform: translateY(-50%);
    color: var(--muted); pointer-events: none;
}

/* Translate button */
.ng-translate-btn {
    font-family: var(--font-mono);
    font-size: .72rem;
    padding: .15rem .5rem;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
}
.ng-translate-btn:hover { border-color: #6cb6e0; color: #6cb6e0; }
.ng-translate-btn.active { background: rgba(108,182,224,.1); border-color: #6cb6e0; color: #6cb6e0; }

/* Platform gradient covers */
.ng-cover-PS3    { background: linear-gradient(135deg, #003087, #0070cc); }
.ng-cover-PS2    { background: linear-gradient(135deg, #00439c, #006dcc); }
.ng-cover-PS1    { background: linear-gradient(135deg, #1a1a4a, #3030aa); }
.ng-cover-N64    { background: linear-gradient(135deg, #c8102e, #e8412e); }
.ng-cover-GBA    { background: linear-gradient(135deg, #6a11cb, #9040ff); }
.ng-cover-Switch { background: linear-gradient(135deg, #e4000f, #ff4040); }
.ng-cover-Wii    { background: linear-gradient(135deg, #ddd, #999); }
.ng-cover-Xbox   { background: linear-gradient(135deg, #107c10, #2abb2a); }
.ng-cover-PC-98  { background: linear-gradient(135deg, #333, #555); }
.ng-cover-DOS    { background: linear-gradient(135deg, #1a3a1a, #2a6a2a); }
.ng-cover-Outro  { background: linear-gradient(135deg, #3a3028, #504540); }
/* default */
.ng-cover-default { background: linear-gradient(135deg, #2a2920, #403f38); }

/* Textarea for comments */
.ng-textarea {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-size: .93rem;
    padding: .7rem 1rem;
    resize: vertical;
    width: 100%;
    outline: none;
    font-family: inherit;
    min-height: 90px;
    transition: border-color .2s;
}
.ng-textarea:focus { border-color: var(--accent); }

/* Form fields */
.ng-input {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: .93rem;
    padding: .55rem .9rem;
    width: 100%;
    outline: none;
    transition: border-color .2s;
}
.ng-input:focus { border-color: var(--accent); }
.ng-select {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: .93rem;
    padding: .55rem .9rem;
    width: 100%;
    outline: none;
    cursor: pointer;
}
.ng-label {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
    display: block;
}
.ng-form-group { margin-bottom: 1.2rem; }

/* Section headers */
.ng-section-title {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
}

/* Stats row on project detail */
.ng-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
}
.ng-stat { text-align: center; }
.ng-stat-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}
.ng-stat-label { font-size: .72rem; color: var(--muted); font-family: var(--font-mono); }

/* Empty state */
.ng-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.ng-empty .ng-empty-icon { font-size: 3rem; margin-bottom: .5rem; }

/* Mine badge on project */
.ng-mine-badge {
    font-size: .65rem;
    padding: .1rem .45rem;
    border-radius: 20px;
    background: rgba(77,187,109,.12);
    color: #4dbb6d;
    border: 1px solid rgba(77,187,109,.3);
    font-family: var(--font-mono);
}

/* Pagination */
.ng-pagination { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.ng-pagination a {
    padding: .4rem .9rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .88rem;
    transition: all .15s;
}
.ng-pagination a:hover,
.ng-pagination a.active { border-color: var(--accent); color: var(--accent); }

@media (max-width: 768px) {
    .ng-hero { padding: 1.5rem 0 1.2rem; }
    .ng-hero h1 { font-size: 1.5rem; }
    .ng-subnav .container { gap: .5rem; }
}
