/*projects page css contains all the styling used on the projects page */


.pageContainer{
    display: flex;
    flex-direction: column;
    width: min(1440px, calc(100% - 64px)); /* makes the max size the home contant can be is 1440 and creates 32 px padding on left right right, it also adjust to other screens with media querries*/
    margin: 0 auto;
}

.breadcrumbs{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 4px;
}

.breadcrumbs a, .breadcrumbs span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}

.breadcrumbs a:hover{
    color: var(--accent-teal);
}

.headerRow {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.headerContent {
    margin-top: 8px;
    flex-wrap: wrap;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.headerContent p {
    color: var(--text-muted)
}

.headerCard {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.headerContent h1 {
    font-size: 40px;
}

.headerCard p, .headerCard span{
    font-size: 20px;
}

.mainContentSection {
    width: 100%;
    display: grid;
    grid-template-columns: 450px minmax(0, 1fr); /*filters section is a total of 450px, then all reamining space is for the right column - gap*/
    gap: 24px;
    align-items: start;
    margin-top: 20px;
}

.filterSection {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border-radius: var(--radius-primary);
    border: 1px solid var(--border);
    padding: 24px;
    padding-top: 10px;
    gap: 8px;
}

.filterHeader {
    justify-content: space-between;
    display: flex;
    flex-direction: row;
}

.filterHeader h2 {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 20px;
}

.filterHeader button {
    color: var(--text-muted);
}

.filterHeader button:hover {
    color: var(--accent-teal);
}

#keyword-filter-input, #project-search-input{
    width: 100%;
    background-color: var(--surface-elevated);
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-secondary);
    border: none;
}

#keyword-filter-input::placeholder, #project-search-input::placeholder {
    color: var(--text-muted);
}

#keyword-filter-input:focus, #project-search-input:focus {
    border: 1px solid var(--accent-teal);
    color: var(--text-primary);
    outline: none;
}

.simpleFilterSection {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}

#project-sort-select {
    background-color: var(--surface-elevated);
    background-color: var(--surface-elevated);
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-secondary);
    border: none;
    cursor: pointer;
}

#project-sort-select option:checked {
    background-color: var(--surface);
}

.filterGroup button {
    color: var(--text-muted);
    width: 100%;
    align-items: center;
}

.filterGroup button:hover {
    color: var(--accent-teal);
}

.filterGroup h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}

.rightColumn {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projectGrid {
    width: 100%;
    height: calc(100% - 72px); /* subtracts the height of the section header from the total height of the section */

    display: grid;
    grid-template-columns: repeat(3, 1fr); /* creates 3 equal columns for the grid */
    gap: 38px; /* creates a 38px gap between the grid items */
}

.technologyCard, .projectTypeCard{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.technologyCard p, .technologyCard span, .projectTypeCard p, .projectTypeCard span {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

.technologyCard p, .projectTypeCard p{
    cursor: pointer;
}

.techFilterCard-leftContainer, .projectTypeFilterCard-leftContainer{
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.technology-filter-checkbox, .projectType-filter-checkbox{
    width: 16px;
    height: 16px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-secondary);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.technology-filter-checkbox:checked, .projectType-filter-checkbox:checked{
    background-color: var(--primary-emerald);
    border-color: var(--surface-elevated);
}

.keyword-filter-error {
    animation: keyword-shake 0.3s ease;
}

/*this add the shake effect to the wrong input in the keyword search bar*/
@keyframes keyword-shake {
    0%{
        transform: translateX(0);
    } 
    25%{
        transform: translatex(-4px);
    }
    50%{
        transform: translateX(4px);
    }
    75%{
        transform: translatex(-3px);
    }
    100%{
        transform: translatex(0);
    }
}

/*area for the button to be populated into*/
.projectPagination{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /*space between buttons*/
    margin-top: 28px; /*makes the buttons not feel conencted to the cards*/
    padding-bottom: 20px; /*makes the buttons feel not connected to the footer section*/
}

.pagination-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-secondary);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pagination-button.active {
    background-color: var(--primary-emerald);
}

.pagination-button:not(.active):hover{
    border-color: var(--primary-emerald);
    transform: translateY(-2px);
}

/* temp mobile tweaking*/
@media (max-width: 1100px){
    .mainContentSection {
        grid-template-columns: 1fr;
    }
    .filterSection{
        width: 100%;
    }
    .rightColumn{
        width: 100%;
        min-width: 0;
    }
    .projectGrid{
        grid-template-columns: repeat(2, minmax(0, 300px));
        justify-content: center;
    }
    .projectCard{
        width: 100%;
        max-width: 300px;
    }
}