/* Gold Data - Referanslar Sayfası CSS
 * SEO optimizasyonu için external CSS dosyasına taşındı
 * Tarih: 02.11.2024
 */

/* Container ve genel düzen */
.refs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* Flex layout - Yazı solda, logolar sağda */
.refs-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Sol taraf - Yazı alanı */
.refs-content-side {
    flex: 0 0 400px;
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(0, 46, 91, 0.06);
    border: 1px solid #e5e7eb;
}

/* Scrollbar stilleri */
.refs-content-side::-webkit-scrollbar {
    width: 6px;
}

.refs-content-side::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.refs-content-side::-webkit-scrollbar-thumb {
    background: #6c98e1;
    border-radius: 10px;
}

/* Başlık stilleri */
.refs-header h1 {
    color: #002e5b;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.5px;
    border-bottom: 3px solid #6c98e1;
    padding-bottom: 15px;
}

/* İçerik metinleri */
.refs-intro-text {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.refs-intro-text p {
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
    font-size: 1.25rem;
    line-height: 1.85;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.refs-intro-text p:first-child {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.refs-intro-text p:nth-child(2) {
    background: rgba(108, 152, 225, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #6c98e1;
    margin-bottom: 20px;
}

.refs-intro-text p:last-child {
    text-align: left;
    margin-bottom: 0;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.refs-intro-text strong {
    color: #002e5b;
    font-weight: 700;
}

.refs-intro-text em {
    color: #6c98e1;
    font-style: normal;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(108, 152, 225, 0.3);
    text-underline-offset: 3px;
}

/* Link stilleri - SEO için önemli */
.refs-intro-text a {
    color: #6c98e1;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.refs-intro-text a:hover {
    color: #002e5b;
    text-decoration: none;
}

/* Screen reader için gizli başlık */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Logo grid düzenleri */
.refs-brands-grid-side {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2px;
    background: #f0f0f0;
    padding: 2px;
    border-radius: 8px;
    align-content: start;
}

.refs-brands-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
    background: #f0f0f0;
    padding: 2px;
    border-radius: 8px;
    margin-top: 40px;
    width: 100%;
}

/* Logo kartları */
.refs-brand-card {
    background: #ffffff;
    border: none;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.refs-brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(108, 152, 225, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.refs-brand-card:hover::before {
    opacity: 1;
}

.refs-brand-card:hover {
    transform: scale(1.18);
    box-shadow: 0 18px 45px rgba(0, 46, 91, 0.25);
    z-index: 10;
    background: #fafbfc;
}

/* Logo görselleri */
.refs-brand-logo {
    width: 100%;
    max-width: 140px;
    height: 80px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.refs-brand-card:hover .refs-brand-logo {
    transform: scale(1.3);
}

/* Marka isimleri */
.refs-brand-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
    transition: all 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.refs-brand-card:hover .refs-brand-name {
    color: #002e5b;
    font-weight: 700;
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.refs-brand-card {
    animation: fadeInUp 0.6s ease backwards;
}

.refs-brand-card:nth-child(1) { animation-delay: 0.1s; }
.refs-brand-card:nth-child(2) { animation-delay: 0.15s; }
.refs-brand-card:nth-child(3) { animation-delay: 0.2s; }
.refs-brand-card:nth-child(4) { animation-delay: 0.25s; }
.refs-brand-card:nth-child(5) { animation-delay: 0.3s; }
.refs-brand-card:nth-child(6) { animation-delay: 0.35s; }
.refs-brand-card:nth-child(7) { animation-delay: 0.4s; }
.refs-brand-card:nth-child(8) { animation-delay: 0.45s; }

/* Responsive - Tablet */
@media (max-width: 992px) {
    .refs-header {
        display: block;
    }

    .refs-content-side {
        flex: none;
        background: transparent;
        border-radius: 0;
        padding: 0 0 30px 0;
        box-shadow: none;
        border: none;
        margin-bottom: 20px;
    }

    .refs-header h1 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 30px;
    }

    .refs-intro-text p {
        font-size: 1.2rem;
        line-height: 1.85;
    }

    .refs-intro-text p:nth-child(2) {
        background: transparent;
        border-left: 3px solid #6c98e1;
        padding-left: 20px;
    }

    .refs-brands-grid-side,
    .refs-brands-grid-bottom {
        margin-top: 30px;
    }

    .refs-brands-grid-bottom {
        display: none;
    }

    .refs-brands-grid-side {
        display: grid;
        width: 100%;
    }

    .refs-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Responsive - Mobil */
@media (max-width: 768px) {
    .refs-header h1 {
        font-size: 1.8rem;
    }

    .refs-intro-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        text-align: left;
        margin-bottom: 15px;
    }

    .refs-brands-grid-side {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .refs-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1px;
        padding: 1px;
    }

    .refs-brand-card {
        padding: 25px 15px;
        min-height: 140px;
    }

    .refs-brand-logo {
        max-width: 120px;
        height: 60px;
    }

    .refs-container {
        padding: 20px 15px 60px 15px;
    }
}

/* Responsive - Küçük Mobil */
@media (max-width: 480px) {
    .refs-brands-grid-side {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .refs-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .refs-brand-card {
        padding: 20px 10px;
        min-height: 120px;
    }

    .refs-brand-logo {
        max-width: 100px;
        height: 50px;
    }
}

/* Scrollbar stilleri */
.refs-brands-grid::-webkit-scrollbar {
    height: 6px;
}

.refs-brands-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.refs-brands-grid::-webkit-scrollbar-thumb {
    background: #6c98e1;
    border-radius: 10px;
}

.refs-brands-grid::-webkit-scrollbar-thumb:hover {
    background: #002e5b;
}