@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f7fa;
}

.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #1a1a1a;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.logo-container {
    padding: 25px 20px;
    text-align: center;
    border-bottom: none;
    background: #fff;
}

.logo-container img {
    max-width: 230px;
    height: auto;
}

.category {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category.active {
    background: #e31e24;
}

.category i {
    font-size: 16px;
    color: #fff;
    width: 24px;
    text-align: center;
}

.category-text .tr {
    display: block;
    font-weight: 500;
    color: #fff;
}

.category-text .en {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.content {
    margin-left: 280px;
    padding: 40px;
    background: #f5f7fa;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-out;
}

#categoryTitle {
    color: #1a202c;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease-out;
}

/* Ana container */
#documentContainer {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Elementler arası boşluk */
}

/* Ana kategori başlığı */
.category-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
    margin: 0;
}

/* Alt kategori bölümü */
.subcategory-section {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Başlık ve grid arası boşluk */
    width: 100%;
    margin: 0;
}

/* Alt kategori başlığı */
.subcategory-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin: 0;
}

/* Grid container */
.document-grid {
    display: grid;
    grid-template-columns: repeat(4, 220px);
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin: 0;
}

/* PDF kartı */
.pdf-card {
   
    width: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #eaedf3;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
}

.pdf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pdf-icon-container {
    
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-bottom: 1px solid #eaedf3;
}

.pdf-icon-container canvas {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.pdf-icon {
    color: #E31E24;
    font-size: 48px;
    display: block;
}

.pdf-info {
    padding: 5px;
    flex: 1;
}

.pdf-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
}

.pdf-size {
    color: #718096;
    font-size: 13px;
}

.pdf-actions {
    padding: 5px;
    border-top: 1px solid #eaedf3;
}

.pdf-button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-btn {
    background: #E31E24;
    color: white;
}

.view-btn:hover {
    background: #c51a1f;
}

.download-btn {
    background: #f1f5f9;
    color: #475569;
}

.download-btn:hover {
    background: #e2e8f0;
}

.pdf-button i {
    font-size: 15px;
}

.category.active i {
    color: #fff;
    opacity: 1;
}

.category:hover i {
    color: #E31E24;
}

.category.active:hover i {
    color: #fff;
}

/* PDF kartı hover efekti */
.pdf-card:hover .pdf-icon-container canvas {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* PDF kart listesi için list_inner stili */
.pdf-card .list_inner {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: all .3s ease;
}

.pdf-card .list_inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* PDF önizleme container'ı */
.pdf-card .list_inner .pdf-preview {
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border-bottom: 1px solid #eaedf3;
}

.pdf-card .list_inner .pdf-preview canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bilgi bölümünü güncelle */
.pdf-card .list_inner .info {
    padding: 20px;
}

.pdf-card .list_inner .title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pdf-card .list_inner .text {
    margin-bottom: 15px;
}

/* Butonları güncelle */
.pdf-card .list_inner .buttons {
    display: flex;
    gap: 10px;
}

/* Responsive düzenlemeler */
@media (max-width: 1200px) {
    .document-grid {
        grid-template-columns: repeat(3, 220px);
    }
}

@media (max-width: 900px) {
    .document-grid {
        grid-template-columns: repeat(2, 220px);
    }
}

@media (max-width: 600px) {
    .document-grid {
        grid-template-columns: repeat(1, 250px);
    }
    
    #documentContainer {
        padding: 10px;
        gap: 30px;
    }
    
    .subcategory-section {
        gap: 20px;
    }
}

/* Sayfa geçiş efektleri için animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Kategori geçişleri için animasyon */
.category {
    transition: all 0.3s ease;
}

.category.active {
    background: #E31E24;
    transform: none;
}

/* Başlık animasyonu */
.title-text {
    animation: fadeIn 0.3s ease-out;
}

/* Başlık hover rengini güncelle */
.pdf-card .list_inner .title:hover {
    color: #E31E24;
}

/* Diğer mavi vurgular varsa onları da güncelle */
::selection {
    background: #E31E24;
    color: #fff;
}

.en {
    font-size: 0.9em;
    color: #718096;
    margin-top: 5px;
    display: block;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-preview canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Yükleme sırasında veya hata durumunda gösterilecek ikon için stil */
.pdf-icon {
    font-size: 48px;
    color: #dc2626;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 14px;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.pdf-preview canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mobil menü butonu */
.mobile-menu-button {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    color: #fff;
}

.mobile-menu-button i {
    font-size: 20px;
}

/* Scrollbar stilleri */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive düzenlemeler */
@media (max-width: 1024px) {
    .mobile-menu-button {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Ana içerik alanı */
    #documentContainer {
        margin-left: 0;
        padding: 20px;
        padding-top: 70px; /* Menü butonu için üst boşluk */
    }
}

/* Mobil menü overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Küçük ekranlar için ek düzenlemeler */
@media (max-width: 640px) {
    .sidebar {
        width: 260px;
    }

.content {
    margin-left: 0px;
 }

    .category {
        padding: 12px 15px;
    }

    .category i {
        font-size: 18px;
    }

    .category-text .tr {
        font-size: 14px;
    }

    .category-text .en {
        font-size: 11px;
    }
} 