﻿:root {
    --bg-dark: #0f0f13;
    --panel-bg: rgba(25, 25, 30, 0.4);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #ffcc00;
    --accent-hover: #ffaa00;
    --blur-amount: 20px;
    --transition: 0.3s ease;
    --custom-bg-1: #1a1a2e;
    --custom-bg-2: #16213e;
    --custom-bg-img: url('');
    --profile-bg-1: #111113;
    --profile-bg-2: #1e1e24;
    --profile-width: 600px;
    --right-panel-width: 650px;
    --avatar-size: 150px;
    --avatar-pos-x: 40px;
    --avatar-pos-bottom: -50px;
    --bg-mask-stop: 30%;
    --bg-image-height: 50vh;
    --bg-overlay-opacity: 0.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 0%, var(--custom-bg-1) 0%, var(--custom-bg-2) 100%);
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.bg-image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: var(--custom-bg-img);
    background-size: 100% var(--bg-image-height, 50vh);
    background-repeat: no-repeat;
    background-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black var(--bg-mask-stop, 30%), transparent var(--bg-image-height, 50vh), transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black var(--bg-mask-stop, 30%), transparent var(--bg-image-height, 50vh), transparent 100%);
    opacity: 0.9;
}

.bg-image-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent var(--bg-mask-stop, 30%), black var(--bg-image-height, 50vh), black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent var(--bg-mask-stop, 30%), black var(--bg-image-height, 50vh), black 100%);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    opacity: var(--bg-overlay-opacity, 0.5);
    z-index: -1;
    pointer-events: none;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    max-width: calc(var(--profile-width) + var(--right-panel-width) + 60px);
    margin: 80px auto 0 auto;
    padding: 0 40px;
    gap: 50px;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

@media (min-width: 900px) {
    .dashboard-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-panel {
    width: 100%;
    max-width: var(--profile-width);
    background: linear-gradient(to bottom, var(--profile-bg-1), var(--profile-bg-2));
    border: 1px solid var(--panel-border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.profile-banner-container {
    position: relative;
    width: 100%;
}

.profile-banner {
    width: 100%;
    height: auto;
    display: block;
}

.profile-avatar-container {
    position: absolute;
    bottom: var(--avatar-pos-bottom, -50px);
    left: var(--avatar-pos-x, 40px);
    padding: 0;
    z-index: 10;
}

.profile-avatar {
    width: clamp(80px, var(--avatar-size, 120px), 25vw);
    height: clamp(80px, var(--avatar-size, 120px), 25vw);
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #111113;
}

.profile-info {
    padding: 70px 40px 30px 40px;
    text-align: left;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.profile-name {
    font-size: clamp(1.2rem, var(--profile-name-size, 1.6rem), 8vw);
    font-weight: 800;
    color: var(--profile-name-color, var(--accent));
    margin-bottom: 8px;
    line-height: 1;
}

.profile-bio {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}

.profile-social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.profile-social-icons img {
    width: clamp(16px, var(--social-icon-size, 20px), 8vw);
    height: clamp(16px, var(--social-icon-size, 20px), 8vw);
    cursor: pointer;
    transition: transform var(--transition);
}

.profile-social-icons img:hover {
    transform: scale(1.2);
}

#profileCustomImage {
    width: clamp(50px, var(--custom-img-size, 120px), 18vw) !important;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
}

.profile-info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-left: 20px;
    margin-top: -60px;
}

.profile-badges {
    display: inline-flex;
    gap: 10px;
    vertical-align: middle;
    margin-bottom: 25px;
}

.badge {
    background: transparent;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.badge-arc {
    border-color: rgba(255, 204, 0, 0.5);
}

.badge-arc i {
    color: var(--accent);
}

.profile-sv {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.profile-sv:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.05);
}

#svText {
    white-space: pre-wrap;
}

.sv-icon {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-about {
    margin-top: 30px;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 4px;
    background: var(--about-line-color, var(--accent));
    border-radius: 4px;
}

.about-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.content-panel {
    width: 100%;
    max-width: var(--right-panel-width);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    padding-bottom: 20px;
}

.content-tabs {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.sections-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition);
    position: relative;
    padding: 0 0 15px 0;
}

.tab-btn:hover {
    color: #e0e0e0;
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px 3px 0 0;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
    will-change: transform, opacity;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px) translateZ(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.section-header h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    display: none;
}

.novedades-list,
.creditos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    animation: slideUpFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.list-item:hover {
    background: rgba(25, 25, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) translateZ(0);
}

.item-icon {
    width: 100px;
    height: 100px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-content {
    flex-grow: 1;
    min-width: 0;
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: break-word;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
}

.creditos-list .item-desc,
#companerosGrid .item-desc {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.creditos-list .list-item {
    cursor: pointer;
}

.creditos-list .item-icon {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.album-item {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.album-item:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.album-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

.album-item:hover .album-img-wrapper img {
    transform: scale(1.1);
}

.album-item-info {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.album-creator-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.album-creator-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-modal-creator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.album-modal-creator-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.album-modal-creator-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.album-title {
    padding: 0 12px 12px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-creator-link,
.album-modal-creator-link {
    display: flex;
    align-items: center;
    gap: inherit;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.album-creator-link:hover,
.album-modal-creator-link:hover {
    opacity: 0.8;
}

.album-modal-creator-link .album-modal-creator-name {
    text-decoration: underline;
    text-decoration-color: rgba(255, 204, 0, 0.3);
}

.album-modal-creator-link:hover .album-modal-creator-name {
    text-decoration-color: var(--accent);
}

.anotaciones-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.anotacion-card {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    animation: slideUpFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anotacion-card:hover {
    background: rgba(25, 25, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.anotacion-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 15px;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.anotacion-author-area {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition);
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.6);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.modal-body {
    padding: 25px;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--admin-accent-color, var(--accent));
}

.modal-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-desc a {
    color: var(--admin-accent-color, var(--accent));
    text-decoration: none;
}

.modal-desc a:hover {
    text-decoration: underline;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}


.mobile-swipe-hint {
    display: none;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        position: relative;
    }

    .mobile-swipe-hint {
        display: flex;
        position: fixed;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
        color: rgba(255, 255, 255, 0.4);
        font-size: 2rem;
        pointer-events: none;
        animation: swipePulse 2s infinite ease-in-out;
        flex-direction: row-reverse;
    }

    @keyframes swipePulse {

        0%,
        100% {
            transform: translateY(-50%) translateX(0);
            opacity: 0.2;
        }

        50% {
            transform: translateY(-50%) translateX(-10px);
            opacity: 0.8;
        }
    }

    body.drawer-open .mobile-swipe-hint {
        display: none;
    }

    .dashboard-container {
        display: block;
        padding: 0;
        margin: 0;
        min-height: 100vh;
        width: 100vw;
        max-width: 100vw;
    }

    .profile-panel {
        width: 100vw;
        max-width: 100vw;
        min-height: 100vh;
        position: relative;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--panel-border);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    }

    body.drawer-open .profile-panel {
        transform: scale(0.95);
        opacity: 0.3;
        pointer-events: none;
    }

    .profile-avatar {
        width: clamp(70px, var(--mob-avatar-size, 120px), 35vw) !important;
        height: clamp(70px, var(--mob-avatar-size, 120px), 35vw) !important;
    }

    .profile-avatar-container {
        left: var(--mob-avatar-pos-x, 20px) !important;
        bottom: var(--mob-avatar-pos-bottom, -30px) !important;
        transform: none !important;
    }

    .profile-name {
        font-size: var(--mob-name-size, 1.4rem) !important;
    }

    .profile-social-icons img {
        width: var(--mob-social-size, 25px) !important;
        height: var(--mob-social-size, 25px) !important;
    }

    .profile-info {
        padding: 50px 20px 40px 20px;
        text-align: left;
        display: flex;
        flex-direction: column;
    }

    .profile-info-header {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    #profileCustomImage {
        width: clamp(40px, var(--mob-custom-img-size, 80px), 30vw) !important;
        max-height: 30vh;
        object-fit: contain;
    }

    .profile-info-left {
        flex: 1;
        min-width: 0;
    }

    .profile-info-right {
        margin-left: 0 !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        width: auto !important;
        overflow-x: visible;
        padding-bottom: 0;
        margin-top: -30px !important;
    }

    #rightIconsContainer {
        flex-direction: column !important;
    }

    #rightIconsContainer img {
        width: clamp(20px, var(--mob-right-icon-size, 35px), 15vw) !important;
        height: clamp(20px, var(--mob-right-icon-size, 35px), 15vw) !important;
    }

    .content-panel {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 90vw;
        height: 100vh;
        z-index: 500;
        background: rgba(15, 15, 19, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px 0 0 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    body.drawer-open .content-panel {
        right: 0;
    }

    .content-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 20px;
        padding-bottom: 15px;
        margin-bottom: 0;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        scrollbar-width: none;
    }

    .content-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-shrink: 0;
        font-size: 0.95rem;
        padding: 8px 15px;
    }

    .sections-container {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        padding-bottom: 40px;
    }

    .list-item,
    .anotacion-card {
        padding: 15px;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .album-item-info {
        padding: 8px;
        gap: 6px;
    }

    .album-creator-img {
        width: 24px;
        height: 24px;
    }

    .album-creator-name {
        font-size: 0.75rem;
    }

    /* SV Section Mobile - Ultra compact */
    .profile-sv {
        padding: 5px 8px !important;
        margin-top: 10px !important;
        border-radius: 6px !important;
    }

    .profile-sv>div {
        gap: 8px !important;
    }

    .sv-icon {
        width: 30px !important;
        height: 30px !important;
        border-radius: 4px !important;
    }

    #svTitle {
        font-size: 0.78rem !important;
        margin-bottom: -3px !important;
        font-weight: 700;
    }

    #svText {
        font-size: 0.65rem !important;
        line-height: 1.15;
        opacity: 0.9;
    }
}