/* ======================================
   FiberOxy - Dosyalar Sayfası CSS
   ====================================== */

/* Files Hero */
.files-hero {
    padding: 140px 60px 60px;
    text-align: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.files-hero-content {
    position: relative;
    z-index: 1;
}

.files-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 255, 0, 0.1);
    border: 1px solid rgba(192, 255, 0, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #c0ff00;
    margin-bottom: 20px;
    animation: slideUp 0.6s ease-out both;
}

.files-hero .hero-badge svg {
    stroke: #c0ff00;
}

.files-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -2px;
    animation: slideUp 0.6s ease-out 0.1s both;
}

.files-hero h1 .highlight {
    background: linear-gradient(135deg, #c0ff00 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.files-hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto;
    animation: slideUp 0.6s ease-out 0.2s both;
}

/* Search & Filters */
.files-controls {
    padding: 0 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.files-controls-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: rgba(192, 255, 0, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 30px rgba(192, 255, 0, 0.08);
}

.search-icon {
    stroke: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

.search-box:focus-within .search-icon {
    stroke: #c0ff00;
}

.search-box input {
    width: 100%;
    padding: 18px 16px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-clear {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear svg {
    stroke: rgba(255, 255, 255, 0.5);
}

.search-clear:hover {
    background: rgba(192, 255, 0, 0.15);
}

.search-clear:hover svg {
    stroke: #c0ff00;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cat-btn:hover {
    border-color: rgba(192, 255, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(192, 255, 0, 0.05);
}

.cat-btn.active {
    background: linear-gradient(135deg, rgba(192, 255, 0, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-color: rgba(192, 255, 0, 0.4);
    color: #c0ff00;
    box-shadow: 0 0 20px rgba(192, 255, 0, 0.1);
}

.cat-btn svg {
    stroke: currentColor;
}

/* Files Section */
.files-section {
    padding: 0 60px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.files-info {
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Loading */
.files-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(192, 255, 0, 0.15);
    border-top-color: #c0ff00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.files-empty {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.files-empty svg {
    stroke: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.files-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.files-empty p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* File Card */
.file-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.5s ease-out forwards;
}

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

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 255, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.file-card:hover {
    transform: translateY(-6px);
    border-color: rgba(192, 255, 0, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(192, 255, 0, 0.06);
}

.file-card:hover::before {
    opacity: 1;
}

.file-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(192, 255, 0, 0.12) 0%, rgba(0, 255, 136, 0.08) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.file-icon svg {
    stroke: #c0ff00;
}

.file-card:hover .file-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(192, 255, 0, 0.2);
}

.file-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(192, 255, 0, 0.08);
    border: 1px solid rgba(192, 255, 0, 0.15);
    color: #c0ff00;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.file-card-body {
    flex: 1;
}

.file-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
    word-break: break-word;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.file-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.file-meta-item svg {
    stroke: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.file-card-footer {
    margin-top: auto;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, rgba(192, 255, 0, 0.12) 0%, rgba(0, 255, 136, 0.08) 100%);
    border: 1px solid rgba(192, 255, 0, 0.2);
    color: #c0ff00;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    background: linear-gradient(135deg, #c0ff00 0%, #00ff88 100%);
    color: #000000;
    box-shadow: 0 0 30px rgba(192, 255, 0, 0.3);
    transform: translateY(-2px);
}

.download-btn svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.download-btn:hover svg {
    transform: translateY(2px);
}

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

/* ======================================
   Responsive
   ====================================== */
@media (max-width: 768px) {
    .files-hero {
        padding: 120px 24px 40px;
    }
    
    .files-hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .files-hero-desc {
        font-size: 15px;
    }
    
    .files-controls {
        padding: 0 24px 30px;
    }
    
    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .category-filters::-webkit-scrollbar {
        display: none;
    }
    
    .files-section {
        padding: 0 24px 60px;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .file-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .files-hero {
        padding: 100px 20px 30px;
    }
    
    .files-controls {
        padding: 0 20px 24px;
    }
    
    .files-section {
        padding: 0 20px 40px;
    }
    
    .cat-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .file-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}
