/* Ana sayfa (Views/Home/Index). Risk renkleri (--h-low / --h-mid / --h-high) sunucudan gelir: sayfada satır içi kalır. */

.home-v2 {
    --h-ink: #0f172a;
    --h-muted: #64748b;
    --h-line: #e2e8f0;
    --h-surface: #ffffff;
    --h-green-900: #064e3b;
    --h-green-700: #047857;
    --h-green-500: #10b981;
    --h-green-50: #ecfdf5;
    --h-radius: 20px;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--h-ink);
    padding: 28px 0 8px;
}

/* ---------- HERO ---------- */
.home-v2 .hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 56px 56px 84px;
    background:
        radial-gradient(900px 420px at 110% -10%, rgba(16,185,129,.35), transparent 60%),
        radial-gradient(600px 380px at -10% 120%, rgba(234,179,8,.18), transparent 60%),
        linear-gradient(135deg, #052e22 0%, #064e3b 45%, #065f46 100%);
    color: #ecfdf5;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 30px 60px -30px rgba(6,78,59,.55);
}

.home-v2 .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    pointer-events: none;
}

.home-v2 .hero > * { position: relative; }

.home-v2 .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    font-size: .85rem;
    font-weight: 500;
    color: #d1fae5;
    backdrop-filter: blur(6px);
}

.home-v2 .badge-pill .dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--h-green-500);
    color: #fff;
    font-size: .75rem;
}

.home-v2 .hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.home-v2 .hero h1 .accent {
    background: linear-gradient(90deg, #6ee7b7, #fde047);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-v2 .hero p.lead-text {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #a7f3d0;
    max-width: 560px;
    margin: 0 0 28px;
}

.home-v2 .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.home-v2 .coverage .label {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    font-size: .72rem;
    opacity: .8;
    margin-right: 4px;
}

.home-v2 .coverage .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #ecfdf5;
    font-weight: 500;
}

.home-v2 .coverage .fi { border-radius: 3px; }


/* Hero quick links (all 5 modules) */
.home-v2 .hero-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-bottom: 28px;
}

.home-v2 .hl {
    --tone: #10b981;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    text-decoration: none;
    color: #ecfdf5;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.home-v2 .hl:hover {
    background: #fff;
    border-color: #fff;
    color: var(--h-ink);
    transform: translateY(-2px);
}

.home-v2 .hl .ic {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: var(--tone);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 6px 14px -6px var(--tone);
}

.home-v2 .hl .tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.home-v2 .hl .tx b { font-size: .98rem; font-weight: 600; }
.home-v2 .hl .tx small { font-size: .8rem; color: #a7f3d0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-v2 .hl:hover .tx small { color: var(--h-muted); }
.home-v2 .hl .go { margin-left: auto; opacity: .55; transition: transform .2s ease, opacity .2s ease; }
.home-v2 .hl:hover .go { opacity: 1; color: var(--tone); transform: translateX(3px); }

.home-v2 .hl.t-heat  { --tone: #e11d48; }
.home-v2 .hl.t-risk  { --tone: #ea580c; }
.home-v2 .hl.t-station { --tone: #7c3aed; }
.home-v2 .hl.t-wx    { --tone: #2563eb; }
.home-v2 .hl.t-chart { --tone: #059669; }

/* Globe */
.home-v2 .globe {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
    animation: hv-float 8s ease-in-out infinite;
}


/* Hero visual */
.home-v2 .hero-visual {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
}

.home-v2 .float-card {
    position: absolute;
    background: rgba(255,255,255,.96);
    color: var(--h-ink);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.45);
    font-size: .82rem;
    font-weight: 600;
    animation: hv-float 6s ease-in-out infinite;
}

.home-v2 .float-card.legend { left: -6px; bottom: 6px; }
.home-v2 .float-card.legend ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.home-v2 .float-card.legend li { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #334155; }
.home-v2 .float-card.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.home-v2 .float-card .ttl { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--h-muted); }

.home-v2 .float-card.langs { right: 0; top: 10px; display: flex; align-items: center; gap: 6px; animation-delay: -3s; }
.home-v2 .float-card.langs .fi { border-radius: 3px; }

@keyframes hv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- STATS ---------- */
.home-v2 .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: -34px 40px 0;
    position: relative;
    z-index: 2;
}

.home-v2 .stat {
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 30px -18px rgba(15,23,42,.25);
}

.home-v2 .stat .ic {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.2rem;
    background: var(--h-green-50);
    color: var(--h-green-700);
    flex-shrink: 0;
}

.home-v2 .stat b { display: block; font-size: 1.45rem; line-height: 1.1; font-weight: 700; }
.home-v2 .stat span { font-size: .85rem; color: var(--h-muted); }

/* ---------- MODULES ---------- */
.home-v2 .section-head {
    margin: 64px 0 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.home-v2 .section-head .eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--h-green-700);
}

.home-v2 .section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.home-v2 .section-head p { margin: 0; color: var(--h-muted); max-width: 420px; }

.home-v2 .modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-v2 .module {
    --tint: #ecfdf5;
    --tone: #047857;
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border-radius: var(--h-radius);
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    text-decoration: none;
    color: var(--h-ink);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-v2 .module:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tone) 35%, var(--h-line));
    box-shadow: 0 24px 44px -24px color-mix(in srgb, var(--tone) 55%, transparent);
    color: var(--h-ink);
}

.home-v2 .module .thumb {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: var(--tint);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.home-v2 .module .thumb img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .4s ease;
}

.home-v2 .module:hover .thumb img { transform: scale(1.06); }

/* Görseli olmayan modül (İstasyonlar): zemin üzerinde büyük simge */
.home-v2 .module .thumb > i { font-size: 4rem; color: var(--tone); transition: transform .4s ease; }
.home-v2 .module:hover .thumb > i { transform: scale(1.06); }

/* İki sütunlu düzende tek kalan son öğe tam genişlik (5 modül) */
.home-v2 .hero-links > .hl:last-child:nth-child(odd),
.home-v2 .modules > .module:last-child:nth-child(odd) { grid-column: 1 / -1; }

.home-v2 .module .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    width: 34px; height: 34px;
    font-size: 1rem;
    color: var(--tone);
    background: var(--tint);
    border-radius: 10px;
}

.home-v2 .module .mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.home-v2 .module .mhead .tag { flex-shrink: 0; }

.home-v2 .module h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.home-v2 .module p { margin: 0 0 14px; color: var(--h-muted); font-size: .93rem; line-height: 1.55; }

.home-v2 .module .go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--tone);
}

.home-v2 .module .go i { transition: transform .25s ease; }
.home-v2 .module:hover .go i { transform: translateX(4px); }

.home-v2 .m-heat  { --tint: #fff1f2; --tone: #e11d48; }
.home-v2 .m-risk  { --tint: #fff7ed; --tone: #ea580c; }
.home-v2 .m-station { --tint: #f5f3ff; --tone: #7c3aed; }
.home-v2 .m-wx    { --tint: #eff6ff; --tone: #2563eb; }
.home-v2 .m-chart { --tint: #ecfdf5; --tone: #059669; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .home-v2 .module { grid-template-columns: 130px 1fr; }
}

@media (max-width: 992px) {
    .home-v2 .hero { grid-template-columns: 1fr; padding: 44px 32px 72px; }
    .home-v2 .hero-visual { display: none; }
    .home-v2 .stats { grid-template-columns: repeat(2, 1fr); margin: -40px 16px 0; }
    .home-v2 .modules { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .home-v2 { padding-top: 16px; }
    .home-v2 .hero { padding: 36px 22px 64px; border-radius: 22px; }
    .home-v2 .hero-links { grid-template-columns: 1fr; }
    .home-v2 .stats { margin: -36px 8px 0; gap: 10px; }
    .home-v2 .stat { padding: 14px; gap: 10px; }
    .home-v2 .stat .ic { width: 36px; height: 36px; font-size: 1rem; }
    .home-v2 .stat b { font-size: 1.2rem; }
    .home-v2 .module { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
    .home-v2 .module h3 { font-size: 1.1rem; }
    .home-v2 .module p { font-size: .87rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 * { animation: none !important; transition: none !important; }
}
