/* ===========================
   REFERANSLAR PAGE
   =========================== */

/* Page Hero */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(182, 39, 39, 0.1) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

/* Reference Content */
.ref-content {
    padding: 80px 0 100px;
    background: #f8f9fa;
}

/* Reference Group */
.ref-group {
    margin-bottom: 64px;
}

.ref-group:last-child {
    margin-bottom: 0;
}

.ref-group-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8ee;
}

.ref-group-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #d44444 100%);
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ref-group-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.ref-group-header p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Reference Grid */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Reference Card */
.ref-card {
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 16px;
    padding: 24px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.ref-card:hover {
    border-color: rgba(182, 39, 39, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.ref-card img {
    width: 100%;
    max-width: 140px;
    height: 70px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.ref-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.ref-card span {
    font-size: 0.72rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
}

/* Featured card (Sağlık Bakanlığı) */
.ref-card-featured {
    border-color: rgba(182, 39, 39, 0.25);
    background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
    box-shadow: 0 4px 16px rgba(182, 39, 39, 0.06);
}

.ref-card-featured img {
    filter: grayscale(0%);
    opacity: 1;
}

.ref-card-featured span {
    color: var(--color-primary);
    font-weight: 600;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .ref-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 130px 0 60px;
    }

    .ref-content {
        padding: 60px 0 70px;
    }

    .ref-group {
        margin-bottom: 48px;
    }

    .ref-group-header {
        gap: 16px;
        margin-bottom: 24px;
    }

    .ref-group-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .ref-group-header h2 {
        font-size: 1.3rem;
    }

    .ref-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .ref-card {
        padding: 16px 12px 12px;
        gap: 8px;
    }

    .ref-card img {
        max-width: 100px;
        height: 50px;
    }

    .ref-card span {
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .page-hero {
        padding: 120px 0 50px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .ref-content {
        padding: 40px 0 50px;
    }

    .ref-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ref-card {
        padding: 14px 10px 10px;
        border-radius: 12px;
    }

    .ref-card img {
        max-width: 80px;
        height: 40px;
    }

    .ref-group-header h2 {
        font-size: 1.15rem;
    }

    .ref-group-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 10px;
    }
}
