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

.create-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: inline;
    font-size: 14px;
    margin-bottom: 10px;
    color: #151515;
    transition: all 0.4s ease;
}
.eyebrow:hover {
    color: #252525;
    cursor: pointer;
}

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

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

.audio-section {
    width: 100%;   
}

.file-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px;
    background: #f6f6f3;
    border: 2px dashed rgba(21, 21, 21, 1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-dropzone:hover {
    border-color: rgba(21, 21, 21, 0.3);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.dropzone-icon {
    font-size: 28px;
    color:#151515;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.file-input-hidden {
    display: none;
}

.file-dropzone:hover .dropzone-icon {
    transform: translateY(-4px);
}

.file-dropzone:hover .dropzone-text {
    color:#151515;
}

.cover-dropzone {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.dropzone-text {
    color:#151515;
    font-size: 14px;
    font-weight: 500;
}

.dropzone-hint {
    color: #71717a;
    font-size: 12px;
}

.audio-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.audio-file-item {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 68px;
    padding: 12px 16px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;

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

.audio-file-item:hover {
    border-color: #d5d5d5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.audio-file-icon {
    width: 42px;
    height: 42px;

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

    flex-shrink: 0;

    background: #f2f2f2;
    border-radius: 10px;

    font-size: 16px;
}

.audio-file-info {
    min-width: 0;
    flex: 1;
}

.audio-file-name {
    font-size: 14px;
    font-weight: 600;

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

.audio-file-size {
    margin-top: 4px;

    font-size: 12px;
    color: #888;
}

.audio-file-remove {
    width: 34px;
    height: 34px;

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

    flex-shrink: 0;

    border: 0;
    background: transparent;

    color: #999;
    border-radius: 8px;

    cursor: pointer;

    transition: background 0.15s ease,
                color 0.15s ease;
}

.audio-file-remove:hover {
    background: #f3f3f3;
    color: #111;
}

.cover-preview {
    display: none;

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}

.cover-preview img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cover-preview-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: rgba(0, 0, 0, 0.45);

    color: #fff;
    font-size: 14px;
    font-weight: 600;

    opacity: 0;

    transition: opacity 0.2s ease;
}
.cover-dropzone:hover .cover-preview-overlay {
    opacity: 1;
}

.cover-preview-overlay i {
    font-size: 22px;
}

.cover-dropzone.dragover {
    border-color: #111;
}

.cover-dropzone.dragover .cover-preview {
    opacity: 0.7;
}

.custom-input select, 
.custom-input input[type="text"], 
.custom-input textarea { 
    width: 100%; 
    background-color: #f6f6f3; 
    border: 1px solid var(--border); 
    color: var(--text); 
    padding: 14px 16px; 
    border-radius: 12px; 
    font-size: 14px; 
    outline: none; 
    appearance: none; 
    font-family: inherit; 
    transition: all 0.3s ease;
}
.custom-input textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.custom-input label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.custom-input select:focus, 
.custom-input input[type="text"]:focus, 
.custom-input textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent);
    background-color: #fafaf8;
}
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 24px; }
.req { color: var(--danger); font-weight: bold; }

.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;
}

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


/* =========================================================
   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;
}


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

@media (max-width: 1200px) {

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

}

@media (max-width: 1050px) {

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

    .create-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;
    }

    .create-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) {

    .create-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;
    }

}