/* CVHR Games — Dama Masters'ın "Çini" temasıyla: lacivert, açık turkuaz, mercan vurgu. Dış kaynak yok. */

@font-face { font-family: "Baloo 2"; src: url("../fonts/Baloo2-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/Baloo2-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
    --navy: #123F7A;
    --navy-dark: #0A2547;
    --navy-soft: #3E5F86;
    --tile: #E3F1F4;
    --tile-dark: #A9D3DC;
    --teal: #1F9BB0;
    --coral: #D8513E;
    --coral-dark: #B8402A;
    --bg: #F7FBFC;
    --surface: #FFFFFF;
    --text: #14304F;
    --muted: #56708E;
    --border: #DCE9EE;
    --radius: 20px;
    --shadow: 0 2px 4px rgba(10, 37, 71, .05), 0 12px 32px rgba(10, 37, 71, .08);
    --display: "Baloo 2", system-ui, sans-serif;
    --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: 1.6rem; }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.icon { flex: none; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.section { padding: 56px 0 8px; }
.section-title { font-size: 1.9rem; margin-bottom: 22px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* --- Üst çubuk --- */
.topbar {
    position: sticky; top: 0; z-index: 5;
    background: rgba(247, 251, 252, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: .01em; }
.brand-name span { color: var(--coral); }
.topnav { display: flex; gap: 4px; background: var(--tile); padding: 4px; border-radius: 999px; }
.lang { font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--navy-soft); }
.lang:hover { color: var(--navy); background: rgba(255, 255, 255, .6); }
.lang.current { background: var(--navy); color: #fff; }

/* --- Kahraman alan --- */
.hero {
    position: relative; overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(169, 211, 220, .28), transparent 42%),
        radial-gradient(circle at 92% 100%, rgba(216, 81, 62, .28), transparent 40%),
        linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
}
/* Çini motifi */
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3e%3cg fill='none' stroke='white' stroke-width='1.6'%3e%3cpath d='M28 3 53 28 28 53 3 28z'/%3e%3ccircle cx='28' cy='28' r='9'/%3e%3c/g%3e%3c/svg%3e");
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero h1, .hero .hero-tagline { color: #fff; }
.hero .lead { color: #D8E7F0; font-size: 1.15rem; max-width: 36em; }
.eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--tile-dark); margin-bottom: 10px; }
.hero-art img { width: 100%; max-width: 460px; display: block; margin-left: auto; border-radius: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); transform: rotate(-4deg); }
.hero-tagline { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin: 0; opacity: .92; }
.game-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-title h1 { margin: 0; }
.game-icon { border-radius: 22%; box-shadow: 0 8px 22px rgba(10, 37, 71, .25); }
.game-icon-lg { width: 88px; height: 88px; }

/* --- Mağaza düğmeleri --- */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px 10px 14px; border-radius: 14px;
    background: #000; color: #fff; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .25);
}
.store span { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.store small { font-family: var(--body); font-weight: 400; font-size: .72rem; opacity: .8; }
.store:hover { color: #fff; background: #111; }
.store-soon { background: rgba(255, 255, 255, .1); }

/* --- Oyun kartları --- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.game-card {
    display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center;
    padding: 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(10, 37, 71, .08), 0 22px 44px rgba(10, 37, 71, .12); color: inherit; }
.game-card-body { display: flex; flex-direction: column; gap: 2px; }
.game-card-title { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--navy); line-height: 1.1; }
.game-card-tagline { color: var(--muted); }
.game-card-go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--coral-dark); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--tile); color: var(--navy); }
.badge-soon { background: #FDEBE7; color: var(--coral-dark); }

/* --- Özellikler --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tile); color: var(--navy); }
.feature:nth-child(3n+2) .feature-icon { background: #FDEBE7; color: var(--coral-dark); }
.feature:nth-child(3n) .feature-icon { background: #DFF2F5; color: var(--teal); }

/* --- Bağlantı kartları --- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.link-card {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 700; color: var(--navy);
}
.link-card:hover { border-color: var(--tile-dark); background: #FBFEFF; }
.link-card .icon { color: var(--teal); }

/* --- İletişim kartı ve düğmeler --- */
.contact-card {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
    padding: 26px 28px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--tile) 0%, #F1F8FA 100%);
    border: 1px solid var(--border);
    margin-bottom: 28px;
}
.contact-card h2 { margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--muted); max-width: 34em; }
.button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 14px;
    background: var(--navy); color: #fff; text-decoration: none; font-weight: 700;
    box-shadow: 0 6px 16px rgba(18, 63, 122, .25);
}
.button:hover { background: var(--navy-dark); color: #fff; }

/* --- Alt sayfalar --- */
.page-head { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 40px 0 36px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 8px 0 4px; }
.page-head .muted { color: #B9CDE0; margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--tile-dark); text-decoration: none; font-weight: 700; font-size: .95rem; }
.back:hover { color: #fff; }
.prose { padding: 36px 0 24px; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose .lead { font-size: 1.12rem; color: var(--text); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 12px 16px 12px 58px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.see-also { margin-top: 2em; color: var(--muted); }
.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { margin-top: 18px; }

/* --- Alt bilgi --- */
.footer { margin-top: 72px; background: var(--navy-dark); color: #C9D8E6; }
.footer a { color: #E3F1F4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .muted { color: #9DB2C8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer { margin-bottom: 10px; }
.footer-title { font-size: 1.15rem; margin-bottom: 10px; }
.footer-title a { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mail { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 26px; font-size: .9rem; }

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 32px; }
    .hero-art img { margin: 0 auto; max-width: 340px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
