/* =========================
   BASE APP
========================= */

#fg-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    font-family: system-ui, sans-serif;
    background: #0f0f0f;
    color: #fff;
}

/* =========================
   GRID SYSTEM
========================= */

#fg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* =========================
   FILTER BAR
========================= */

.fg-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fg-filters select,
.fg-filters input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    outline: none;
}

.fg-filters select option {
    color: #111 !important;
    background-color: #fff !important;
}

/* =========================
   GAMECENTRIC CARD SYSTEM
========================= */

.fg-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    text-decoration: none;

    transform: translateZ(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border 0.35s ease;

    border: 1px solid rgba(255,255,255,0.06);
}

.fg-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 18px 50px rgba(0,0,0,0.65),
        0 0 0 1px rgba(255,255,255,0.08);
}

/* =========================
   IMAGE SECTION
========================= */

.fg-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.fg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fg-card:hover .fg-thumb img {
    transform: scale(1.12);
}

/* OVERLAY */
.fg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92),
        rgba(0,0,0,0.2),
        transparent
    );

    transition: all 0.35s ease;
}

.fg-card:hover .fg-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.98),
        rgba(0,0,0,0.35),
        transparent
    );
}

/* TAG */
.fg-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
}

/* =========================
   CONTENT SECTION
========================= */

.fg-content {
    padding: 12px 12px 14px;
    background: linear-gradient(to top, #0f0f0f, #111);
}

.fg-content h3 {
    font-size: 14px;
    margin: 0 0 6px 0;
    color: #fff;
    font-weight: 600;

    transition: transform 0.35s ease, color 0.35s ease;
}

.fg-card:hover .fg-content h3 {
    transform: translateY(-2px);
    color: #ffffff;
}

.fg-content p {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: opacity 0.3s ease;
}

.fg-card:hover .fg-content p {
    opacity: 0.9;
}

/* =========================
   CLICK FEEDBACK
========================= */

.fg-card:active {
    transform: translateY(-6px) scale(0.99);
}

/* =========================
   SKELETON LOADER
========================= */

.fg-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.fg-skeleton {
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}