/* =========================================================
   SOUNDSpace — HOME
   ========================================================= */

.home-page {
    width: min(1180px, calc(100% - 72px));
    margin: 0 auto;
    padding: 48px 0 70px;
}

/* ---------- HEADER ---------- */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 46px;
}

.eyebrow {
    display: none;
}

.page-header h1 {
    margin: 0;
    color: #151515;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 720;
}

.subtitle {
    margin: 10px 0 0;
    color: #8d8d8d;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 1px;
}

.search-box {
    width: 250px;
    height: 42px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 14px;

    box-sizing: border-box;

    background: #fbfbfb;
    border: 1px solid #e5e5e5;
    border-radius: 10px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.search-box:focus-within {
    border-color: #d1d1d1;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .025);
}

.search-box i {
    display: block;
    color: #222;
    font-size: 14px;
}

.search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #222;

    font-size: 12px;
}

.search-box input::placeholder {
    color: #a0a0a0;
}

.primary-btn,
.secondary-btn {
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 650;

    transition:
        transform .15s ease,
        opacity .15s ease;
}

.primary-btn {
    gap: 9px;

    border: 0;

    background: #101010;
    color: #fff;

    box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-1px);
    opacity: .9;
}

.primary-btn i {
    font-size: 11px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    margin-bottom: 48px;
}

.section-heading {
    margin-bottom: 17px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.section-heading h2 {
    margin: 0;

    color: #171717;

    font-size: 16px;
    line-height: 1;

    letter-spacing: -0.025em;
    font-weight: 700;
}

.section-heading p {
    display: none;
}

.text-btn {
    padding: 0;

    border: 0;

    background: transparent;

    color: #666;

    cursor: pointer;

    font-size: 11px;
}

.text-btn:hover {
    color: #111;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.project-card {
    position: relative;

    min-width: 0;
    height: 108px;

    display: flex;
    align-items: center;

    padding: 15px;

    box-sizing: border-box;

    overflow: hidden;

    background: rgba(255, 255, 255, .82);

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    text-decoration: none;

    box-shadow: 0 3px 12px rgba(0, 0, 0, .025);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.project-card:hover {
    transform: translateY(-2px);

    border-color: #d7d7d7;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .055);
}

.project-cover {
    position: relative;

    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    overflow: hidden;

    border-radius: 9px;

    background: #ddd;
}

.project-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.project-info {
    min-width: 0;

    flex: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-left: 14px;
}

.project-info h3 {
    overflow: hidden;

    margin: 0 0 8px;

    color: #202020;

    font-size: 13px;
    line-height: 1;

    font-weight: 680;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.project-info p {
    overflow: hidden;

    margin: 0;

    color: #929292;

    font-size: 10px;
    line-height: 1;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.project-more {
    flex: 0 0 auto;

    align-self: flex-start;

    margin-top: 2px;

    color: #a1a1a1;

    font-size: 12px;
}


/* =========================================================
   SHARED
   ========================================================= */

.shared-section {
    margin-bottom: 0;
}

.shared-list {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.shared-card {
    min-width: 0;
    height: 108px;

    display: flex;
    align-items: center;

    padding: 15px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, .82);

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    text-decoration: none;

    box-shadow: 0 3px 12px rgba(0, 0, 0, .025);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.shared-card:hover {
    transform: translateY(-2px);

    border-color: #d7d7d7;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .055);
}

.shared-card .mini-cover {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    display: block;

    overflow: hidden;

    border-radius: 9px;

    object-fit: cover;
}

.shared-info {
    min-width: 0;

    flex: 1;

    margin-left: 14px;
}

.shared-info h3 {
    overflow: hidden;

    margin: 0 0 8px;

    color: #202020;

    font-size: 13px;
    line-height: 1;

    font-weight: 680;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.shared-info p {
    overflow: hidden;

    margin: 0;

    color: #929292;

    font-size: 10px;
    line-height: 1;

    white-space: nowrap;
    text-overflow: ellipsis;

}

/* =========================================================
   HIDE QUICK START
   ========================================================= */

.quick-start {
    display: none !important;
}

.primary-btn.save-changes {
    width: 100%;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .home-page {
        width: min(1050px, calc(100% - 60px));
    }

}

@media (max-width: 1050px) {

    #root .navbar {
        width: 195px;
        min-width: 195px;
    }

    .home-page {
        width: calc(100% - 48px);
    }

    .project-card,
    .shared-card {
        height: 100px;
    }

    .project-cover,
    .shared-card .mini-cover {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

}

@media (max-width: 820px) {

    #root {
        display: block;
    }

    #root .navbar {
        width: 100%;
        min-width: 0;

        height: 64px;
        min-height: 64px;

        padding: 0 18px;

        display: flex;
        flex-direction: row;
        align-items: center;

        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    #root .logo {
        padding: 0;
    }

    #root .menu {
        display: none;
    }

    #root .account {
        margin: 0 0 0 auto;

        padding: 0;

        border: 0;
    }

    #root .acc-info {
        display: none;
    }

    .home-page {
        width: calc(100% - 32px);

        padding: 35px 0 50px;
    }

    .page-header {
        flex-direction: column;

        gap: 24px;

        margin-bottom: 35px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .header-actions {
        width: 100%;
    }

    .search-box {
        flex: 1;

        width: auto;
    }

    .project-grid,
    .shared-list {
        grid-template-columns: 1fr;
    }

    .project-card,
    .shared-card {
        height: 100px;
    }

}

@media (max-width: 520px) {

    .home-page {
        width: calc(100% - 24px);

        padding-top: 28px;
    }

    .page-header h1 {
        font-size: 25px;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-box {
        width: 100%;
        flex: 1 0 100%;
    }

    .primary-btn {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
    }

}