/* Referanslar Sayfası Özel Stilleri */
/* Referanslar sayfasında scroll snap tamamen iptal - düz sayfa mantığı */
body.references-page,
html:has(.references-section),
body:has(.references-section) {
    scroll-snap-type: none !important;
}

body.references-page .page-hero,
html:has(.references-section) .page-hero,
body:has(.references-section) .page-hero {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

.page-hero .page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.page-hero .page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    color: var(--secondary-color);
}

/* İlk section (page-hero) scroll snap ile çalışır - viewport tam */
/* İkinci section (references-section) normal scroll - viewport sınırı yok */

.references-section {
    background: var(--bg-light);
    padding: 4rem 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    /* Düz sayfa mantığı - içerik kadar uzasın */
    min-height: auto !important;
    height: auto !important;
    /* Viewport sınırı yok - içerik kadar uzasın */
    overflow: visible !important;
    display: block !important;
}

.references-section .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

.references-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: var(--card);
    border: 2px solid var(--purple);
    color: var(--purple);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--purple);
    color: var(--secondary-color);
}

.filter-btn.active {
    background: var(--purple);
    color: var(--secondary-color);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.reference-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.reference-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-content {
    padding: 1.5rem;
}

.reference-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.reference-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--purple);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reference-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.reference-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.reference-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.reference-content .btn-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--purple) !important;
    color: var(--secondary-color) !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 1 !important;
    text-shadow: none !important;
}

.reference-content .btn-link:hover {
    background: #5B21B6 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.4) !important;
    color: var(--secondary-color) !important;
    opacity: 1 !important;
}

/* Referanslar sayfasında footer yüksekliği 25vh */
body.references-page .footer,
html:has(.references-section) .footer,
body:has(.references-section) .footer {
    height: 25vh !important;
    min-height: 300px !important;
}
