/* ===== Football Bros - Games Arcade styles ===== */
/* Brand-consistent with style.css (green #4CAF50/#2E7D32, orange #FF5722) */

:root {
    --fb-green: #4CAF50;
    --fb-green-dark: #2E7D32;
    --fb-orange: #FF5722;
    --fb-navy: #2C3E50;
    --fb-ink: #444;
    --fb-card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --fb-card-shadow-hover: 0 14px 44px rgba(0,0,0,0.16);
}

.arcade-page {
    margin-top: 70px;
    background: #f7f9f7;
}

/* ---------- Hero ---------- */
.arcade-hero {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    padding: 70px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.arcade-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0 2px, transparent 2px),
                      radial-gradient(circle at 75% 60%, rgba(255,255,255,0.10) 0 2px, transparent 2px);
    background-size: 46px 46px, 60px 60px;
    opacity: 0.6;
}
.arcade-hero > * { position: relative; z-index: 1; }
.arcade-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.25);
}
.arcade-hero p {
    font-size: 1.2rem;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.95;
}
.arcade-hero .hero-stats {
    margin-top: 22px;
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* ---------- Container ---------- */
.arcade-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Category filter chips ---------- */
.cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 34px 20px 8px;
}
.cat-chip {
    border: 1.5px solid #d6e4d6;
    background: #fff;
    color: var(--fb-navy);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}
.cat-chip:hover { border-color: var(--fb-green); color: var(--fb-green-dark); }
.cat-chip.active {
    background: var(--fb-green);
    border-color: var(--fb-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(76,175,80,0.35);
}

/* ---------- Game grid ---------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 24px;
    padding: 34px 0 60px;
}
.game-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--fb-card-shadow);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eef2ee;
}
.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fb-card-shadow-hover);
}
.game-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.game-card:hover .game-thumb img { transform: scale(1.07); }
.game-thumb .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46,125,50,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.game-card:hover .play-overlay { opacity: 1; }
.play-overlay span {
    background: var(--fb-orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(255,87,34,0.5);
    transform: translateY(8px);
    transition: transform 0.25s ease;
}
.game-card:hover .play-overlay span { transform: translateY(0); }
.cat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(44,62,80,0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.game-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.game-body h3 {
    font-size: 1.06rem;
    color: var(--fb-navy);
    margin: 0 0 6px;
    line-height: 1.3;
}
.game-body p {
    font-size: 0.86rem;
    color: #777;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Section intro text ---------- */
.arcade-intro {
    padding: 46px 0 6px;
    max-width: 860px;
    margin: 0 auto;
}
.arcade-intro h2 {
    font-size: 1.9rem;
    color: var(--fb-navy);
    text-align: center;
    margin-bottom: 16px;
}
.arcade-intro p {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--fb-ink);
    margin-bottom: 18px;
}

/* ================= PLAY PAGE ================= */
.play-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 26px 20px 0;
}
.breadcrumb {
    font-size: 0.9rem;
    color: #789;
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--fb-green-dark); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.play-h1 {
    font-size: 2.1rem;
    color: var(--fb-navy);
    margin: 0 0 6px;
    line-height: 1.25;
}
.play-sub {
    color: #667;
    font-size: 1.05rem;
    margin: 0 0 20px;
}

/* Game console frame */
.console {
    background: linear-gradient(135deg, #263238, #1b2429);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 12px;
    color: #cfd8dc;
}
.console-bar .dots { display: flex; gap: 7px; }
.console-bar .dots i {
    width: 12px; height: 12px; border-radius: 50%; display: inline-block;
}
.dots i:nth-child(1){ background:#ff5f56; }
.dots i:nth-child(2){ background:#ffbd2e; }
.dots i:nth-child(3){ background:#27c93f; }
.console-bar .title { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.3px; }
.fs-btn {
    background: var(--fb-orange);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.fs-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.frame-holder {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 78vh;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.frame-holder.landscape { aspect-ratio: 16 / 9; }
.frame-holder.portrait { aspect-ratio: 3 / 4; max-width: 520px; margin: 0 auto; }
.frame-holder iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.play-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 22px 0 6px;
}
.btn-orange {
    background: var(--fb-orange);
    color: #fff;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(255,87,34,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,87,34,0.55); }
.btn-ghost {
    background: #fff;
    color: var(--fb-green-dark);
    border: 2px solid var(--fb-green);
    padding: 11px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}
.btn-ghost:hover { background: var(--fb-green); color: #fff; }

/* Play page SEO content */
.play-content {
    max-width: 840px;
    margin: 10px auto 0;
    padding: 30px 20px 10px;
}
.play-content h2 {
    font-size: 1.6rem;
    color: var(--fb-navy);
    margin: 36px 0 14px;
}
.play-content p, .play-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--fb-ink);
}
.play-content ul { padding-left: 22px; margin-bottom: 18px; }
.play-content li { margin-bottom: 8px; }
.play-content a { color: var(--fb-green-dark); font-weight: 600; }

.faq-item {
    border-bottom: 1px solid #e6ece6;
    padding: 16px 0;
}
.faq-item h3 {
    font-size: 1.12rem;
    color: var(--fb-navy);
    margin: 0 0 6px;
}
.faq-item p { margin: 0; }

.related-section {
    background: #f1f8e9;
    padding: 46px 20px 56px;
    margin-top: 40px;
}
.related-section h2 {
    text-align: center;
    color: var(--fb-navy);
    font-size: 1.7rem;
    margin-bottom: 26px;
}
.related-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.back-strip { text-align: center; padding: 30px 20px 50px; }
.back-strip a {
    display: inline-block;
    background: var(--fb-navy);
    color: #fff;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.back-strip a:hover { background: #34495e; }

@media (max-width: 768px) {
    .arcade-hero h1 { font-size: 2rem; }
    .play-h1 { font-size: 1.6rem; }
    .game-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .frame-holder { max-height: 70vh; }
}

/* ================= IN-GAME RECOMMENDATIONS (rail + strip) ================= */
.play-stage {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.console-col { flex: 1 1 auto; min-width: 0; }

/* right-side vertical rail */
.game-rail {
    flex: 0 0 232px;
    background: #fff;
    border: 1px solid #eef2ee;
    border-radius: 14px;
    box-shadow: var(--fb-card-shadow);
    padding: 14px 12px;
}
.rail-head, .strip-head {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--fb-green-dark);
    margin: 2px 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rail-card {
    display: block;
    text-decoration: none;
    padding: 6px;
    border-radius: 12px;
    transition: background 0.18s ease;
    margin-bottom: 8px;
}
.rail-card:hover { background: #f1f8e9; }
.rail-card img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    border-radius: 9px;
    display: block;
    background: #e8f5e9;
}
.rail-card .rc-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--fb-navy);
    line-height: 1.3;
    margin-top: 7px;
    padding: 0 2px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* horizontal strip below console */
.game-strip-wrap { margin: 22px 0 4px; }
.game-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.game-strip::-webkit-scrollbar { height: 8px; }
.game-strip::-webkit-scrollbar-thumb { background: #cde0cd; border-radius: 8px; }
.strip-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eef2ee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--fb-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.strip-card:hover { transform: translateY(-4px); box-shadow: var(--fb-card-shadow-hover); }
.strip-card img {
    width: 100%;
    height: 94px;
    object-fit: cover;
    display: block;
    background: #e8f5e9;
}
.strip-card .sc-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fb-navy);
    padding: 8px 10px 10px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 980px) {
    .play-stage { display: block; }
    .game-rail { display: none; }
}
