/* Styles pour la page de profil */

.profile-header {
    background: linear-gradient(135deg, #2E8B57, #228B22);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.3);
}

.profile-header-content {
    padding: 2rem;
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.profile-image-edit:hover {
    transform: scale(1.1);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-location {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 100px;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.profile-container {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.profile-tabs {
    border: none;
    background: transparent;
}

.profile-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.profile-tabs .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.profile-tabs .nav-link.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.profile-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tab-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.articles-list, .documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item {
    background: var(--card-background);
    color: var(--text-color);
    border: none;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.dark-mode .article-item {
    background: var(--dark-card-bg) !important;
    color: var(--dark-text-primary) !important;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.draft-badge {
    background: linear-gradient(45deg, var(--warning-color), #fbbf24);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.document-item {
    display: flex;
    align-items: center;
    background: var(--card-background);
    color: var(--text-color);
    border: none;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.dark-mode .document-item {
    background: var(--dark-card-bg) !important;
    color: var(--dark-text-primary) !important;
}

.document-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.document-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 1rem;
}

.document-info {
    flex: 1;
}

.document-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light-text-primary);
}

.document-description {
    color: var(--light-text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

body.dark-mode .document-title,
body.dark-mode .document-description {
    color: var(--dark-text-primary) !important;
}

.document-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.document-type {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.7rem;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

.about-section {
    padding: 1rem;
}

.about-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    margin-bottom: 1.5rem;
}

.about-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.about-label {
    width: 150px;
    font-weight: 500;
    color: var(--text-light);
}

.about-value {
    flex: 1;
    color: var(--text-color);
}

.no-articles, .no-documents {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-header-content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Styles pour le mode sombre */
body.dark-mode .profile-container,
body.dark-mode .article-item,
body.dark-mode .document-item,
body.dark-mode .no-articles,
body.dark-mode .no-documents {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
}

body.dark-mode .profile-header {
    background: linear-gradient(135deg, #1a4d35, #1a3d2e);
}

body.dark-mode .profile-header {
    border-bottom-color: var(--dark-border);
}

body.dark-mode .profile-name,
body.dark-mode .profile-title,
body.dark-mode .document-title,
body.dark-mode .document-description {
    color: var(--dark-text);
}

body.dark-mode .profile-location,
body.dark-mode .stat-label,
body.dark-mode .document-meta {
    color: var(--dark-text-light);
}

body.dark-mode .profile-tabs .nav-link {
    color: var(--dark-text-light);
}

body.dark-mode .profile-tabs .nav-link:hover {
    color: var(--primary-color);
}

body.dark-mode .profile-tabs .nav-link.active {
    background: var(--dark-card-bg);
    color: var(--primary-color);
}