/* assets/css/referanslar.css */

#referanslar {
    background-color: #fcfcfc;
    padding: 80px 0;
    font-family: "Inter", sans-serif;
    width: 100%;
}

.referans-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

/* HEADER */
.referans-header {
    text-align: center;
    margin-bottom: 60px;
}

.referans-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #782b90; /* purple */
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.ref-line {
    display: inline-block;
    height: 1px;
    background-color: #782b90;
    width: 80px;
    margin: 0 20px;
}

.referans-subtitle {
    font-size: 1.1rem;
    color: #111;
    line-height: 1.6;
    font-weight: 500;
}

/* GRID */
.referans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.ref-card {
    flex: 0 0 calc(20% - 16px);
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.ref-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* STATS */
.referans-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 50px;
}

/* 4-5 sayaçta aralıkları daralt, yine ortalı kalsın */
.referans-stats[data-adet="4"] { gap: 36px 36px; }
.referans-stats[data-adet="5"] { gap: 32px 28px; }
.referans-stats[data-adet="5"] .stat-text h4 { font-size: 2rem; }
.referans-stats[data-adet="5"] .stat-icon { font-size: 2.6rem; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 3rem;
    color: #782b90;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 1em;
    height: 1em;
    display: block;
    fill: currentColor;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text h4 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #782b90;
    margin: 0;
    line-height: 1.1;
}

.stat-text span {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 70px;
    background-color: #ddd;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .ref-card {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .ref-card {
        flex: 0 0 calc(33.333% - 14px);
    }
    .referans-stats,
    .referans-stats[data-adet="4"],
    .referans-stats[data-adet="5"] {
        flex-direction: column;
        gap: 30px;
    }
    .stat-divider {
        width: 100px;
        height: 1px;
    }
}

@media (max-width: 576px) {
    .referans-title {
        font-size: 2rem;
    }
    .ref-line {
        width: 40px;
    }
    .ref-card {
        flex: 0 0 calc(50% - 10px);
    }
}