/* ====================================================
   YAPALI - BAŞARILARIMIZ (BEYAZ KART & SOL ÇİZGİ TASARIMI)
   ==================================================== */
.yapali-stats-section {
    padding: 80px 0;
    background-color: #f4f7fb;
    position: relative;
    overflow: hidden;
}

.ys-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- GRID YAPISI --- */
.ys-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- BEYAZ KART --- */
.ys-stat-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    border-left: 5px solid var(--slider-light-blue, #009ce4);
    box-shadow: 0 10px 30px rgba(0, 40, 120, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 20px;
}

.ys-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 40, 120, 0.1);
}

/* --- İKON ALANI --- */
.ys-icon-wrapper {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(0, 156, 228, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--slider-light-blue, #009ce4);
}
.ys-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

/* --- METİN VE RAKAM --- */
.ys-text-content {
    display: flex;
    flex-direction: column;
}

.ys-number-group {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 2px;
}

.ys-counter {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary, #0b2b5e);
    font-variant-numeric: tabular-nums;
}

.ys-plus {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary, #0b2b5e);
}

.ys-stat-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    letter-spacing: -0.2px;
}

/* ====================================================
   SCROLL ANİMASYONLARI — SAĞLI SOLLU SLIDE
   ==================================================== */

.reveal-slide {
    opacity: 0;
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-slide.from-left  { transform: translateX(-70px); }
.reveal-slide.from-right { transform: translateX(70px); }

.reveal-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* ====================================================
   MOBİL UYUM
   ==================================================== */
@media (max-width: 1024px) {
    .ys-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .yapali-stats-section { padding: 60px 0; }
    .ys-container { padding: 0 20px; }
    .ys-stat-card { padding: 25px 20px; gap: 15px; }
    .ys-icon-wrapper { width: 55px; height: 55px; }
    .ys-icon-wrapper svg { width: 28px; height: 28px; }
    .ys-counter { font-size: 1.8rem; }
    .ys-plus { font-size: 1.5rem; }
    .ys-stat-title { font-size: 0.95rem; }

    /* Mobilde nth-child animasyon override'ları KALDIRILDI */
    /* Grid 2 sütunlu kalmaya devam eder, animasyon HTML'deki from-left/from-right'a göre çalışır */
}

@media (max-width: 480px) {
    .ys-grid { grid-template-columns: 1fr; }
}