/* ============================================================
   ROBOX YAZILIM - Özel stiller
   Tailwind'i tamamlayan gelişmiş efektler (tech/cesur tarz)
   ============================================================ */

:root {
    --brand-blue: #0A4A97;
    --brand-navy: #133885;
    --brand-dark: #0C1E45;
    --brand-red:  #C62828;
    --brand-sky:  #2E7BE8;
}

html { -webkit-tap-highlight-color: transparent; }

/* Seçim rengi */
::selection { background: var(--brand-blue); color: #fff; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0c1e45; }
::-webkit-scrollbar-thumb { background: #1d4a8f; border-radius: 6px; border: 2px solid #0c1e45; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-sky); }

/* ── Navbar scroll durumunda gölge ──────────────────────── */
#navbar.scrolled {
    box-shadow: 0 10px 30px -12px rgba(12, 30, 69, 0.18);
}

/* ── Gradient metin yardımcısı ──────────────────────────── */
.text-gradient {
    background: linear-gradient(120deg, var(--brand-blue), var(--brand-sky) 60%, var(--brand-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Izgara (grid) arka plan deseni ─────────────────────── */
.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
}
.bg-grid-dark {
    background-image:
        linear-gradient(rgba(10,74,151,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,74,151,0.07) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Nokta deseni */
.bg-dots {
    background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* ── Aurora / parlayan blob arka plan ───────────────────── */
.aurora { position: absolute; border-radius: 9999px; filter: blur(80px); opacity: 0.55; pointer-events: none; }

/* ── Cam (glassmorphism) kart ───────────────────────────── */
.glass {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Hover ile yükselen kart + parlak kenar ─────────────── */
.card-hover {
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px -24px rgba(12,30,69,0.35);
}

/* Üst kenarda gradient çizgi beliren kart */
.card-line { position: relative; overflow: hidden; }
.card-line::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
    transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card-line:hover::before { transform: scaleX(1); }

/* ── İkon kutusu parıltısı ──────────────────────────────── */
.icon-box {
    transition: transform .35s, box-shadow .35s;
}
.group:hover .icon-box, .card-hover:hover .icon-box {
    transform: rotate(-6deg) scale(1.08);
}

/* ── Animasyonlu gradient buton/çerçeve ─────────────────── */
.shine-border {
    background: linear-gradient(110deg, var(--brand-blue), var(--brand-sky), var(--brand-red), var(--brand-blue));
    background-size: 200% 100%;
    animation: shineMove 4s linear infinite;
}
@keyframes shineMove { to { background-position: 200% 50%; } }

/* ── Sayaç (counter) ─────────────────────────────────────── */
.stat-num { font-variant-numeric: tabular-nums; }

/* ── Marquee (kayan logo/sektör şeridi) ─────────────────── */
.marquee { display: flex; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Bölüm başlığı süs çizgisi ──────────────────────────── */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem;
}

/* ── Hero tipografi ─────────────────────────────────────── */
.hero-title { line-height: 1.05; letter-spacing: -0.02em; }

/* ── Reduce motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   CMS İÇERİK TİPOGRAFİSİ (.robox-content)
   Panelden gelen HTML gövdesini (ürün/hizmet/sayfa) güzelleştirir
   ============================================================ */
.robox-content { color: #475569; font-size: 15.5px; line-height: 1.8; }
.robox-content > *:first-child { margin-top: 0; }
.robox-content h2 {
    font-family: 'Sora','Poppins',sans-serif; font-weight: 800; font-size: 1.7rem;
    color: #0C1E45; margin: 2.2rem 0 .9rem; letter-spacing: -.01em;
}
.robox-content h3 {
    font-family: 'Sora','Poppins',sans-serif; font-weight: 700; font-size: 1.3rem;
    color: #0C1E45; margin: 2rem 0 .75rem; padding-left: 14px; position: relative;
}
.robox-content h3::before {
    content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px;
    border-radius: 4px; background: linear-gradient(180deg, var(--brand-blue), var(--brand-red));
}
.robox-content h4 { font-weight: 700; font-size: 1.1rem; color: #133885; margin: 1.5rem 0 .6rem; }
.robox-content p { margin: 0 0 1.1rem; }
.robox-content a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.robox-content a:hover { color: var(--brand-red); }
.robox-content strong, .robox-content b { color: #0C1E45; font-weight: 700; }
.robox-content img { border-radius: 1rem; margin: 1.5rem 0; max-width: 100%; height: auto; }
.robox-content blockquote {
    border-left: 4px solid var(--brand-blue); background: #F4F7FB; border-radius: 0 1rem 1rem 0;
    padding: 1rem 1.25rem; margin: 1.5rem 0; color: #334155; font-style: italic;
}
.robox-content ul, .robox-content ol { margin: 0 0 1.3rem; padding: 0; list-style: none; }
.robox-content ol { counter-reset: rx; }
.robox-content ul > li, .robox-content ol > li {
    position: relative; padding: .55rem .55rem .55rem 2.4rem; margin-bottom: .5rem;
    background: #F4F7FB; border-radius: .75rem; font-weight: 500; color: #334155;
}
.robox-content ul > li::before {
    content: ""; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 6px;
    background: var(--brand-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.robox-content ol > li { counter-increment: rx; }
.robox-content ol > li::before {
    content: counter(rx); position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy)); color: #fff;
    font-size: 12px; font-weight: 700;
}
.robox-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 14.5px; }
.robox-content th, .robox-content td { border: 1px solid #e2e8f0; padding: .7rem .9rem; text-align: left; }
.robox-content th { background: #0C1E45; color: #fff; font-weight: 600; }

/* ── İletişim formu (uikit) Tailwind uyumu ──────────────── */
.robox-form input[type=text], .robox-form input[type=email], .robox-form input[type=tel],
.robox-form input[type=number], .robox-form textarea, .robox-form select {
    width: 100%; border: 1px solid #e2e8f0; border-radius: .75rem; padding: .8rem 1rem;
    font-size: 15px; color: #0C1E45; background: #fff; outline: none; transition: all .2s;
    margin-bottom: 1rem; font-family: inherit;
}
.robox-form input:focus, .robox-form textarea:focus, .robox-form select:focus {
    border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(10,74,151,.15);
}
.robox-form textarea { min-height: 130px; resize: vertical; }
.robox-form button, .robox-form input[type=submit], .robox-form .btn {
    background: var(--brand-red); color: #fff; font-weight: 600; border: none; cursor: pointer;
    padding: .85rem 2rem; border-radius: .75rem; font-size: 15px; transition: all .2s;
    box-shadow: 0 10px 25px -8px rgba(198,40,40,.4);
}
.robox-form button:hover, .robox-form input[type=submit]:hover, .robox-form .btn:hover {
    background: var(--brand-redL); transform: translateY(-2px);
}
.robox-form label { font-weight: 500; color: #334155; font-size: 14px; margin-bottom: .35rem; display: block; }

/* ── Karusel: scrollbar gizle ───────────────────────────── */
.robox-carousel-track { scrollbar-width: none; -ms-overflow-style: none; }
.robox-carousel-track::-webkit-scrollbar { display: none; }
[data-carousel-prev], [data-carousel-next] { transition: opacity .25s, background .25s, color .25s; }
