/*this projectPage.js contains all the styling for the project pages*/

/*main content box*/
.projectPageContainer{
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.projectStatusRow{
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.projectStatusRow span{
    font-size: 18px;
    color: var(--text-primary);
}

.projectHero{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.projectMainContent h1 {
    font-size: 48px;
    max-width: 650px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.projectMainContent p {
    max-width: 650px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.projectButtonLinks{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.projectLinkButton {
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background-color: var(--surface-elevated);
    color: var(--primary-emerald);
    border: 1px solid var(--border);
    border-radius: var(--radius-secondary);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.projectLinkButton:hover {
    background-color: var(--primary-emerald);
    color: var(--text-primary);
    border-color: var(--primary-emerald);
    transform: translateY(-2px);
}

.projectMainGallery{
    width: min(720px, calc(100% - 32px));
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.projectMainImage{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-primary);
}

.projectGalleryThumbnails{
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 80px;
    width: 100%;
    overflow: hidden;
    margin-top: 3px;
}

.projectGalleryThumbnail {
    flex: 1;
    height: 90px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-secondary);
    overflow: hidden;
    cursor: pointer;
}

.projectGalleryThumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.projectGalleryThumbnail.active {
    border-color: var(--primary-emerald);
}

.projectMainImageContainer {
    position: relative;
    width: 650px;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 1px solid var(--border);
}

.projectGalleryNav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 64px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-secondary);
    background-color: var(--surface);
    font-size: 32px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.projectMainImageContainer:hover .projectGalleryNav {
    color: var(--primary-emerald);
    opacity: 1;
}

.projectGalleryNavPrevious {
    left: 8px;
}

.projectGalleryNavNext {
    right: calc(8px + 32px);
}

/*this is the section below the main content section that contains the gallyer and title */
.extraProjectContent {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 48px;
    margin-top: 16px;
}

.projectLeftColumn {
    flex: 1;
    min-width: 600px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-primary);
    overflow: hidden;
    flex-direction: column;
    align-self: flex-start;
}

.projectRightColumn{
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*style the tabs and the content the tabs generate*/
.projectContentTabs{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.projectTabContent{
    width: 100%;
    padding: 24px;
    color: var(--text-primary); 
}
/*the location in is loadProjectTabContent() to trigger this animation*/
.projectTabContent.active {
    animation: tab-fade-in 0.2s ease; 
}

/*the right side bar now needs to be styled for every mini section inside */
.projectSidebarSection{
    width: 100%;
    padding: 20px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-primary);
}

.projectSidebarSection h2 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.projectSidebarSection p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.projectStatusSidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.projectSiderbarLinks{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*these styles are for the tab button in the content section*/
.projectTabButton{
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.projectTabButton:hover {
    color: var(--text-primary);
}

.projectTabButton.active {
    color: var(--primary-emerald);
}

/*this makes a little animation when swtiching the content tabs*/
@keyframes tab-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*changing the h2s under the content tab*/
.projectTabContent h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
/*chaning the p under the content tab*/
.projectTabContent p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

/*styling for the recent update cards in side the over section*/
/*this is the styling for the backgorund of the cards*/
.projectOverviewUpdateCard{
    margin-top: 8px;
    padding: 8px;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-secondary);
}
/*this is the styling for the card header row with the title and date*/
.projectUpdateHeader {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 3px;
}

.projectUpdateHeader h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

.projectUpdateHeader time {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
/*this changes the p content inside the cards*/
.projectOverviewUpdateCard p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

/*styling the demo video on the project page*/
/*this is for styling the content box which holds the video compoent*/
.projectOverviewVideoSection {
    margin-top: 8px;
}
/*this is the container where the iframe sits*/
.projectOverviewVideoContainer {
    width: calc(100% - 32px);
    max-width: 950px;
    margin: auto;
    margin-top: 3px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-primary);
    
}
/*this is telling the iframe to take all the space it can*/
.projectOverviewVideoContainer iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.projectFeatureSection{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projectFeatureCard {
    padding: 8px;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-secondary);
}

.projectFeatureCard h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.projectFeatureCard p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.projectChangelogSection {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projectUpdateCard {
    padding: 8px;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-secondary);
}

.projectChangelogHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.projectChangelogHeader h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.projectUpdateCard p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.projectChangelogHeader time {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

#project-technologies {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
}

.projectSidebarLinks {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.projectSidebarLinks a {
    color: var(--primary-emerald);
    font: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.projectExtraContentHeader {
    margin-top: 24px;
}

@media (max-width: 1100px){
    .projectRightColumn{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        gap: 20px;
    }
    .projectMainImageContainer{
        width: 100%;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }
}


