/* assets/css/style.css */

/* =========================================
   HEADER PADRONIZADO (GLOBAL)
========================================= */
header.main-header {
    background: #ffffff !important;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    box-sizing: border-box;
}

header.main-header .nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2d3748;
    padding: 0;
    line-height: 1;
}

header.main-header .nav-links a {
    text-decoration: none !important;
    color: #2d3748 !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: 'Merriweather', sans-serif !important;
}

header.main-header .nav-links a:hover,
header.main-header .nav-links a.active {
    color: #843C90 !important;
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid #edf2f7;
    text-decoration: none !important;
}

.user-profile-nav .user-info {
    text-align: right;
    line-height: 1.2;
}

.user-profile-nav .user-name {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1a202c;
}

.user-profile-nav .user-plan {
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #843C90;
    letter-spacing: 0.5px;
}

.user-profile-nav .user-plan.pro-badge {
    color: #d97706;
}

.user-profile-nav img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #843C90;
}

/* =========================================
   FOOTER PADRONIZADO (GLOBAL)
========================================= */
footer.main-footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
    padding: 1rem 1rem;
    margin-top: 5rem;
    text-align: center;
    font-family: 'Merriweather', sans-serif !important;
    width: 100%;
    box-sizing: border-box;
}

footer.main-footer .footer-logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}

footer.main-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

footer.main-footer .footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

footer.main-footer .footer-links a:hover {
    color: #ffffff;
}

footer.main-footer .copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

footer.main-footer .piisk-credit {
    margin-top: 15px;
    font-weight: 800;
    color: #843C90;
    font-size: 0.95rem;
}

/* RESET E BASE */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
    transition: background 0.5s ease, color 0.5s ease;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Logo Wrapper */
.logo-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    line-height: 1 !important;
    border: none !important;
}

.logo-wrapper img {
    display: block;
    margin: 0;

}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none !important;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: inline-block;
    color: #843C90 !important;
    font-size: 23px;
}

.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header {
    text-align: center;
    margin-bottom: 4rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.profile-user {
    font-size: 1.2rem;
    opacity: 0.7;
    margin: 0;
}

.lists-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.list-section {
    margin-bottom: 2rem;
}

.list-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.list-item:hover {
    transform: translateX(10px) scale(1.02);
}

.item-position {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.5;
    min-width: 30px;
    text-align: center;
}

.item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.item-content {
    flex-grow: 1;
}

.item-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.2rem 0;
}

.item-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

/* =========================================
   THEMES
========================================= */

/* 1. Clean Glass (Glassmorphism animado) */
.theme-clean-glass {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.theme-clean-glass .list-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.theme-clean-glass .profile-pic {
    border: 4px solid rgba(255, 255, 255, 0.5);
}

/* 2. Dark Neon */
.theme-dark-neon {
    background-color: #0f172a;
    color: #e2e8f0;
}

.theme-dark-neon .profile-name {
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.theme-dark-neon .list-title {
    color: #c084fc;
}

.theme-dark-neon .list-item {
    background: #1e293b;
    border-left: 4px solid #38bdf8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.theme-dark-neon .list-item:hover {
    border-left-color: #c084fc;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
}

.theme-dark-neon .item-position {
    color: #38bdf8;
    opacity: 1;
}

/* 3. Brutalist */
.theme-brutalist {
    background-color: #ffe4e6;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
}

.theme-brutalist .profile-name {
    text-transform: uppercase;
    border-bottom: 6px solid #000;
    display: inline-block;
    padding-bottom: 5px;
}

.theme-brutalist .profile-pic {
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 10px 10px 0px #000;
}

.theme-brutalist .list-item {
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.2s;
}

.theme-brutalist .list-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px #000;
}

.theme-brutalist .item-img {
    border-radius: 0;
    border: 2px solid #000;
}

/* 4. Soft Minimal */
.theme-soft-minimal {
    background-color: #faf5ff;
    color: #4a5568;
}

.theme-soft-minimal .profile-name {
    color: #553c9a;
}

.theme-soft-minimal .list-title {
    color: #805ad5;
    border-bottom: 2px solid #e9d8fd;
    padding-bottom: 0.5rem;
}

.theme-soft-minimal .list-item {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(85, 60, 154, 0.08);
}

.theme-soft-minimal .item-img {
    border-radius: 12px;
}

.theme-soft-minimal .list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(85, 60, 154, 0.15);
}

/* 5. Cyberpunk Neon */
.theme-cyberpunk {
    background-color: #050505;
    color: #f0f0f0;
}

.theme-cyberpunk .profile-name {
    color: #f700ff;
    text-shadow: 3px 3px 0px #fff000;
    font-weight: 900;
}

.theme-cyberpunk .list-item {
    background: #111;
    border: 1px solid #f700ff;
    box-shadow: 5px 5px 0px #fff000;
    border-radius: 0;
}

.theme-cyberpunk .item-position {
    color: #fff000;
}

/* 6. Midnight Gold */
.theme-midnight {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #f1f5f9;
}

.theme-midnight .profile-name {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.theme-midnight .list-item {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 15px;
}

.theme-midnight .item-position {
    color: #fbbf24;
}

/* 7. Sunset Vibes */
.theme-sunset {
    background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    color: white;
}

.theme-sunset .profile-name {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.theme-sunset .list-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
}

/* 8. Nordic Ice */
.theme-nordic {
    background-color: #f0f9ff;
    color: #0369a1;
}

.theme-nordic .profile-name {
    color: #0c4a6e;
}

.theme-nordic .list-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #bae6fd;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(186, 230, 253, 0.3);
}

/* 9. Retro Gaming */
.theme-retro {
    background-color: #000;
    color: #39ff14;
    font-family: 'Courier New', monospace;
}

.theme-retro .profile-name {
    border: 2px solid #39ff14;
    padding: 10px;
    box-shadow: 4px 4px 0px #39ff14;
}

.theme-retro .list-item {
    background: #000;
    border: 2px solid #39ff14;
    border-radius: 0;
    margin-bottom: 10px;
}

.theme-retro .item-img {
    filter: grayscale(1) contrast(1.5);
    border-radius: 0;
}

/* 10. Lavender Dream */
.theme-lavender {
    background-color: #f5f3ff;
    color: #6d28d9;
}

.theme-lavender .profile-name {
    color: #7c3aed;
}

.theme-lavender .list-item {
    background: white;
    border-radius: 20px;
    border: 1px solid #ddd6fe;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.05);
}

/* Logo Fixa */
.favo-logo-corner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.favo-logo-corner:hover {
    opacity: 1;
}

/* =========================================
   RESPONSIVIDADE (Mobile First)
========================================= */
@media (max-width: 768px) {
    .profile-name {
        font-size: 2rem;
    }

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

    /* Wallet Layout */
    .lists-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    .list-section {
        margin-bottom: -40px;
        /* Overlap */
        border-radius: 20px;
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.15);
        position: relative;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), margin 0.3s ease;
        padding-bottom: 60px;
        /* Space for the overlap */
        z-index: 1;
    }

    /* Heranca de cores para a carteira funcionar bem com temas */
    .theme-clean-glass .list-section {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .theme-dark-neon .list-section {
        background: #1e293b;
        border-top: 2px solid #38bdf8;
    }

    .theme-brutalist .list-section {
        background: #ffe4e6;
        border: 3px solid #000;
        border-radius: 0;
    }

    .theme-soft-minimal .list-section {
        background: #fff;
    }

    .list-section.active {
        margin-bottom: 20px;
        transform: translateY(-10px);
        z-index: 10;
        padding-bottom: 20px;
    }

    .list-title {
        font-size: 1.2rem;
        padding: 20px;
        margin: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 20px 20px 0 0;
    }

    .theme-brutalist .list-title {
        border-radius: 0;
    }

    .list-items {
        display: none;
        padding: 0 15px;
    }

    .list-section.active .list-items {
        display: flex;
    }

    .list-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .item-position {
        font-size: 1.2rem;
        min-width: 20px;
    }

    .item-img {
        width: 50px;
        height: 50px;
    }

    .item-title {
        font-size: 1rem;
    }

    .item-subtitle {
        font-size: 0.8rem;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    header.main-header {
        padding: 0.8rem 1rem;
        position: relative;
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: block;
    }

    header.main-header .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 15px;
        align-items: flex-start;
        border-top: 1px solid #eee;
        margin-top: 0;
        z-index: 1000;
        box-sizing: border-box;
    }

    header.main-header .nav-links.show {
        display: flex;
    }

    .user-profile-nav {
        border: none;
        padding: 0;
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
}