/* ============================================================
   FindAndWorks — Page profil
   ============================================================ */

.profile-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.profile-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.profile-cover {
    height: 150px;
    background: var(--grad);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--card);
    background-size: cover;
    background-position: center;
    margin-top: -60px;
    margin-left: 2rem;
    margin-bottom: 1rem;
    background-color: var(--bg2);
}

.profile-info {
    padding: 0 2rem 2rem;
}

.profile-info h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.profile-company {
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.profile-location {
    color: var(--muted);
    margin-bottom: 1rem;
}

.profile-location i {
    margin-right: 0.5rem;
    color: var(--blue);
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
}

.stars i {
    margin-right: 0.2rem;
}

.rating-count {
    color: var(--muted);
}

.profile-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Tabs */
.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--muted);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab-btn i {
    margin-right: 0.5rem;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--text);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Sections */
.profile-description,
.profile-details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-description h3,
.profile-details h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.profile-description p {
    color: var(--muted);
    line-height: 1.8;
}

.profile-details p {
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-details i {
    color: var(--blue);
    width: 20px;
}

/* Grille d'offres */
.offers-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.offer-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.offer-item:hover {
    border-color: var(--blue);
}

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

.offer-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.offer-type.offer {
    background: var(--blue);
    color: white;
}

.offer-type.request {
    background: var(--teal);
    color: white;
}

.offer-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
}

.offer-item h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.offer-item p {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-item-footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.85rem;
}

.offer-price {
    color: var(--teal);
    font-weight: 700;
}

/* Ratings */
.ratings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rating-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

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

.rating-stars {
    color: #ffc107;
}

.rating-date {
    color: var(--muted);
    font-size: 0.85rem;
}

.rating-comment {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.rating-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.rating-meta a {
    color: var(--blue);
    text-decoration: none;
}

/* No items */
.no-items {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.no-items i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--blue);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.warning-icon {
    text-align: center;
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.warning-text {
    text-align: center;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .profile-actions {
        position: static;
        padding: 0 2rem 2rem;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .offers-grid-small {
        grid-template-columns: 1fr;
    }
}