/**
 * WSS Descargas - Styles
 * Version: 1.1.0
 */

/* ==========================================================================
   Variables (se sobreescriben desde PHP con el color del shortcode)
   ========================================================================== */
:root {
    --wss-descargas-color: #009ee2;
}

/* ==========================================================================
   Wrapper
   ========================================================================== */
.wss-descargas-wrapper {
    border: 1px solid #e5e5e5;
    padding: 16px;
    margin: 20px 0;
    background: #fff;
}

/* ==========================================================================
   Filters
   ========================================================================== */
.wss-descargas-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.wss-descargas-filters label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.wss-descargas-filters select,
.wss-descargas-filters input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.wss-descargas-filters .wss-descargas-submit {
    align-self: end;
}

.wss-descargas-filters .wss-descargas-submit button {
    padding: 10px 14px;
    background: var(--wss-descargas-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.wss-descargas-filters .wss-descargas-submit button:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Results
   ========================================================================== */
.wss-descargas-results .wss-item {
    border: 1px solid #e5e5e5;
    border-left: 4px solid var(--wss-descargas-color);
    padding: 12px;
    margin-bottom: 12px;
    background: #fafafa;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.wss-descargas-results .wss-item-content {
    flex: 1;
    min-width: 200px;
}

.wss-descargas-results .wss-item h4 {
    margin: 0 0 8px 0;
}

.wss-descargas-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */
.wss-descargas-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wss-descargas-actions .wss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--wss-descargas-color);
    border-radius: 30px;
    background: transparent;
    color: var(--wss-descargas-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wss-descargas-actions .wss-btn:hover {
    background: var(--wss-descargas-color);
    color: #fff;
}

.wss-descargas-actions .wss-btn:hover .wss-btn-icon {
    background: #fff;
    color: var(--wss-descargas-color);
}

.wss-descargas-actions .wss-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wss-descargas-color);
    color: #fff;
    font-size: 12px;
    transition: all 0.2s ease;
}

/* ==========================================================================
   No Results
   ========================================================================== */
.wss-descargas-no-results {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.wss-descargas-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wss-descargas-pagination a,
.wss-descargas-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
}

.wss-descargas-pagination a:hover {
    border-color: var(--wss-descargas-color);
    color: var(--wss-descargas-color);
}

.wss-descargas-pagination .wss-pag-current {
    background: var(--wss-descargas-color);
    border-color: var(--wss-descargas-color);
    color: #fff;
    font-weight: 600;
}

.wss-descargas-pagination .wss-pag-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wss-descargas-pagination .wss-pag-info {
    border: none;
    background: transparent;
    font-size: 13px;
    color: #666;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .wss-descargas-results .wss-item {
        flex-direction: column;
    }

    .wss-descargas-actions {
        width: 100%;
        justify-content: flex-start;
    }
}