/* ============================================= */
/* --- ARQUIVO FINAL: perfil.css --- */
/* ============================================= */

.profile-page {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Cabeçalho do Perfil */
.profile-header {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.profile-header__avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--white-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.profile-header__info h1 {
    font-family: var(--font-headings);
    font-size: 2.8rem;
    color: var(--white-color);
    margin: 0 0 5px 0;
}
.profile-header__info p {
    font-size: 1.2rem;
    color: var(--light-color);
    opacity: 0.9;
    margin: 0;
}
.profile-header__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 1rem;
}
.profile-header__actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.profile-header__actions .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* Layout principal da página (Conteúdo + Sidebar) */
.profile-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Seções de conteúdo genéricas */
.profile-section {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.profile-section h2 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--dark-color);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-color);
}

/* Galeria de Portfólio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}
.portfolio-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Lista de Avaliações */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.review-card {
    border-bottom: 1px solid var(--light-color);
    padding-bottom: 30px;
}
.review-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.review-header__author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
}
.review-card .rating-stars { font-size: 0.9rem; }
.review-card__text { color: var(--text-color); font-style: italic; }

/* Barra Lateral (Sidebar) */
.profile-sidebar {
    position: sticky;
    top: 100px;
}
.sidebar-box {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.sidebar-box h3 { font-family: var(--font-headings); font-size: 1.3rem; color: var(--dark-color); margin: 0 0 20px 0; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}
.sidebar-box ul li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    margin-top: 4px;
}

/* [ADICIONADO] ESTILOS DA GALERIA LIGHTBOX */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius);
}
.lightbox-close, .lightbox-next, .lightbox-prev {
    position: absolute;
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 2.5rem;
    cursor: pointer;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.lightbox-close { top: 10px; right: 20px; }
.lightbox-next, .lightbox-prev { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: -50px; }
.lightbox-next { right: -50px; }


/* Responsividade */
@media (max-width: 992px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { order: -1; position: static; }
}
@media (max-width: 650px) {
    .profile-header { flex-direction: column; text-align: center; }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}