/* ── Teklif Yolda Frontend Styles ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --ty-dark:    #07080f;
    --ty-mid:     #0e1020;
    --ty-card:    #141829;
    --ty-border:  #1f2440;
    --ty-accent:  #6c63ff;
    --ty-accent2: #ff6584;
    --ty-gold:    #f5c842;
    --ty-text:    #e8eaf6;
    --ty-muted:   #7a80a8;
}

.ty-front-wrap *,
.ty-front-wrap *::before,
.ty-front-wrap *::after { box-sizing: border-box; }

/* Yatay scroll ve taşmayı tamamen engelle */
.ty-front-wrap {
    font-family: 'DM Sans', sans-serif;
    color: var(--ty-text);
    background: var(--ty-dark);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ── Hero ── */
.ty-hero {
    position: relative;
    text-align: center;
    padding: 100px 40px 80px;
    overflow: hidden;
    width: 100%;
}
.ty-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 50%, rgba(245,200,66,.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 20% 60%, rgba(255,101,132,.1) 0%, transparent 70%);
}
.ty-hero-content { position: relative; z-index: 2; }

.ty-badge {
    display: inline-block;
    background: rgba(108,99,255,.18);
    border: 1px solid rgba(108,99,255,.4);
    color: #a8a3ff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    animation: ty-fade-up .6s ease both;
}
.ty-site-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 7vw, 96px);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 20px;
    /* Taşmayı önle */
    word-break: break-word;
    overflow-wrap: break-word;
    background: linear-gradient(135deg, #fff 20%, var(--ty-gold) 60%, var(--ty-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ty-fade-up .6s .1s ease both;
}
.ty-site-sub {
    font-size: clamp(14px, 2.5vw, 17px);
    color: var(--ty-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    animation: ty-fade-up .6s .2s ease both;
}

/* Particles */
.ty-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ty-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--ty-accent);
    opacity: 0;
    left: calc(var(--i) * 5.5%);
    top: calc(30% + (var(--i) % 5) * 12%);
    animation: ty-float calc(3s + var(--i) * .4s) calc(var(--i) * .3s) ease-in-out infinite alternate;
}
.ty-particle:nth-child(odd) { background: var(--ty-gold); width: 2px; height: 2px; }
.ty-particle:nth-child(3n)  { background: var(--ty-accent2); }
@keyframes ty-float {
    from { opacity: 0; transform: translateY(20px) scale(.5); }
    to   { opacity: .7; transform: translateY(-30px) scale(1); }
}

/* ── Cards section ── */
.ty-cards-section {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 80px;
}
.ty-cards-grid { display: flex; flex-direction: column; gap: 14px; }

/* ── Card ── */
.ty-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--ty-border);
    background: var(--ty-card);
    overflow: hidden;
    width: 100%;
    opacity: 0;
    transform: translateY(24px);
    animation: ty-fade-up .55s calc(var(--delay, 0ms) + 300ms) ease both;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    cursor: pointer;
}
.ty-card:hover {
    border-color: rgba(108,99,255,.55);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108,99,255,.12);
}
.ty-card:hover .ty-card-glow { opacity: 1; }
.ty-card:hover .ty-card-chevron svg { transform: translateX(3px); color: var(--ty-accent); }

.ty-card-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 120%, rgba(108,99,255,.14), transparent);
    opacity: 0; transition: opacity .4s; pointer-events: none;
}

.ty-card-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    position: relative;
    z-index: 1;
}

/* ── Chevron ── */
.ty-card-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(108,99,255,.1);
    border: 1px solid rgba(108,99,255,.2);
    color: rgba(108,99,255,.7);
    transition: background .25s, border-color .25s;
    align-self: flex-start;
    margin-top: 2px;
}
.ty-card:hover .ty-card-chevron {
    background: rgba(108,99,255,.2);
    border-color: rgba(108,99,255,.5);
}
.ty-card-chevron svg {
    width: 16px; height: 16px;
    transition: transform .25s, color .25s;
}

/* ── Card body ── */
.ty-card-body { flex: 1; min-width: 0; }

.ty-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 700;
    color: var(--ty-text);
    text-decoration: none;
    transition: color .2s;
    margin-bottom: 6px;
    line-height: 1.3;
    /* Uzun başlıkların taşmasını önle */
    word-break: break-word;
    overflow-wrap: break-word;
}
.ty-card-title:hover { color: var(--ty-gold); }
.ty-card-title:hover .ty-arrow { transform: translate(3px, -3px); color: var(--ty-gold); }

.ty-arrow {
    width: 16px; height: 16px;
    flex-shrink: 0;
    transition: transform .25s, color .25s;
    color: var(--ty-muted);
}

.ty-card-desc {
    color: var(--ty-muted);
    font-size: clamp(13px, 2vw, 14px);
    line-height: 1.65;
    margin: 0;
    word-break: break-word;
}

/* ── Empty ── */
.ty-empty { text-align: center; padding: 80px 20px; color: var(--ty-muted); }
.ty-empty span { font-size: 48px; display: block; margin-bottom: 16px; }
.ty-empty p    { font-size: 16px; }

/* ── Footer ── */
.ty-front-footer {
    text-align: center;
    padding: 0 32px 60px;
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
}
.ty-footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ty-border), transparent);
    margin-bottom: 28px;
}
.ty-contact { font-size: 14px; color: var(--ty-muted); }
.ty-contact a {
    color: var(--ty-accent); text-decoration: none;
    font-weight: 500; transition: color .2s;
}
.ty-contact a:hover { color: var(--ty-gold); }

/* ── Animation ── */
@keyframes ty-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive: Tablet ≤ 768px ── */
@media (max-width: 768px) {
    .ty-hero          { padding: 80px 28px 60px; }
    .ty-cards-section { padding: 0 24px 60px; }
    .ty-front-footer  { padding: 0 24px 50px; }
    .ty-card-inner    { padding: 18px 20px; gap: 14px; }
    .ty-card-chevron  { width: 28px; height: 28px; border-radius: 7px; }
    .ty-card-chevron svg { width: 14px; height: 14px; }
}

/* ── Responsive: Mobil ≤ 480px ── */
@media (max-width: 480px) {
    /* Hero */
    .ty-hero          { padding: 56px 20px 44px; }
    .ty-badge         { font-size: 10px; padding: 5px 13px; }

    /* Kartlar — kenarlardan 16px boşluk */
    .ty-cards-section { padding: 0 20px 48px; }
    .ty-cards-grid    { gap: 12px; }

    /* Footer — kenarlardan 16px boşluk */
    .ty-front-footer  { padding: 0 20px 44px; }

    /* Kart içi */
    .ty-card          { border-radius: 13px; }
    .ty-card-inner    { padding: 15px 14px; gap: 12px; }
    .ty-card-chevron  { width: 26px; height: 26px; border-radius: 6px; margin-top: 1px; }
    .ty-card-chevron svg { width: 13px; height: 13px; }
    .ty-card-title    { margin-bottom: 4px; font-size: 15px; }
    .ty-arrow         { width: 14px; height: 14px; }
    .ty-card-desc     { font-size: 13px; }

    /* Footer yazısı */
    .ty-contact       { font-size: 13px; line-height: 1.6; }
}

/* ── Responsive: Çok küçük ekran ≤ 360px ── */
@media (max-width: 360px) {
    .ty-cards-section { padding: 0 16px 44px; }
    .ty-front-footer  { padding: 0 16px 40px; }
    .ty-card-inner    { padding: 13px 12px; gap: 10px; }
}

/* ── Mobil kenar boşluğu garantisi ── */
@media (max-width: 480px) {
    .ty-front-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .ty-cards-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .ty-front-footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
@media (max-width: 360px) {
    .ty-cards-section {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .ty-front-footer {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
