/* ==========================================================================
   OnayApp — Ana Sayfa Stilleri
   --------------------------------------------------------------------------
   Yalnızca index.html'in kullandığı parçalar: büyük hero, istatistik barı,
   dünya haritası, canlı doğrulama akışı, özellik ızgarası ve iki kolonlu CTA.

   site.css'ten SONRA yüklenir ve onun token'larını kullanır. Servis
   sayfalarının bu ~10 KB'ı boşuna indirmemesi için ayrı tutulmuştur.
   ========================================================================== */

/* Canlı gösterge yeşili — koyu zeminde neon, açık zeminde okunabilir tona
   iner (neon yeşil beyaz üzerinde görünmez). */
:root { --liveAccent: #39FF14; }

@media (prefers-color-scheme: light) {
    :root { --liveAccent: #007A3D; }
}

/* ============ HERO ============ */
.hero {
    padding: 200px 40px 120px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-stats-big {
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    background: var(--heroGradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--text);
}

.hero-description {
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.7;
    color: var(--subtle);
    max-width: 640px;
    margin: 0 auto 48px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--keyColor);
    transition: color 0.3s;
}

.hero-cta a:hover { color: var(--keyHover); }

.hero-cta a::after {
    content: ' →';
    transition: transform 0.3s;
    display: inline-block;
}

.hero-cta a:hover::after { transform: translateX(4px); }

/* ============ İSTATİSTİK BARI ============ */
.stats-bar {
    padding: 60px 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--subtle);
    font-weight: 500;
}

/* ============ KÜRESEL AĞ / HARİTA ============ */
.network-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 40px;
}

.map-container {
    position: relative;
    background: var(--surfaceGlass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#world-map {
    width: 100%;
    height: auto;
    display: block;
}

#world-map path {
    fill: var(--mapLand, rgba(255, 255, 255, 0.07));
    stroke: var(--mapStroke, rgba(0, 0, 0, 0.6));
    stroke-width: 0.6;
    transition: fill 0.3s, stroke 0.3s, filter 0.3s;
}

#world-map path:hover,
#world-map path.highlighted {
    fill: var(--keyGlow);
    stroke: var(--keyColor);
    filter: drop-shadow(0 0 4px var(--keyColor));
}

@media (prefers-color-scheme: light) {
    #world-map path {
        fill: rgba(11, 18, 16, 0.09);
        stroke: rgba(255, 255, 255, 0.9);
    }
}

/* Harita işaretçileri */
.marker { cursor: pointer; }

.marker .dot,
.marker .ping {
    transform-box: fill-box;
    transform-origin: center;
}

.marker .dot {
    fill: var(--keyColor);
    transition: fill 0.3s, transform 0.3s, filter 0.3s;
}

.marker:hover .dot,
.marker.active-pulse .dot {
    fill: var(--liveAccent);
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px var(--liveAccent));
}

.marker .ping {
    fill: var(--keyColor);
    opacity: 0.4;
    animation: markerPing 2s infinite ease-out;
    pointer-events: none;
}

.marker.active-pulse .ping {
    fill: var(--liveAccent);
    animation: markerPingFast 0.8s infinite ease-out;
}

@keyframes markerPing {
    0% { r: 6px; opacity: 0.7; }
    100% { r: 22px; opacity: 0; }
}

@keyframes markerPingFast {
    0% { r: 6px; opacity: 0.8; }
    100% { r: 30px; opacity: 0; }
}

/* Harita tooltip'i */
.map-tooltip {
    position: absolute;
    background: var(--tooltipBg);
    border: 1px solid var(--tooltipBorder);
    border-radius: 12px;
    padding: 12px 16px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.9);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    color: var(--text);
    width: 190px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.map-tooltip.active {
    opacity: 1;
    transform: translate(-50%, -115%) scale(1);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.tooltip-flag { font-size: 1.2rem; }

.tooltip-country {
    font-weight: 700;
    font-size: 0.95rem;
}

.tooltip-body {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tooltip-stat {
    display: flex;
    justify-content: space-between;
}

.tooltip-stat span { color: var(--subtle); }

/* ============ CANLI DOĞRULAMA AKIŞI ============ */
.live-feed {
    background: var(--surfaceGlass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    height: 100%;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.feed-dot {
    width: 8px;
    height: 8px;
    background: var(--liveAccent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--liveAccent);
    animation: pulseDot 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.feed-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.feed-messages {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    min-height: 330px;
}

.feed-item {
    background: var(--cardBg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 12px;
    animation: feedSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top center;
}

@keyframes feedSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feed-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.feed-item-country {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-item-time {
    color: var(--subtle);
    font-size: 0.75rem;
}

.feed-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.feed-item-service {
    font-weight: 600;
    color: var(--keyColor);
}

.feed-item-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--subtle);
}

.feed-item-code {
    font-size: 0.8rem;
    color: var(--text);
}

.feed-item-code code {
    background: var(--cardHover);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--liveAccent);
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============ ÖZELLİK IZGARASI ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--cardBg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 32px;
    transition: background 0.4s, border-color 0.4s;
}

.feature-card:hover {
    background: var(--cardHover);
    border-color: var(--borderStrong);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--subtle);
}

/* ============ İKİ KOLONLU CTA ============ */
.cta-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.cta-col .cta-label {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cta-col p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .hero { padding: 160px 24px 80px; }
    .stats-bar { padding: 40px 24px; }
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .network-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
    .map-container { padding: 16px; }
    .live-feed { height: auto; }
    .feed-messages { min-height: auto; }
    .cta-cols { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

@media (max-width: 480px) {
    .hero { padding: 140px 16px 60px; }
    .hero-stats-big { font-size: 52px; word-break: break-word; }
    .hero-subtitle { font-size: 26px; }
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .map-container { padding: 12px; border-radius: 18px; }
    .live-feed { padding: 18px; border-radius: 18px; }
    .map-tooltip { width: 160px; padding: 10px 12px; }
    .feed-item-bottom { flex-wrap: wrap; gap: 6px 12px; }
    .feed-item-number { order: 3; }
    .feature-card { padding: 28px 24px; }
}
