/* Autors: Raivis Rampāns */
/* Izveidots: 24.05.2026 */
/* Mainīts : 24.05.2026 */

.account-page {
    height: 100vh;
    overflow: hidden;
    background-color: black;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.account-main {
    display: flex;
    height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 20px;
}

.account-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    padding: 22px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.account-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.account-profile-area {
    display: flex;
    gap: 28px;
}

.account-pfp-box {
    display: flex;
    height: 245px;
    width: 270px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.account-pfp {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.account-default-pfp {
    height: 130px;
    width: 130px;
    object-fit: cover;
}

.account-username {
    font-size: 54px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.035em;
    color: white;
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.account-bio {
    margin-top: 6px;
    max-width: 900px;
    font-size: 25px;
    line-height: 1.25;
    font-style: italic;
    font-weight: 700;
    color: rgba(233, 213, 255, 0.8);
}

.account-stats-grid {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 26px;
    line-height: 1.25;
    color: rgba(243, 232, 255, 0.9);
}

.account-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
}

.account-stat-label {
    font-weight: 900;
    color: white;
}

.account-stat-value {
    font-weight: 800;
}

.account-rank {
    font-weight: 800;
    color: rgba(216, 180, 254, 0.85);
}

.account-section-grid {
    margin-top: 30px;
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 24px;
    overflow: hidden;
}

.account-section-title {
    margin-bottom: 8px;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: white;
    text-shadow: 0 0 14px rgba(168, 85, 247, 0.22);
}

.account-song-card {
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(88, 28, 135, 0.3), rgba(0, 0, 0, 0.55));
    padding: 18px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.account-song-card:hover {
    border-color: rgba(216, 180, 254, 0.7);
    box-shadow: 0 20px 40px rgba(88, 28, 135, 0.4);
}

.account-song-title {
    min-height: 58px;
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: white;
}

.account-song-date {
    font-size: 18px;
    font-weight: 800;
    color: rgba(216, 180, 254, 0.7);
}

.account-video-preview {
    position: relative;
    display: flex;
    height: 145px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 14px;
    background: black;
    box-shadow: inset 0 2px 18px rgba(0, 0, 0, 0.6);
}

.account-video-placeholder {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: black;
}

.account-play-icon {
    height: 90px;
    width: 90px;
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.25s ease;
}

.account-song-card:hover .account-play-icon {
    transform: scale(1.1);
}

.account-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-user-menu {
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 12px;
    min-width: 220px;
    overflow: hidden;
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
}

.account-user-menu-link {
    display: block;
    padding: 16px 20px;
    color: rgb(254, 202, 202);
    font-size: 18px;
    font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease;
}

.account-user-menu-link:hover {
    background: rgba(239, 68, 68, 0.2);
    color: white;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.account-modal.flex {
    display: flex;
}

.account-modal-box {
    position: relative;
    width: 100%;
    max-width: 540px;
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.95);
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.account-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: rgb(243, 232, 255);
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    transition: color 0.18s ease;
}

.account-modal-close:hover {
    color: white;
}

.account-modal-title {
    margin-bottom: 24px;
    text-align: center;
    color: rgb(243, 232, 255);
    font-size: 40px;
    font-weight: 900;
}

.account-form-label {
    display: block;
    margin-bottom: 8px;
    color: rgb(243, 232, 255);
    font-size: 18px;
    font-weight: 800;
}

.account-textarea,
.account-file-input {
    width: 100%;
    border: 1px solid rgba(216, 180, 254, 0.3);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    color: white;
    font-weight: 600;
    outline: none;
}

.account-textarea {
    resize: none;
}

.account-textarea::placeholder {
    color: rgba(233, 213, 255, 0.5);
}

.account-textarea:focus,
.account-file-input:focus {
    border-color: rgba(192, 132, 252, 1);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4);
}

.account-file-input::file-selector-button {
    margin-right: 16px;
    border: 0;
    border-radius: 8px;
    background: rgb(147, 51, 234);
    padding: 8px 16px;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.account-file-input::file-selector-button:hover {
    background: rgb(168, 85, 247);
}

.account-help-text {
    margin-top: 8px;
    color: rgba(216, 180, 254, 0.8);
    font-size: 14px;
    font-weight: 700;
}

.account-preview-wrapper {
    margin-top: 16px;
    display: none;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
}

.account-preview-wrapper.flex {
    display: flex;
}

.account-preview-image {
    height: 80px;
    width: 80px;
    border-radius: 14px;
    object-fit: cover;
}

.account-preview-text {
    color: rgba(216, 180, 254, 0.8);
    font-size: 14px;
    font-weight: 700;
}

.account-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (max-height: 760px) {
    .account-pfp-box {
        height: 210px;
        width: 235px;
    }

    .account-username {
        font-size: 48px;
    }

    .account-bio {
        font-size: 22px;
    }

    .account-stats-grid {
        margin-top: 18px;
        font-size: 23px;
    }

    .account-section-grid {
        margin-top: 22px;
    }

    .account-section-title {
        font-size: 28px;
    }

    .account-video-preview {
        height: 125px;
    }

    .account-play-icon {
        height: 78px;
        width: 78px;
    }
}