/* frevector.com - Global Styles - PHOTOSHOP GÖRSELINE BİREBİR UYGUN */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-mid: #e0e0e0;
    --gray-text: #666666;
    --border: #e8e8e8;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--white); color: #1a1a1a; line-height: 1.5; overflow: hidden; width: 100%; height: 100vh; }

/* SABIT DÜZEN - TOP BANNER */
.top-banner { 
    background: var(--black); 
    padding: 10px 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 52px; 
    width: 100%; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}
.banner-logo { height: 36px; width: auto; max-width: 200px; display: block; }

/* SABIT DÜZEN - HEADER (SEARCH) */
.header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 20px; 
    border-bottom: 1px solid var(--border); 
    background: var(--white); 
    position: fixed; 
    top: 52px; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    gap: 12px; 
    height: 52px;
}
.header-center { flex: 1; margin-left: 0; }
.search-container { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 3px; padding: 0; background: var(--white); }
.search-input { border: none; outline: none; flex: 1; font-size: 13px; color: #1a1a1a; background: transparent; padding: 7px 12px; order: 1; }
.search-icon-btn { background: var(--black); border: none; cursor: pointer; padding: 7px 12px; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; border-radius: 0 3px 3px 0; transition: background 0.2s; order: 2; }
.search-icon-btn:hover { background: #333; }
.sort-filter { border: 1px solid var(--border); padding: 7px 10px; border-radius: 3px; font-size: 12px; cursor: pointer; background: var(--white); color: #1a1a1a; white-space: nowrap; flex-shrink: 0; }

/* SABIT DÜZEN - SIDEBAR (KATEGORİLER) */
.main-container { 
    display: flex; 
    flex: 1; 
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    bottom: 240px;
    width: 100%;
    overflow: hidden;
}

.sidebar { 
    width: 160px; 
    min-width: 160px; 
    padding: 12px 0; 
    border-right: 1px solid var(--border); 
    background: var(--white); 
    position: static; 
    height: 100%; 
    overflow-y: auto; 
    flex-shrink: 0; 
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-mid) var(--gray-light);
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: var(--gray-light); }
.sidebar::-webkit-scrollbar-thumb { background: var(--gray-mid); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--gray-text); }

.sidebar-title { font-size: 10px; font-weight: 700; color: var(--gray-text); letter-spacing: 1.5px; padding: 0 16px 8px; }

/* KATEGORİLER - FERAH BOŞLUKLAR */
.categories-list { display: flex; flex-direction: column; gap: 0; overflow: visible; }
.category-item { 
    text-decoration: none; 
    color: #1a1a1a; 
    font-size: 12px; 
    padding: 4px 16px; 
    cursor: pointer; 
    border-left: 3px solid transparent; 
    transition: background 0.15s; 
    display: block; 
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.category-item:hover { background: var(--gray-light); }
.category-item.active { background: var(--black); color: var(--white); font-weight: 600; border-left-color: var(--black); }

/* İÇERİK ALANI - KAYDIRMA ÇUBUĞU */
.content { 
    flex: 1; 
    padding: 20px 24px; 
    min-width: 0; 
    margin-left: 160px; 
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-mid) var(--gray-light);
}

.content::-webkit-scrollbar { width: 8px; }
.content::-webkit-scrollbar-track { background: var(--gray-light); }
.content::-webkit-scrollbar-thumb { background: var(--gray-mid); border-radius: 4px; }
.content::-webkit-scrollbar-thumb:hover { background: var(--gray-text); }

.category-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; text-transform: capitalize; }

.vectors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 40px; min-height: 200px; }
.vector-card { cursor: pointer; border-radius: 3px; overflow: hidden; background: var(--gray-light); transition: box-shadow 0.15s; position: relative; }
.vector-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.vector-card.card-active { box-shadow: 0 0 0 2px var(--black); }
.vc-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-light); position: relative; }
.vc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-type-badge { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; color: var(--white); z-index: 10; text-transform: uppercase; }
.vc-type-badge.vector { background: #15803d; }
.vc-type-badge.jpeg { background: #1d4ed8; }
.vc-info { padding: 6px 8px; background: var(--white); }
.vc-description { font-size: 10px; color: #1a1a1a; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-keywords { font-size: 9px; color: var(--gray-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.detail-panel { background: var(--white); border: 1px solid var(--border); border-radius: 4px; margin: 12px 0; padding: 20px; grid-column: 1 / -1; width: 100%; }
.detail-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; }
.detail-left { display: flex; flex-direction: column; gap: 16px; }
.detail-img { width: 100%; max-height: 400px; object-fit: contain; border-radius: 4px; background: var(--gray-light); }
.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.detail-table tr { border-bottom: 1px solid var(--border); }
.dt-label { font-weight: 600; color: #444; padding: 8px 0; width: 40%; }
.dt-value { color: var(--gray-text); padding: 8px 0; }
.detail-right { display: flex; flex-direction: column; gap: 12px; }
.detail-title { font-size: 20px; font-weight: 800; }
.detail-desc { font-size: 14px; color: var(--gray-text); }
.detail-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.kw-tag { background: var(--gray-light); border: 1px solid var(--border); padding: 3px 8px; border-radius: 3px; font-size: 11px; color: #444; }
.download-btn { background: var(--black); color: var(--white); border: none; padding: 12px 32px; font-size: 14px; font-weight: 800; cursor: pointer; border-radius: 3px; }
.detail-close-btn { background: none; border: 1px solid var(--border); padding: 12px 20px; font-size: 13px; cursor: pointer; border-radius: 3px; color: var(--gray-text); }

/* SABIT DÜZEN - BOTTOM FIXED CONTAINER */
.bottom-fixed-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* OUR PICKS - TAM GENİŞLİK, OKLAR YANLARDA */
.our-picks-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    width: 100%;
    position: relative;
    margin-left: 0;
    flex-shrink: 0;
    overflow: visible;
}

.our-picks-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 8px;
}

.our-picks-label { 
    font-weight: 800; 
    font-size: 10px; 
    text-transform: uppercase; 
    color: var(--gray-text); 
    letter-spacing: 0.5px;
    text-align: center;
}

.our-picks-nav { 
    position: absolute;
    top: 55px; /* Label altındaki görsellerin ortasına denk gelecek şekilde */
    left: 0;
    right: 0;
    display: flex; 
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: none;
    z-index: 100;
}

.our-picks-arrow {
    background: var(--white);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-weight: bold;
    transition: all 0.2s;
    pointer-events: auto;
}

.our-picks-arrow:hover { 
    background: var(--black); 
    color: var(--white); 
    border-color: var(--black); 
}

.our-picks-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

.our-picks-track-wrap { 
    overflow: hidden; 
    position: relative; 
    width: calc(100% - 80px);
    margin: 0 auto;
    contain: content;
}

.our-picks-track { 
    display: flex; 
    gap: 10px; 
    transition: transform 0.3s ease; 
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transform: translateZ(0);
}

.our-picks-track .vector-card { 
    width: 80px; 
    min-width: 80px; 
    flex-shrink: 0; 
    pointer-events: auto;
    cursor: pointer;
}

.our-picks-track .vector-card .vc-img-wrap { 
    aspect-ratio: 4/3; 
    border-radius: 3px; 
}

.our-picks-track .vector-card .vc-type-badge { 
    top: 2px; 
    right: 2px; 
    padding: 1px 3px; 
    font-size: 7px; 
}

.our-picks-track .vector-card .vc-info { 
    display: none; 
}

/* SAYFALAMA */
.pagination-wrapper { 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: center;
    background: var(--white);
    margin-left: 0;
    flex-shrink: 0;
}

.pagination-nav { display: flex; align-items: center; gap: 12px; }
.pag-btn { background: none; border: 1px solid var(--border); padding: 6px 12px; cursor: pointer; border-radius: 3px; font-weight: bold; font-size: 12px; }
.page-num { font-weight: bold; font-size: 14px; }
.page-total { color: var(--gray-text); font-size: 12px; }

/* FOOTER */
.footer { 
    background: #000; 
    color: #fff; 
    padding: 0 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    font-size: 14px;
    margin-left: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    height: 52px;
    box-sizing: border-box;
}

.footer-nav { display: flex; gap: 20px; }
.footer-link { color: #fff; text-decoration: none; font-size: 13px; }

/* MOBİL GÖRÜNÜM */
@media (max-width: 768px) {
    body { overflow-y: auto; }
    
    .top-banner { position: static; }
    .header { 
        position: static; 
        margin-left: 0; 
        flex-direction: column; 
        height: auto; 
        padding: 12px; 
        gap: 8px;
        order: 2; /* Arama kutusu 2. sırada */
    }
    .header-center { margin-left: 0; width: 100%; }
    .search-container { flex-direction: row; width: 100%; }
    .search-input { padding: 8px 12px; }
    .search-icon-btn { padding: 8px 12px; border-radius: 0 3px 3px 0; }
    .sort-filter { width: 100%; order: 3; } /* Filtre 3. sırada */
    
    .main-container { 
        position: static; 
        top: auto; 
        bottom: auto; 
        flex-direction: column; 
        display: flex;
        height: auto;
        overflow: visible;
    }
    
    .sidebar { 
        width: 100%; 
        min-width: 100%; 
        position: static; 
        height: auto; 
        border-right: none; 
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
        overflow: visible;
        order: 4; /* Kategoriler 4. sırada */
    }
    
    .sidebar-title { padding: 0 16px 4px; font-size: 9px; }
    
    .categories-list { 
        display: flex; 
        flex-direction: row; 
        flex-wrap: wrap;
        width: 100%;
        gap: 4px; /* Boşluklar azaltıldı */
        overflow: visible;
        padding: 4px 16px;
    }
    
    .category-item { 
        padding: 4px 8px; /* Daha kompakt */
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 3px;
        background: var(--white); /* Yazısı kadar siyah alan kaplayacak kuralı için beyaz zemin, siyah border */
        color: var(--black);
        border: 1px solid var(--black);
        margin: 0;
        cursor: pointer;
        display: inline-block;
        width: auto;
    }
    
    .category-item.active {
        background: var(--black);
        color: var(--white);
    }
    
    .content { 
        padding: 16px; 
        width: 100%; 
        margin-left: 0; 
        overflow-y: auto;
        order: 5; /* Görseller */
    }
    
    .category-title { font-size: 18px; margin-bottom: 16px; }
    
    .vectors-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
    .vector-card { border-radius: 6px; }
    .vc-img-wrap { aspect-ratio: 16/9; }
    
    .detail-inner { grid-template-columns: 1fr; }
    
    .bottom-fixed-container { 
        position: static; 
        height: auto; 
        border-top: 1px solid var(--border); 
        display: flex;
        flex-direction: column;
        order: 6; /* Alt bölüm en sonda */
    }
    .pagination-wrapper { order: 1; padding: 12px 0; margin-left: 0; border-bottom: 1px solid var(--border); }
    .our-picks-section { order: 2; padding: 12px 0; margin-left: 0; border-bottom: 1px solid var(--border); }
    .footer { order: 3; padding: 16px; height: auto; min-height: 80px; display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: center; margin-bottom: 0; padding-bottom: 16px; }
    .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .footer-link { display: inline-block; padding: 4px 8px; }
    .our-picks-nav { gap: 6px; }
    .our-picks-arrow { width: 28px; height: 28px; font-size: 16px; }
    .our-picks-track-wrap { padding: 0 16px; }
    .our-picks-track .vector-card { width: 60px; min-width: 60px; }
    .our-picks-track .vector-card .vc-img-wrap { aspect-ratio: 4/3; }
    
    .pagination-wrapper { padding: 12px 0; margin-left: 0; }
    .pag-btn { padding: 5px 10px; font-size: 11px; }
    .page-num { font-size: 12px; }
    
    /* Footer styles already handled above in the same media query */
}

.download-page { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); z-index: 2000; display: flex; flex-direction: column; overflow-y: auto; }
.download-page-header { background: var(--black); color: var(--white); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.dp-site { font-weight: 800; font-size: 18px; }
.dp-close { background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }
.download-page-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.dp-image { width: 100%; max-height: 500px; object-fit: contain; background: #f9f9f9; border-radius: 8px; }

@media (max-width: 768px) {
    .download-page { position: fixed; bottom: 0; top: auto; height: auto; max-height: 90vh; border-radius: 16px 16px 0 0; }
    .download-page-header { border-radius: 16px 16px 0 0; }
    .download-page-body { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
}

.info-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.info-modal-box { background: var(--white); padding: 40px; border-radius: 8px; max-width: 800px; width: 90%; position: relative; max-height: 90vh; overflow-y: auto; }
.info-modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; cursor: pointer; }

.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); z-index: 4000; display: flex; align-items: center; justify-content: center; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--black); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================
ULTRA PERFORMANCE PATCH CSS
========================= */

img {
  content-visibility: auto;
  contain-intrinsic-size: 300px;
}

.vector-card img {
  will-change: transform;
  transform: translateZ(0);
}

.grid,
.vector-grid {
  contain: layout paint;
}

body {
  backface-visibility: hidden;
}
