/* ===== GRID PRINCIPAL ===== */
body {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 70px 1fr;
    min-width: 0;
    grid-template-areas: 
        "header header"
        "sidebar main";
}

/* ===== HEADER ===== */
.header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.1px solid rgba(124, 124, 124, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg);
    padding: 0 1.5rem;
    gap: 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-navegation {
    background-color: var(--input-bg);
    border: none;
    padding: 10px;
    border-radius: 20px;
    color: var(--text);
}

.header-porfile {
    border-radius: 50%;
    height: 40px;
    width: 40px;
    object-fit: cover;
}

/* ===== SIDEBAR ===== */
.sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    padding: 1rem;
    overflow-y: auto;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-weight: 700;
    margin-top: 2rem;
}

.sidebar li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 15px 15px 0;
}

.sidebar a {
    margin-left: 0;
}

.sidebar li i {
    margin: 1rem;
}

.sidebar li:hover {
    background-color: rgba(30, 58, 95, 0.9);
    border-radius: 2rem;
    cursor: pointer;
}

.sidebar li:hover a,
.sidebar li:hover i {
    color: var(--accent);
}

/* ===== MAIN ===== */
main {
    grid-area: main;
    min-width: 0;
    padding: 1rem 2rem;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {

    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        max-width: 100vw;
        overflow-x: hidden;
        grid-template-areas:
            "header"
            "main";
    }

    .sidebar {
        display: none;
    }

    .header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 1rem;
        height: auto;
        gap: 0.4rem;
    }

    .header-title {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-title nav {
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }

    .header-title nav a {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .header-search {
        display: none;
    }

    main {
        width: 100%;
        box-sizing: border-box;
        padding: 1rem;
        overflow-x: hidden;
    }

    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .album-card {
        min-height: 220px;
    }

    .img-Album {
        min-height: 130px;
    }

    .btn-shop {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .album-card h4 {
        font-size: 0.8rem;
    }
}