/* ForbiddeNexus - Dosyalar Sayfası CSS */

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c0392b;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #121212;
    --gray-color: #95a5a6;
    --border-color: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --bg-gradient: linear-gradient(to right, #2c3e50, #1a1a2e);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: white;
    background-image: url('https://admin.forbiddenexus.com/assets/785ec0d9-d5fb-4946-8de7-3c1c3d631323');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a93226;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Ana İçerik Düzeni - ESKİ HALİNE GETİRİLDİ */
.main-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 90px;
    margin-bottom: 50px;
    max-width: 1200px;
    background-color: rgba(50, 50, 50, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Dosyalar Başlık - Sadece Title, Sol Hizalı */
.files-title {
    font-size: 2.5rem;
    color: whitesmoke;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.files-title i {
    color: var(--primary-color);
    padding-right: 1rem;
}

.files-header {
    margin-bottom: 10px;
    text-align: center;
    padding: 1rem;
    background-color: #121212;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* YENİ: Filter/Search Section */
.files-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.filter-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.filter-sort {
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.7);
}

.filter-select option {
    background: #222;
    color: white;
}

/* Dosya Olmadığında - GELİŞTİRİLDİ */
.no-files {
    text-align: center;
    padding: 60px 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    color: white;
}

.no-files-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-files h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.no-files p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #ccc;
}

/* YENİ: No Results (Arama sonucu bulunamadı) */
.no-results {
    text-align: center;
    padding: 60px 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px dashed rgba(192, 57, 43, 0.3);
    color: white;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.no-results p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #ccc;
}

/* Dosya Kartları Düzeni - FİX: Flex Direction */
.files-container {
    margin-bottom: 40px;
}

.files-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.file-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.file-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(192, 57, 43, 0.2);
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(192, 57, 43, 0.3);
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #e74c3c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.file-card:hover::before {
    transform: scaleX(1);
}

.file-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px; /* SABİT YÜKSEKLIK */
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.file-card:hover .file-icon {
    transform: scale(1.1) rotate(5deg);
}

.file-card:hover .file-icon i {
    color: #e74c3c;
}

/* YENİ: File Badge */
.file-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.file-content {
    flex: 1;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
}

.file-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.file-title a {
    color: #ffffff;
    transition: all 0.3s ease;
    display: block;
}

.file-title a:hover {
    color: var(--primary-color);
}

.file-description {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.fas.fa-search {
    color: white;
}

/* Scrollbar Stilleri */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #a93226;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c0392b;
    border-radius: 10px;
    border: 2px solid #a93226;
}

::-webkit-scrollbar-thumb:hover {
    background: #000;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #000 #a93226;
}

/* YENİ: Animasyon States */
.file-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* YENİ: Focus States (Accessibility) */
.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.file-title a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.file-action-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Duyarlı Tasarım */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
        margin-top: 90px;
        padding: 20px;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .files-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .files-title {
        font-size: 2rem;
        gap: 10px;
    }
    
    .files-filter {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-item,
    .filter-sort {
        min-width: auto;
    }
    
    .files-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .file-card {
        padding: 15px;
        /* MOBILE'DA DA ROW LAYOUT KORUYALIM */
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    
    .file-icon {
        margin-right: 15px;
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .file-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
        margin-top: 80px;
    }
    
    .files-title {
        font-size: 1.5rem;
    }
    
    .file-card {
        padding: 12px;
    }
    
    .file-title {
        font-size: 1.1rem;
    }
    
    .file-description {
        font-size: 0.85rem;
    }
    
    .file-action-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}