/* Project Header Styles */
.project-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 658px;
    margin: 0 auto;
    gap: 2rem;
}

.project-header__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.project-header__back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.75rem 1rem;
    margin-left: -1rem;  /* Negative margin to align with title */
    border-radius: 2rem;
}

.project-header__back svg {
    width: 1rem;
    height: 1rem;
}

/* Match the exact styling of the circular buttons */
.project-header__back:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.project-header__back:active {
    transform: scale(0.95);
}

.project-header__back:hover {
     background-color: var(--bg-tertiary);
}

.project-header__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 -.5rem;
}

.project-header__control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0;
}

.project-header__control svg {
    width: 16px;
    height: 16px;
}

.project-header__control:hover {
    background-color: var(--bg-tertiary);
}

.project-header__content {
    display: flex;
    flex-direction: column;
    max-width: 658px;
    width: 100%;
    gap: 2rem;
}

.project-header__title {
    font-size: 2.0625rem;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    line-height: 136%;
}

.project-header__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 152%;
}

.project-header__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
        "kind year"
        "client .";
    gap: 1.5rem;
    row-gap: 1.5rem;
    margin: 1rem 0;
}

.project-header__meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.project-header__meta-row:nth-child(1) {
    grid-area: kind;
}

.project-header__meta-row:nth-child(2) {
    grid-area: client;
}

.project-header__meta-row:nth-child(3) {
    grid-area: year;
}

.project-header__meta-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.project-header__meta-value {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Audio Player */
.audio-player {
    position: relative;
}

.audio-player__button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-primary);
}

.audio-player__icon {
    width: 24px;
    height: 24px;
}

/* =========================================
   Media Queries - All at the bottom
   ========================================= */

/* Desktop styles */
@media (min-width: 768px) {
    .project-header__back {
        font-size: 1rem;
        padding: 1rem;
        margin-left: -1rem;
    }

    .project-header__control svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .project-header__content {
        gap: 0.75rem;
    }
    
    .project-header__title {
        font-size: 3.5rem;
    }

    .project-header__subtitle {
        font-size: 1.4375rem;
    }

    .project-header__meta {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 4.5rem;
        grid-template-columns: none;
        grid-template-areas: none;
        margin: 4rem 0 0;
    }
    
    .project-header__meta-row:nth-child(1),
    .project-header__meta-row:nth-child(2),
    .project-header__meta-row:nth-child(3) {
        grid-area: auto;
    }

    .project-header__meta-row {
        gap: 0.25rem;
    }

    .project-header__meta-value {
        font-size: 1.1875rem
    }

    .project-header {
        gap: 3rem;
    }
}
