/* Downloads catalog: app tiles, ISO groups, search/filter toolbar */

.catalog-checked {
    margin: 16px 0 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.catalog-checked time {
    font-weight: 650;
    color: var(--text-primary);
}

.downloads-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.downloads-hero-actions a {
    color: var(--cyber-blue);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.08);
}

.downloads-hero-actions a:hover {
    border-color: var(--cyber-blue);
    background: rgba(0, 212, 255, 0.16);
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin: 0 0 28px;
}

.catalog-search {
    flex: 1 1 240px;
    min-width: 200px;
    font: inherit;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
}

.catalog-search:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: var(--text-primary);
    border-color: var(--cyber-blue);
    background: rgba(0, 212, 255, 0.14);
}

.filter-chip.is-active {
    color: var(--text-primary);
}

.catalog-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 10px 24px;
}

.downloads-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 28px 24px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.downloads-container + .downloads-container {
    margin-top: 28px;
}

.pane-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--text-primary);
}

.app-group {
    margin-bottom: 28px;
}

.app-group:last-child {
    margin-bottom: 0;
}

.app-group-title,
.iso-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--text-secondary);
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}

.iso-group-title img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.app-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.app-tile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: #1e293b;
    border: 2px solid transparent;
    border-radius: 14px;
    color: var(--text-primary);
    min-width: 0;
}

.app-tile-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-pick {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.app-pick input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--cyber-blue);
    cursor: pointer;
}

.app-dl-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-dl-row.is-checked .app-dl {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.25);
}

.app-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.app-logo-fa {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--cyber-blue);
}

.app-tile-titles h3 {
    font-size: 1.08rem;
    font-weight: 650;
    margin: 0 0 2px;
    line-height: 1.3;
}

.app-tile-cat {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.app-tile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.app-dl {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--glass-border);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex: 1;
    min-width: 0;
}

.app-dl:hover {
    border-color: var(--cyber-blue);
    transform: translateX(3px);
}

.app-dl i {
    width: 1.1em;
    text-align: center;
    color: var(--cyber-blue);
    flex-shrink: 0;
}

.app-dl-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.app-dl-label {
    font-weight: 650;
    font-size: 0.92rem;
}

.app-dl-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-grid {
    display: grid;
    gap: 12px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    background: #1e293b;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid transparent;
}

.download-item:hover {
    background: white;
    color: #1e293b;
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.download-item:hover .file-size {
    color: #1e293b;
    background: #f1f5f9;
}

.download-item:hover .download-info p {
    color: #475569;
}

.download-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}

.download-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.download-info {
    min-width: 0;
}

.download-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.file-size {
    font-size: 0.78rem;
    color: #1e293b;
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.iso-group {
    margin-bottom: 22px;
}

.iso-group:last-child {
    margin-bottom: 0;
}

.tools-note {
    text-align: center;
    color: var(--text-secondary);
    margin: -8px 0 24px;
    font-size: 0.95rem;
}

.tools-note a {
    color: var(--cyber-blue);
    text-decoration: none;
    font-weight: 600;
}

.tools-note a:hover {
    text-decoration: underline;
}

.tools-empty {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 8px 10px 16px;
    margin: 0;
}

.tools-empty code {
    font-size: 0.85em;
    color: var(--cyber-blue);
}

.bulk-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 950;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    min-width: min(640px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 12px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.bulk-bar[hidden] {
    display: none;
}

.bulk-bar-status {
    margin: 0;
    font-weight: 650;
    color: var(--text-primary);
}

.bulk-bar-actions {
    display: flex;
    gap: 8px;
}

.bulk-btn {
    font: inherit;
    font-weight: 650;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

.bulk-btn-primary {
    background: rgba(0, 212, 255, 0.16);
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
}

.bulk-btn:hover,
.bulk-btn-primary:hover {
    border-color: var(--cyber-blue);
}

.bulk-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

body.bulk-active {
    padding-bottom: 96px;
}

@media (max-width: 768px) {
    .downloads-container {
        padding: 20px 14px 24px;
    }

    .app-tile-grid {
        grid-template-columns: 1fr;
    }

    .download-item {
        flex-wrap: wrap;
    }

    .file-size {
        margin-left: 65px;
    }

    .app-dl .file-size {
        margin-left: auto;
    }
}

#apps,
#isos {
    scroll-margin-top: 110px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
