/* ============================================
   DOWNLOADS SEITE - ELEGANT & MODERN
   ============================================ */

.downloads-page {
    background: #f8fafc;
}

.downloads-container {
    padding: 4rem 0;
}

/* ============================================
   TOOLBAR
   ============================================ */

.downloads-toolbar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

/* Search */
.downloads-search {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    align-items: center;
}

.downloads-search-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.downloads-search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 2.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 0.938rem;
    color: #1a202c;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.downloads-search-input:focus {
    outline: none;
    border-color: #0096ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.1);
}

.downloads-search-input::placeholder {
    color: #94a3b8;
}

.downloads-search-clear {
    position: absolute;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.downloads-search-clear:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

/* Meta Info */
.downloads-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.downloads-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(0, 150, 255, 0.08);
    color: #0096ff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.downloads-meta-badge i {
    font-size: 1rem;
}

.downloads-meta-badge--secure {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.downloads-empty {
    background: #ffffff;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
}

.downloads-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(0, 150, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #0096ff;
}

.downloads-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.75rem 0;
}

.downloads-empty-text {
    font-size: 1rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   DOWNLOADS GRID
   ============================================ */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   DOWNLOAD CARD
   ============================================ */

.download-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.2s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.download-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.download-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.download-type-badge--pdf {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.download-type-badge--word {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.download-type-badge--excel {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.download-type-badge--powerpoint {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.download-type-badge--image {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.download-type-badge--archive {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.download-type-badge--text {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.download-type-badge--default {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.download-type-badge i {
    font-size: 1rem;
}

.download-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.813rem;
    color: #94a3b8;
    font-weight: 600;
}

.download-date i {
    font-size: 0.875rem;
}

/* Card Body */
.download-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0, 150, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #0096ff;
}

.download-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
}

.download-description {
    font-size: 0.938rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.download-description--muted {
    color: #94a3b8;
    font-style: italic;
}

/* Card Footer */
.download-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.download-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
    font-weight: 600;
}

.download-size i {
    color: #94a3b8;
    font-size: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #0096ff;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.938rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 150, 255, 0.25);
}

.download-btn:hover {
    background: #0077cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 150, 255, 0.35);
    color: #ffffff;
}

.download-btn i {
    font-size: 1rem;
}

/* ============================================
   PAGINATION
   ============================================ */

.downloads-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.downloads-pagination .pagination {
    gap: 0.5rem;
}

.downloads-pagination .page-link {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #4a5568;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.downloads-pagination .page-link:hover {
    background: #0096ff;
    border-color: #0096ff;
    color: #ffffff;
}

.downloads-pagination .page-item.active .page-link {
    background: #0096ff;
    border-color: #0096ff;
    color: #ffffff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .downloads-container {
        padding: 3rem 0;
    }

    .downloads-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .downloads-search {
        min-width: 100%;
    }

    .downloads-meta {
        justify-content: center;
    }

    .downloads-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .downloads-container {
        padding: 2rem 0;
    }

    .downloads-toolbar {
        padding: 1.25rem;
    }

    .downloads-search-input {
        padding: 0.75rem 2.75rem 0.75rem 2.5rem;
        font-size: 0.875rem;
    }

    .downloads-meta {
        flex-direction: column;
    }

    .downloads-meta-badge {
        width: 100%;
        justify-content: center;
    }

    .downloads-empty {
        padding: 3rem 1.5rem;
    }

    .downloads-empty-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .downloads-empty-title {
        font-size: 1.25rem;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 1.25rem;
    }

    .download-card-header {
        flex-wrap: wrap;
    }

    .download-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .download-size {
        justify-content: center;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .downloads-toolbar {
        padding: 1rem;
    }

    .downloads-search-input {
        padding: 0.625rem 2.5rem 0.625rem 2.25rem;
    }

    .downloads-search-icon {
        left: 0.75rem;
        font-size: 0.938rem;
    }

    .download-card {
        padding: 1rem;
    }

    .download-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .download-title {
        font-size: 1rem;
    }

    .download-description {
        font-size: 0.875rem;
    }

    .download-type-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .download-type-badge i {
        font-size: 0.875rem;
    }

    .download-date {
        font-size: 0.75rem;
    }
}