/* ============================================================
   COMPOSER AVERY 5.0.3 — project.css
   Mobile-first. Desktop breakpoint (1025px) pending wireframe.
   Nav + watermark are the only sticky/fixed elements; everything
   else scrolls in normal document flow.
   ============================================================ */

/* Dark nav bar override
.site-nav-bar {
    background: transparent !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}*/

/* page specific styles */

body.project-page {
    overflow-y: auto;
    overflow-x: hidden;
}

.project-detail {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed; /* keeps bg art steady while content scrolls */
    padding-top: 90px;
    overflow-x: hidden;
}

.project-hero-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.75) 100%
    );
    z-index: 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ---- "MUSIC" watermark: fixed, behind everything, gradient fill ---- */
.project-watermark {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 150px;
    letter-spacing: -6px;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    padding: 0px;
    margin: 0px;
    background: linear-gradient(to bottom, rgba(38,38,38,0.3) 0%, rgba(38,38,38,0.0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.project-content {
    position: relative;
    z-index: 2;
    padding: 30px 10px 60px;
}

/* ============================================================
   PROJECT CARD
   ============================================================ */

.project-card-section {
    max-width: 500px;
    margin: 0 auto 25px;
}

.project-status-text {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding-left: 15px;
}

.project-card {
    background: rgba(22,20,18,0.90);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px;
}

.project-card-top {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.project-cover {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
}
.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-meta {
    flex: 1;
    min-width: 0;
}

.project-meta-row1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 5px;
}

.project-family {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0px;
    color: rgba(128,128,128,1.0);
    line-height: 1;
}

.icon-btn {
    background: none;
    border: none;
    padding: 0px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}
.icon-btn img {
    width: 18px;
    height: 18px;
    display: block;
}
.icon-btn:hover {
    opacity: 1;
}

.project-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 22px;
    color: #ffffff;
    letter-spacing: 0px;
    line-height: 0.8;
}

.project-subtitle {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 300;
    color: rgba(180,180,180,1.0);
    margin-bottom: 10px;
}

.project-format,
.project-genres {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 300;
    text-transform: capitalize;
    letter-spacing: 0.4px;
}

.project-format { color: rgba(128,128,128,1.0); line-height: 0.8;}
.project-genres { color: rgba(144,94,63,1.0);}

/* ---- Collapsible description ---- */
.project-description {
    max-height: 72px; /* ~3 lines collapsed */
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.project-description.is-expanded {
    max-height: 2000px; /* set inline via JS to exact scrollHeight for smoothness */
}

.project-description-inner {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.2;
    color: rgba(180,180,180,1.0);
    padding-top: 4px;
}
.project-description-inner p {
    margin-bottom: 14px;
}
.project-description-inner p:last-child {
    margin-bottom: 0;
}

.project-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 14px auto 0;
    border: none;
    background: transparent;
    cursor: pointer;
}
.project-expand-btn img {
    width: 14px;
    height: 14px;
    display: block;
}
.project-expand-btn:hover {
    background: rgba(255,255,255,0.10);
}

/* ---- App links ---- */
.project-applinks {
    text-align: center;
    padding: 24px 0 0;
}

.applinks-label {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(180,180,180,1.0);
    margin-bottom: 12px;
}

.applinks-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.applinks-icons img {
    width: 46px;
    height: 46px;
}
.applinks-icons a:hover img {
    opacity: 0.8;
}

/* ============================================================
   PREVIEWS
   ============================================================ */

.previews-section {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding-top: 40px;
}

.previews-watermark {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 90px;
    letter-spacing: -6px;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    padding: 0px;
    margin: 0px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}



.previews-list {
    position: relative;
    z-index: 1;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(22,20,18,0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.preview-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(144,94,63,1.0);
    padding: 0;
}

.preview-playpause {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(144,94,63,1.0);
}
.preview-playpause:hover {
    background: rgba(180,140,90,1.0);
}
.preview-playpause img {
    width: 18px;
    height: 18px;
}

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

.preview-title {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-elapsed,
.preview-duration {
    font-family: var(--font-primary);
    font-size: 14px;
    color: rgba(180,180,180,1.0);
    flex-shrink: 0;
}

.preview-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(60,60,60,1.0);
    border-radius: 3px;
    overflow: hidden;
}
.preview-progress-fill {
    height: 100%;
    width: 0%;
    background: rgba(105,69,46,1);
    transition: width 0.25s linear;
}

.preview-meters {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    width: 22px;
}
.preview-meters .meter-bar {
    width: 4px;
    border-radius: 1.5px;
    background: rgba(144,94,63,1.0);
    height: 2px;
}
.preview-meters.is-playing .meter-bar:nth-child(1) { animation: pmeter1 0.9s  ease-in-out infinite alternate; }
.preview-meters.is-playing .meter-bar:nth-child(2) { animation: pmeter2 0.65s ease-in-out infinite alternate 0.1s; }
.preview-meters.is-playing .meter-bar:nth-child(3) { animation: pmeter3 1.1s  ease-in-out infinite alternate 0.2s; }
.preview-meters.is-playing .meter-bar:nth-child(4) { animation: pmeter4 0.8s  ease-in-out infinite alternate 0.05s; }
@keyframes pmeter1 { 0% { height: 2px; } 50% { height: 10px; } 100% { height: 5px; } }
@keyframes pmeter2 { 0% { height: 6px; } 50% { height: 2px; }  100% { height: 12px; } }
@keyframes pmeter3 { 0% { height: 3px; } 50% { height: 13px; } 100% { height: 4px; } }
@keyframes pmeter4 { 0% { height: 10px; } 50% { height: 2px; } 100% { height: 8px; } }

.preview-heart {
    width: 32px;
    height: 32px;
    opacity: 0.85;
}
.preview-heart img {
    width: 20px;
    height: 20px;
}
.preview-heart:hover {
    opacity: 1;
}

/* ============================================================
   MODALS (shared: share modal + streaming app modal)
   ============================================================ */

.ca-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 20px;
}
.ca-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.ca-modal {
    position: relative;
    background: rgba(24,22,20,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 28px 24px;
    width: 100%;
    max-width: 370px;
}

.ca-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(200,200,200,1.0);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.ca-modal-close:hover {
    color: #ffffff;
}

.ca-modal-title {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.ca-modal-share-options,
.ca-modal-app-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ca-share-option,
.ca-app-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    padding: 12px;
    font-family: var(--font-primary);
    font-size: 18px;
    color: rgba(230,230,230,1.0);
    cursor: pointer;
    text-align: center;
}
.ca-share-option:hover,
.ca-app-option:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

.ca-app-option img {
    width: 22px;
    height: 22px;
}

.ca-share-copy {
    font-family: var(--font-primary);
    width: 100%;
}

/* ---- Back to Music ---- */
.project-back-section {
    text-align: center;
    padding-top: 30px;
}

.project-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(210,210,210,1.0);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 12px 24px;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.project-back-btn:hover {
    color: rgba(180,140,90,1.0);
    border-color: rgba(180,140,90,0.6);
}
.back-arrow {
    font-size: 16px;
    line-height: 1;
}

/* ============================================================
   DESKTOP — pending wireframe.
   Placeholder breakpoint kept consistent with discography.css
   (min-width: 1025px). Do not build out until desktop design
   for project.php is provided.
   ============================================================ */
@media screen and (min-width: 1025px) {

}
