/* ShapedPlugin Support List - Compact Styles */
.spl-support-list {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 1.5rem 0;
}

/* Header */
.spl-list-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spl-header-number,
.spl-header-plugin,
.spl-header-compatibility,
.spl-header-updated,
.spl-header-installs,
.spl-header-support,
.spl-header-action {
    padding: 0 0.5rem;
}

.spl-header-number {
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.spl-header-plugin {
    flex: 3;
    min-width: 200px;
}

.spl-header-compatibility {
    width: 120px;
    flex-shrink: 0;
}

.spl-header-updated {
    width: 100px;
    flex-shrink: 0;
}

.spl-header-installs {
    width: 90px;
    flex-shrink: 0;
}

.spl-header-support {
    flex: 2;
    min-width: 150px;
}

.spl-header-action {
    width: 100px;
    flex-shrink: 0;
    text-align: center;
}

/* Body */
.spl-list-body {
    background: #f8fafc;
}

.spl-support-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
}

.spl-support-item:last-child {
    border-bottom: none;
}

.spl-support-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

/* Status Background Colors */
.spl-support-item.spl-status-all-resolved {
    background: #f0fdf4;
}

.spl-support-item.spl-status-all-resolved:hover {
    background: #dcfce7;
}

.spl-support-item.spl-status-has-issues {
    background: #fef2f2;
}

.spl-support-item.spl-status-has-issues:hover {
    background: #fee2e2;
}

/* Cells */
.spl-cell {
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

.spl-number {
    width: 50px;
    justify-content: center;
    flex-shrink: 0;
}

.spl-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

.spl-plugin-info {
    flex: 3;
    min-width: 200px;
}

.spl-compatibility {
    width: 120px;
    flex-shrink: 0;
}

.spl-updated {
    width: 100px;
    flex-shrink: 0;
}

.spl-installs {
    width: 90px;
    flex-shrink: 0;
}

.spl-support-status {
    flex: 2;
    min-width: 150px;
}

.spl-action {
    width: 100px;
    flex-shrink: 0;
    justify-content: center;
}

/* Plugin Info */
.spl-plugin-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spl-plugin-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.spl-plugin-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: white;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.spl-icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
}

.spl-plugin-details {
    flex: 1;
    min-width: 0;
}

.spl-plugin-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.spl-plugin-version {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.spl-plugin-slug {
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* Compatibility */
.spl-wp-version {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spl-wp-min {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f2937;
}

.spl-wp-tested {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Updated Time */
.spl-update-time {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

/* Installs */
.spl-installs-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
}

/* Support Status */
.spl-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.spl-status-ok {
    background: #dcfce7;
    color: #166534;
}

.spl-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.spl-status-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.spl-status-good i {
    color: #10b981;
}

.spl-status-bad i {
    color: #dc2626;
}

.spl-support-stats {
    margin-top: 0.5rem;
}

.spl-support-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spl-progress-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.spl-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.spl-status-all-resolved .spl-progress-fill {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.spl-status-has-issues .spl-progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.spl-progress-text {
    font-size: 0.75rem;
    color: #6b7280;
    min-width: 60px;
}

/* Support Button */
.spl-support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.spl-support-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

/* Footer */
.spl-list-footer {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.spl-footer-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.spl-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.spl-stat-label {
    color: #6b7280;
}

.spl-stat-value {
    font-weight: 600;
    color: #1f2937;
}

.spl-stat-good {
    color: #10b981;
}

.spl-stat-bad {
    color: #dc2626;
}

/* Refresh Button */
.spl-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spl-refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spl-refresh-button:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.spl-refresh-button.loading i {
    animation: spin 1s linear infinite;
}

.spl-refresh-status {
    font-size: 0.75rem;
    color: #6b7280;
}

.spl-refresh-status.success {
    color: #10b981;
}

.spl-refresh-status.error {
    color: #dc2626;
}

/* Compact Mode */
.spl-support-list.spl-compact-mode .spl-list-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.spl-support-list.spl-compact-mode .spl-support-item {
    padding: 0.5rem 0.75rem;
}

.spl-support-list.spl-compact-mode .spl-plugin-icon {
    width: 28px;
    height: 28px;
}

.spl-support-list.spl-compact-mode .spl-plugin-name {
    font-size: 0.875rem;
}

.spl-support-list.spl-compact-mode .spl-plugin-slug,
.spl-support-list.spl-compact-mode .spl-wp-tested,
.spl-support-list.spl-compact-mode .spl-progress-text {
    display: none;
}

.spl-support-list.spl-compact-mode .spl-status-indicator {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.spl-support-list.spl-compact-mode .spl-support-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-width: 70px;
}

.spl-support-list.spl-compact-mode .spl-support-button span {
    display: none;
}

.spl-support-list.spl-compact-mode .spl-support-button i {
    margin: 0;
}

/* Error States */
.spl-error,
.spl-no-plugins {
    padding: 1.5rem;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    margin: 1rem 0;
}

.spl-error i,
.spl-no-plugins i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.spl-no-plugins {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.spl-support-item {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .spl-header-installs,
    .spl-installs,
    .spl-plugin-slug {
        display: none;
    }
    
    .spl-header-installs {
        width: 0;
    }
    
    .spl-installs {
        width: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .spl-list-header {
        display: none;
    }
    
    .spl-support-item {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .spl-cell {
        padding: 0;
    }
    
    .spl-number {
        order: 1;
        width: 40px;
    }
    
    .spl-plugin-info {
        order: 2;
        flex: 1;
        min-width: 0;
    }
    
    .spl-compatibility {
        order: 3;
        width: auto;
        justify-content: flex-start;
    }
    
    .spl-updated {
        order: 4;
        width: auto;
        margin-left: auto;
    }
    
    .spl-support-status {
        order: 5;
        flex: 1 0 100%;
        margin-top: 0.5rem;
        min-width: 0;
    }
    
    .spl-action {
        order: 6;
        width: auto;
        margin-left: auto;
    }
    
    .spl-list-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.75rem;
    }
    
    .spl-footer-stats {
        justify-content: center;
    }
    
    .spl-footer-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .spl-updated {
        display: none;
    }
    
    .spl-support-list.spl-compact-mode .spl-compatibility {
        display: none;
    }
    
    .spl-support-button span {
        display: none;
    }
    
    .spl-support-button {
        padding: 0.5rem;
        min-width: auto;
        width: 40px;
        justify-content: center;
    }
    
    .spl-support-button i {
        margin: 0;
    }
}

/* Print Styles */
@media print {
    .spl-support-button,
    .spl-refresh-button,
    .spl-footer-actions {
        display: none !important;
    }
    
    .spl-support-list {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .spl-list-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
}