/* Variáveis de cores */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0055aa;
    --secondary-color: #333;
    --background-light: #f8f9fa;
    --border-color: #ddd;
    --text-color: #333;
    --text-light: #666;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --focus-shadow: rgba(0, 102, 204, 0.2);
    --error-color: #e74c3c;
}

/* Estilos específicos para a página de perfil */

/* Cabeçalho do perfil */
.profile-header {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px var(--focus-shadow);
    transition: transform 0.3s ease;
}

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

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.profile-username {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 15px;
}

.profile-bio {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
}

/* Estatísticas do perfil */
.profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

/* Ações do perfil */
.profile-actions {
    display: flex;
    gap: 15px;
}

.profile-actions .btn {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profile-actions .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.profile-actions .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--focus-shadow);
}

.profile-actions .btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.profile-actions .btn-outline:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* Abas do perfil */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    gap: 5px;
}

.profile-tab {
    padding: 15px 25px;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    position: relative;
}

.profile-tab:hover {
    color: var(--text-color);
}

.profile-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Grade de entradas do perfil */
.profile-content {
    margin-bottom: 40px;
}

.profile-entries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    animation: fadeIn 0.5s ease forwards;
}

.profile-entry {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.profile-entry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-entry:hover img {
    transform: scale(1.08);
}

.profile-entry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.profile-entry:hover .profile-entry-overlay {
    opacity: 1;
}

.profile-entry-stats {
    display: flex;
    gap: 25px;
    color: white;
    font-weight: 600;
}

.profile-entry-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.profile-entry-stat i {
    font-size: 18px;
}

/* Responsividade */
@media (max-width: 992px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 25px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-stats {
        justify-content: center;
        gap: 30px;
    }

    .profile-actions {
        justify-content: center;
    }

    .profile-bio {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .profile-entries {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header {
        padding: 25px;
    }

    .profile-tabs {
        justify-content: center;
    }

    .profile-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .profile-entries {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-header {
        padding: 20px;
        border-radius: 0;
        margin: -30px -20px 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 18px;
    }

    .profile-actions .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .profile-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        margin: 0 -20px 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .profile-tab {
        white-space: nowrap;
        padding: 10px 15px;
    }
}