/* Styles pour le front-end */
.ia-chrome-ext-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ia-chrome-ext-header {
    text-align: center;
    margin-bottom: 40px;
}

.ia-chrome-ext-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}

.ia-chrome-ext-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ia-chrome-ext-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.ia-chrome-ext-search {
    flex: 1;
    min-width: 300px;
}

.ia-chrome-ext-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ia-chrome-ext-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ia-chrome-ext-category-filter {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.ia-chrome-ext-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.ia-chrome-ext-table {
    width: 100%;
    border-collapse: collapse;
}

.ia-chrome-ext-table thead {
    background: #f8fafc;
}

.ia-chrome-ext-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.ia-chrome-ext-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.3s ease;
}

.ia-chrome-ext-table th.sortable:hover {
    background: #e2e8f0;
}

.ia-chrome-ext-table th.sortable::after {
    content: '↕️';
    margin-left: 8px;
    opacity: 0.5;
}

.ia-chrome-ext-table th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.ia-chrome-ext-table th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

.ia-chrome-ext-row {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.ia-chrome-ext-row:hover {
    background: #f8fafc;
}

.ia-chrome-ext-row.hidden {
    display: none;
}

.ia-chrome-ext-row td {
    padding: 16px 12px;
    vertical-align: middle;
}

.ia-chrome-ext-rank {
    font-weight: 600;
    color: #2563eb;
    text-align: center;
    width: 60px;
}

.ia-chrome-ext-name {
    min-width: 250px;
}

.ia-chrome-ext-name-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ia-chrome-ext-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.ia-chrome-ext-info {
    flex: 1;
    min-width: 0;
}

.ia-chrome-ext-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.ia-chrome-ext-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ia-chrome-ext-users {
    font-weight: 600;
    color: #059669;
    text-align: center;
    width: 100px;
}

.ia-chrome-ext-rating {
    width: 120px;
}

.ia-chrome-ext-rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ia-chrome-ext-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.ia-chrome-ext-rating-text {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

.ia-chrome-ext-category {
    width: 150px;
}

.ia-chrome-ext-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}

.ia-chrome-ext-updated {
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    width: 100px;
}

.ia-chrome-ext-actions {
    width: 140px;
    text-align: center;
}

.ia-chrome-ext-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.ia-chrome-ext-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ia-chrome-ext-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.ia-chrome-ext-page-button {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ia-chrome-ext-page-button:hover {
    background: #f8fafc;
    border-color: #2563eb;
}

.ia-chrome-ext-page-button.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.ia-chrome-ext-page-info {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 15px;
}

.ia-chrome-ext-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .ia-chrome-ext-title {
        font-size: 2rem;
    }
    
    .ia-chrome-ext-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .ia-chrome-ext-table th:nth-child(3),
    .ia-chrome-ext-table th:nth-child(5),
    .ia-chrome-ext-table th:nth-child(6),
    .ia-chrome-ext-table td:nth-child(3),
    .ia-chrome-ext-table td:nth-child(5),
    .ia-chrome-ext-table td:nth-child(6) {
        display: none;
    }
    
    .ia-chrome-ext-description {
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 480px) {
    .ia-chrome-ext-table th:nth-child(1),
    .ia-chrome-ext-table td:nth-child(1) {
        display: none;
    }
}
