/* Kolay Oyun ana sayfası — KolayMobil ailesi tasarım dili. */

body.home {
    --home-bg: #f6f7f3;
    --home-ink: #132c4f;
    --home-muted: #617086;
    --home-blue: #2f6fed;
    --home-blue-dark: #173c78;
    --home-green: #15b887;
    --home-card: #ffffff;
    --home-border: #dfe6ef;
    align-items: stretch;
    justify-content: flex-start;
    padding-bottom: 0;
    background:
        radial-gradient(circle at 8% 10%, rgba(47, 111, 237, .10), transparent 25rem),
        radial-gradient(circle at 92% 24%, rgba(21, 184, 135, .09), transparent 22rem),
        var(--home-bg);
    color: var(--home-ink);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    position: relative;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--home-ink);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--home-blue), #6c5ce7);
    box-shadow: 0 10px 22px rgba(47, 111, 237, .25);
    font-size: 1.15rem;
}

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-link { color: #45546a; text-decoration: none; font-weight: 700; font-size: .92rem; }
.nav-link:hover { color: var(--home-blue); }

.search-bar { width: min(280px, 28vw); }
.search-bar input {
    width: 100%;
    padding: .72rem 1rem .72rem 2.55rem;
    border-radius: 999px;
    border: 1px solid var(--home-border);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23617086' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center;
    color: var(--home-ink);
    font: inherit;
    outline: none;
    box-shadow: 0 5px 18px rgba(19, 44, 79, .04);
}
.search-bar input::placeholder { color: #8995a6; }
.search-bar input:focus { border-color: var(--home-blue); box-shadow: 0 0 0 4px rgba(47, 111, 237, .12); }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; flex: 1; }

.hero {
    min-height: 510px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    padding: clamp(55px, 8vw, 100px) clamp(28px, 6vw, 76px);
    margin: 6px 0 42px;
    border-radius: 36px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(16, 43, 80, .98), rgba(17, 58, 108, .94)),
        var(--home-blue-dark);
    box-shadow: 0 28px 70px rgba(19, 44, 79, .16);
    position: relative;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -180px; top: -240px; }
.hero::after { width: 380px; height: 380px; left: 40%; bottom: -310px; }
.hero-copy, .hero-console { position: relative; z-index: 1; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 19px;
    color: #8ee8ce;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #25d6a4; box-shadow: 0 0 0 5px rgba(37,214,164,.12); }

.hero h1 { margin: 0; max-width: 650px; font-size: clamp(2.7rem, 5.8vw, 5rem); line-height: .98; letter-spacing: -.055em; color: #fff; }
.hero h1 span { color: #66a2ff; }
.hero-copy > p:not(.eyebrow) { max-width: 600px; margin: 25px 0 0; color: #c9d7e9; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.hero-btn.primary { background: var(--home-blue); color: #fff; box-shadow: 0 12px 28px rgba(47,111,237,.35); }
.hero-btn.secondary { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; }

.hero-console {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
    transform: rotate(1.5deg);
}
.console-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; color: #dce8f7; font-weight: 750; }
.console-live { color: #8ee8ce; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.console-game { aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; background: rgba(7, 25, 49, .7); border: 1px solid rgba(255,255,255,.1); font-size: clamp(2rem, 4vw, 3rem); text-decoration: none; transition: transform .2s, background .2s; }
.console-game:hover { transform: translateY(-4px) rotate(-1.5deg); background: rgba(47,111,237,.35); }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 70px; overflow: hidden; border: 1px solid var(--home-border); border-radius: 22px; background: var(--home-border); }
.trust-item { padding: 22px; background: rgba(255,255,255,.82); }
.trust-item strong { display: block; margin-bottom: 4px; color: var(--home-ink); }
.trust-item span { color: var(--home-muted); font-size: .88rem; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.section-kicker { margin: 0 0 8px; color: var(--home-blue); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.045em; color: var(--home-ink); }
.section-head p { max-width: 420px; margin: 0; color: var(--home-muted); line-height: 1.6; }

.recent { margin-bottom: 40px; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--home-muted); margin: 0 0 12px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 10px; }
.recent-item { display: flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border-radius: 999px; border: 1px solid var(--home-border); background: #fff; color: var(--home-ink); text-decoration: none; font-weight: 700; box-shadow: 0 5px 15px rgba(19,44,79,.04); }
.recent-item:hover { border-color: var(--home-blue); }
.recent-icon { font-size: 1.25rem; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.filter-btn { background: #fff; border: 1px solid var(--home-border); color: #526078; padding: .62rem 1.25rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 750; transition: .2s; }
.filter-btn:hover { border-color: var(--home-blue); color: var(--home-blue); }
.filter-btn.is-active { background: var(--home-ink); border-color: var(--home-ink); color: #fff; box-shadow: 0 8px 20px rgba(19,44,79,.15); }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card { display: flex; flex-direction: column; min-height: 330px; overflow: hidden; border: 1px solid var(--home-border); border-radius: 24px; background: var(--home-card); color: inherit; text-decoration: none; box-shadow: 0 10px 30px rgba(19,44,79,.055); transition: transform .25s, box-shadow .25s, border-color .25s; }
.game-card[hidden] { display: none; }
.game-card:hover { transform: translateY(-6px); border-color: #a9c3f5; box-shadow: 0 20px 45px rgba(19,44,79,.12); }
.game-img { min-height: 145px; display: grid; place-items: center; font-size: 3.5rem; background: linear-gradient(135deg, #eef4ff, #edf9f5); border-bottom: 1px solid #e9eef5; }
.game-card:nth-child(3n+2) .game-img { background: linear-gradient(135deg, #fff6e9, #f7efff); }
.game-card:nth-child(3n) .game-img { background: linear-gradient(135deg, #ebf9f4, #eef4ff); }
.game-info { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.game-title { display: block; margin-bottom: 8px; color: var(--home-ink); font-size: 1.25rem; font-weight: 850; letter-spacing: -.02em; }
.game-desc { display: block; color: var(--home-muted); font-size: .93rem; line-height: 1.58; margin-bottom: 18px; }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.game-category { color: var(--home-blue); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.game-best { color: #087a59; font-size: .78rem; font-weight: 750; }
.game-best:empty { display: none; }
.empty-state { text-align: center; color: var(--home-muted); margin: 40px 0; }

.about { margin: 80px 0; padding: clamp(30px, 5vw, 58px); border-radius: 30px; color: #d5e1f0; line-height: 1.75; background: var(--home-ink); }
.about h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 14px; letter-spacing: -.03em; }
.about p { max-width: 820px; margin: 0 0 10px; }

.family { margin-bottom: 85px; }
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.family-card { display: flex; flex-direction: column; min-height: 220px; padding: 28px; border: 1px solid var(--home-border); border-radius: 24px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 10px 30px rgba(19,44,79,.05); transition: transform .2s, border-color .2s; }
.family-card:hover { transform: translateY(-4px); border-color: #a9c3f5; }
.family-badge { align-self: flex-start; padding: 6px 10px; border-radius: 999px; color: var(--home-blue); background: #eef4ff; font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.family-card h3 { margin: 22px 0 9px; color: var(--home-ink); font-size: 1.32rem; }
.family-card p { margin: 0; color: var(--home-muted); line-height: 1.55; }
.family-arrow { margin-top: auto; padding-top: 20px; color: var(--home-blue); font-weight: 800; }

footer { padding: 28px 20px; border-top: 1px solid var(--home-border); color: var(--home-muted); background: rgba(255,255,255,.7); }
.footer-inner { width: min(1180px, 100%); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--home-muted); text-decoration: none; font-weight: 650; }
.footer-links a:hover { color: var(--home-blue); }

@media (max-width: 920px) {
    .nav-link { display: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-console { width: min(520px, 100%); }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .navbar, .container { width: min(100% - 24px, 1180px); }
    .navbar { flex-wrap: wrap; gap: 12px; }
    .nav-actions { flex: 1; justify-content: flex-end; }
    .search-bar { width: 100%; order: 3; }
    .hero { margin-top: 0; padding: 42px 22px; border-radius: 26px; }
    .hero h1 { font-size: clamp(2.55rem, 14vw, 3.5rem); }
    .hero-console { padding: 15px; gap: 8px; }
    .console-game { border-radius: 13px; font-size: 2rem; }
    .trust-strip { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .game-grid { grid-template-columns: 1fr; }
    .game-card { min-height: 290px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
