/**
 * User Comments Manager - Styles
 * Un design moderne et épuré avec des accents bleus
 */

.ucm-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.ucm-header {
    margin-bottom: 30px;
}

.ucm-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ucm-title .ucm-icon {
    width: 36px;
    height: 36px;
    color: #084CAA;
}

/* Login Notice */
.ucm-login-notice {
    background: linear-gradient(135deg, #084CAA 0%, #053570 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(8, 76, 170, 0.3);
}

.ucm-login-notice .ucm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.ucm-login-notice h3 {
    font-size: 28px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.ucm-login-notice p {
    font-size: 16px;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

/* Buttons */
.ucm-button {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #084CAA;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ucm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #053570;
}

.ucm-button-secondary {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ucm-button-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Filters */
.ucm-filters {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: 1px solid #f3f4f6;
}

.ucm-search-box {
    position: relative;
    margin-bottom: 20px;
}

.ucm-search-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ucm-search-input:focus {
    outline: none;
    border-color: #084CAA;
    box-shadow: 0 0 0 3px rgba(8, 76, 170, 0.1);
}

.ucm-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.ucm-filter-group {
    flex: 1;
    min-width: 150px;
}

.ucm-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.ucm-select,
.ucm-date-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: white;
}

.ucm-select:focus,
.ucm-date-input:focus {
    outline: none;
    border-color: #084CAA;
    box-shadow: 0 0 0 3px rgba(8, 76, 170, 0.1);
}

.ucm-icon-small {
    width: 16px;
    height: 16px;
}

/* Stats */
.ucm-stats {
    padding: 16px 0;
    margin-bottom: 20px;
}

.ucm-stats-text {
    font-size: 15px;
    color: #6b7280;
}

.ucm-stats-text strong {
    color: #084CAA;
    font-weight: 600;
}

/* Loading */
.ucm-loading {
    text-align: center;
    padding: 60px 20px;
}

.ucm-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f4f6;
    border-top-color: #084CAA;
    border-radius: 50%;
    animation: ucm-spin 0.8s linear infinite;
}

@keyframes ucm-spin {
    to { transform: rotate(360deg); }
}

.ucm-loading p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Comments List */
.ucm-comments-list {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.ucm-comment-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ucm-comment-card:hover {
    border-color: #084CAA;
    box-shadow: 0 4px 12px rgba(8, 76, 170, 0.1);
    transform: translateY(-2px);
}

.ucm-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ucm-comment-post {
    flex: 1;
    min-width: 200px;
}

.ucm-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #084CAA;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.ucm-post-title:hover {
    color: #053570;
    text-decoration: underline;
}

.ucm-comment-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.ucm-date-icon {
    width: 14px;
    height: 14px;
}

.ucm-comment-content {
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #084CAA;
}

.ucm-comment-footer {
    display: flex;
    justify-content: flex-end;
}

.ucm-view-comment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff !important;
    color: #084CAA !important;
    text-decoration: none !important;
    border: 2px solid #084CAA !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ucm-view-comment:hover {
    background: #084CAA !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-color: #084CAA !important;
    transform: translateX(2px);
}

.ucm-view-comment:visited,
.ucm-view-comment:active,
.ucm-view-comment:focus {
    color: #084CAA !important;
    text-decoration: none !important;
}

.ucm-view-comment:hover:visited,
.ucm-view-comment:hover:active,
.ucm-view-comment:hover:focus {
    color: #ffffff !important;
}

.ucm-arrow-icon {
    width: 14px;
    height: 14px;
}

/* Empty State */
.ucm-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.ucm-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: #d1d5db;
}

.ucm-empty-state h3 {
    font-size: 22px;
    color: #374151;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.ucm-empty-state p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Pagination */
.ucm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.ucm-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ucm-page-btn:hover:not(:disabled) {
    border-color: #084CAA;
    color: #084CAA;
    background: #E8F1FA;
}

.ucm-page-btn.active {
    background: #084CAA;
    color: white;
    border-color: #084CAA;
}

.ucm-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ucm-page-info {
    padding: 0 12px;
    font-size: 14px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .ucm-container {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .ucm-title {
        font-size: 24px;
    }
    
    .ucm-title .ucm-icon {
        width: 28px;
        height: 28px;
    }
    
    .ucm-filters {
        padding: 16px;
    }
    
    .ucm-filter-controls {
        flex-direction: column;
    }
    
    .ucm-filter-group {
        width: 100%;
    }
    
    .ucm-comment-card {
        padding: 16px;
    }
    
    .ucm-comment-header {
        flex-direction: column;
    }
    
    .ucm-login-notice {
        padding: 40px 24px;
    }
    
    .ucm-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .ucm-page-btn {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }
}
