/* Modern Kurumsal Referanslar Teması */

:root {
    /* Ana Renkler */
    --primary-color: var(--theme-primary, #2563EB);
    --primary-light: var(--theme-primary-light, #DBEAFE);
    --primary-dark: var(--theme-primary-dark, #1E40AF);
    
    /* Nötr Renkler */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Sistem Renkleri */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Arka Plan ve Metin */
    --body-bg: var(--gray-50);
    --card-bg: #FFFFFF;
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    
    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Geçişler */
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-opacity: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Z-index Katmanları */
    --z-header: 100;
    --z-modal: 200;
    --z-tooltip: 300;
    
    /* Grid Ayarları */
    --container-max: 1280px;
    --container-padding: 1rem;
    --grid-gap: 1.5rem;
}

/* Temel Reset ve Font Ayarları */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Container ve Grid Sistemi */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--grid-gap);
    margin: 2rem 0;
}

/* Header Bölümü */
.site-header {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

/* Arama Formu */
.search-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: white;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-all);
}

.search-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-lg);
}

.search-form button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-all);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Kategori Navigasyonu */
.category-nav {
    margin: 2rem 0;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.category-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition-all);
    font-weight: 500;
}

.category-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.category-link.active {
    color: var(--primary-color);
    background: white;
}

/* Referans Kartları */
.reference-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-all);
    display: flex;
    flex-direction: column;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reference-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: var(--gray-100);
    overflow: hidden;
}

.reference-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-transform);
}

.reference-card:hover .reference-image img {
    transform: scale(1.05);
}

.reference-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.reference-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reference-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.reference-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.reference-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.reference-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: var(--transition-all);
}

.reference-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.reference-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-transform);
}

.reference-link:hover svg {
    transform: translateX(3px);
}

/* Özel Alanlar */
.custom-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.custom-field {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.custom-field-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 100px;
}

.custom-field-value {
    color: var(--text-primary);
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--card-bg);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.page-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.site-footer {
    background: white;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

/* Animasyonlar */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reference-card {
    animation: fadeUp 0.6s ease-out;
    animation-fill-mode: both;
}

.reference-card:nth-child(2n) {
    animation-delay: 0.1s;
}

.reference-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Yardımcı Sınıflar */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

/* Responsive Tasarım (devamı) */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .references-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .site-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --grid-gap: 1rem;
    }
    
    .site-header {
        padding: 2rem 0;
    }
    
    .references-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .search-form input {
        padding: 0.875rem 1.25rem;
    }
    
    .search-form button {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.875rem;
        transform: none;
    }
    
    .category-list {
        flex-direction: column;
        padding: 0.25rem;
    }
    
    .category-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
    
    .reference-content {
        padding: 1.25rem;
    }
    
    .reference-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.75rem;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-link {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }
}

/* Tema Varyasyonları */
.theme-minimal {
    --shadow: none;
    --shadow-md: none;
    --shadow-lg: none;
}

.theme-minimal .reference-card {
    border: 1px solid var(--gray-200);
}

.theme-dark {
    --body-bg: var(--gray-900);
    --card-bg: var(--gray-800);
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-400);
    --border-color: var(--gray-700);
}

.theme-dark .reference-card {
    background: var(--gray-800);
}

.theme-dark .site-footer {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

/* Loading State */
.references-loading {
    position: relative;
    min-height: 400px;
}

.references-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Özel Durum Mesajları */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.no-results-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-results-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results-message {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Erişilebilirlik İyileştirmeleri */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .site-header,
    .search-form,
    .category-nav,
    .pagination,
    .site-footer {
        display: none;
    }
    
    .references-grid {
        display: block;
    }
    
    .reference-card {
        page-break-inside: avoid;
        margin-bottom: 2rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .reference-image {
        max-height: 200px;
    }
}

/* Utility Classes */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.slide-up-enter-active,
.slide-up-leave-active {
    transition: all 0.3s ease;
}

.slide-up-enter-from,
.slide-up-leave-to {
    opacity: 0;
    transform: translateY(30px);
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .reference-card {
        border: 1px solid CanvasText;
    }
    
    .category-link.active {
        outline: 2px solid CanvasText;
    }
}

/* RTL Support */
[dir="rtl"] {
    .reference-link svg {
        transform: scaleX(-1);
    }
    
    .search-form button {
        right: auto;
        left: 0.5rem;
    }
    
    .reference-category {
        right: auto;
        left: 1rem;
    }
}