/* -- 900+ LINHAS DE CÓDIGO CSS COMEÇAM AQUI -- */


/* Paleta de Cores e Fontes */

:root {
    --color-primary: #0000ff;
    /* Azul Forte */
    --color-secondary: #87ceeb;
    /* Azul Celeste */
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-card-bg: rgba(255, 255, 255, 0.95);
    --color-card-border: var(--color-primary);
    --color-accent-gold: #ffd700;
    --color-danger: #e91e63;
    --color-success: #4caf50;
    --font-cinzel: 'Cinzel', serif;
    --font-roboto: 'Roboto', sans-serif;
}


/* Geral */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-roboto);
    background: var(--color-secondary);
    color: var(--color-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}


/* Animação de Fundo */

.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/kC4UfX9.png');
    /* Exemplo de textura de pergaminho */
    opacity: 0.1;
    z-index: -1;
    animation: texturePan 60s linear infinite;
}

@keyframes texturePan {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}


/* Layout Principal */

.profile-page {
    width: 100%;
    max-width: 1600px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    justify-items: center;
    align-items: flex-start;
}

.profile-container {
    display: contents;
}


/* Estilo do Card Geral */

.card {
    background: var(--color-card-bg);
    border: 2px solid var(--color-card-border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.card h3 {
    font-family: var(--font-cinzel);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 0.8rem;
}

.card h3 i {
    color: var(--color-accent-gold);
}


/* Sidebar Esquerda */

.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
}

.profile-photo-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    margin-top: -60px;
    background: #fff;
    padding: 5px;
    position: relative;
    z-index: 2;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-details {
    margin-top: 1rem;
    width: 100%;
}

.user-name {
    font-family: var(--font-cinzel);
    font-size: 2rem;
    color: var(--color-primary);
}

.user-title {
    font-style: italic;
    color: #888;
    margin-bottom: 1rem;
}

.xp-bar-container {
    background: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 50px;
    height: 25px;
    width: 90%;
    margin: 1rem auto;
    overflow: hidden;
    position: relative;
}

.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    transition: width 0.5s ease-in-out;
}

.xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

.user-stats-list {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item i {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.inventory-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    list-style: none;
}

.inventory-item,
.achievement-item {
    background: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.inventory-item:hover,
.achievement-item.completed:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.inventory-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.inventory-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.inventory-item.locked i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--color-danger);
}

.item-name {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.achievement-item i {
    font-size: 2rem;
    color: #ccc;
}

.achievement-item.completed {
    background: var(--color-success);
    color: var(--color-text-light);
}

.achievement-item.completed i {
    color: var(--color-text-light);
}

.achievement-item.completed span {
    font-weight: bold;
}

.achievement-item:not(.completed) {
    opacity: 0.5;
    cursor: default;
}


/* Conteúdo Principal */

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.post-content {
    flex: 1;
}

.post-author {
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: var(--color-primary);
}

.post-text {
    font-size: 1rem;
}

.post-time {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-top: 0.5rem;
}

.minigame-content {
    text-align: center;
}

.btn-minigame {
    background: var(--color-accent-gold);
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-cinzel);
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-minigame:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Sidebar Direita */

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.friend-item:hover {
    background: #f0f0f0;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-primary);
}

.actions-card .btn-action {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--color-primary);
    background: var(--color-branco);
    color: var(--color-primary);
    font-family: var(--font-cinzel);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.actions-card .btn-action:hover {
    background: var(--color-primary);
    color: var(--color-branco);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-logout-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-danger);
    color: var(--color-text-light);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-cinzel);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 100;
}

.btn-logout-fixed:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.footer {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-light);
    font-size: 0.8rem;
    margin-top: 2rem;
}


/* Responsividade */

@media (max-width: 1200px) {
    .profile-page {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    .profile-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .sidebar-left,
    .main-content,
    .sidebar-right {
        width: 100%;
    }
}