/**
 * Projects Archive & Single Page Styles
 * 
 * Styles for projects listing page and single project view
 */

/* Page Containers */
.projects-archive-page,
.single-project-page {
    background-color: #202126;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

/* Breadcrumbs - positioned 24px below header */
.breadcrumb-section {
    background: transparent;
    /* Header: 48px top padding + 72px logo height + 24px gap = 144px */
    padding-top: 144px;
    padding-bottom: 54px;
    margin: 0;
}

.breadcrumb-section__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    box-sizing: border-box;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb__link {
    font-family: 'Reddit Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    text-decoration: none;
    color: rgba(244, 244, 244, 1);
    font-weight: 300;
}

.breadcrumb__current {
    font-family: 'Reddit Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: rgba(244, 244, 244, 1);
    font-weight: 500;
}

.breadcrumb__separator {
    width: 24px;
    height: 24px;
    display: inline-block;
}

/* ====================================
   Projects Archive Page
   ==================================== */
.projects-content {
    background-color: #202126;
    padding: 0 0 100px 0;
}

.projects-content__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    box-sizing: border-box;
}

/* Page Title */
.projects-title {
    font-family: Aboreto;
    font-weight: 400;
    font-style: normal;
    font-size: 50px;
    line-height: 60px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: rgba(244, 244, 244, 1);
    margin: 0 0 64px 0;
    text-align: left;
}

/* Filters - Custom dropdown design */
.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 64px;
    align-items: center;
}

/* Custom filter dropdowns - modern clean design with fam-mep colors */
.filter-dropdown {
    position: relative;
    cursor: pointer;
    background: transparent;
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(244, 244, 244, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.filter-dropdown:hover .filter-label {
    border-color: rgba(244, 244, 244, 0.6);
}

.filter-dropdown.is-open .filter-label {
    border-color: rgba(244, 244, 244, 1);
}

.filter-text {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: rgba(244, 244, 244, 1);
    transition: color 0.3s ease;
}

.filter-dropdown.is-open .filter-text {
    color: rgba(244, 244, 244, 1);
}

.filter-arrow {
    width: 25px;
    height: 25px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.filter-dropdown:hover .filter-arrow {
    opacity: 1;
}

.filter-dropdown.is-open .filter-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.filter-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(32, 33, 38, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(244, 244, 244, 0.2);
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-dropdown.is-open .filter-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.filter-option {
    padding: 7px 20px;
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 22px;
    color: rgba(244, 244, 244, 1);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 8px;
    position: relative;
}

.filter-option:hover {
    background-color: rgba(244, 244, 244, 0.1);
    color: rgba(244, 244, 244, 1);
    transform: translateX(2px);
}

.filter-option.is-selected {
    background-color: rgba(244, 244, 244, 1);
    color: rgba(32, 33, 38, 1);
    font-weight: 400;
}

.filter-option.is-selected:hover {
    background-color: rgba(244, 244, 244, 1);
    transform: none;
}

.filter-option.is-clear {
    font-weight: 500;
    color: rgba(244, 244, 244, 0.9);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(244, 244, 244, 0.1);
    border-radius: 8px 8px 0 0;
}

.filter-option.is-clear:hover {
    background-color: rgba(244, 244, 244, 0.08);
    color: rgba(244, 244, 244, 1);
}

.filter-option.is-clear.is-selected {
    background-color: rgba(244, 244, 244, 1);
    color: rgba(32, 33, 38, 1) !important;
    font-weight: 500;
}

.filter-option.is-clear.is-selected:hover {
    background-color: rgba(244, 244, 244, 1);
    color: rgba(32, 33, 38, 1) !important;
}

.projects-filters__reset {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: rgba(244, 244, 244, 0.7);
    background-color: transparent;
    border: none;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
    flex-shrink: 0;
    align-self: center;
}

.projects-filters__reset:hover {
    color: rgba(244, 244, 244, 1);
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Project Card */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 84px;
    align-items: center;
}

.project-card__image-link {
    display: block;
    text-decoration: none;
}

.project-card__image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.project-card__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card__image-link:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card__title-link:hover .project-card__title {
    color: rgba(244, 244, 244, 0.8);
}

.project-card__image-placeholder {
    width: 100%;
    padding-top: 66.67%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.project-card__content {
    display: flex;
    flex-direction: column;
}

.project-card__title {
    font-family: var(--fam-font-heading);
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    text-transform: uppercase;
    color: var(--fam-text-light);
    margin: 0 0 16px 0;
}

.project-card__location {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(244, 244, 244, 0.7);
    margin: 0 0 8px 0;
}

.project-card__detail {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: rgba(244, 244, 244, 1);
    margin: 0 0 24px 0;
}

.projects-list__no-results {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: rgba(244, 244, 244, 0.7);
    text-align: center;
    padding: 60px 0;
}

/* ====================================
   Single Project Page
   ==================================== */
.single-project-content {
    background-color: #202126;
    padding: 0 0 100px 0;
}

.single-project-content__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    box-sizing: border-box;
}

/* Project Title */
.single-project__title {
    font-family: Aboreto;
    font-weight: 400;
    font-style: normal;
    font-size: 50px;
    line-height: 60px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: rgba(244, 244, 244, 1);
    margin: 0 0 72px 0;
    text-align: left;
}

/* Main Section: Two Columns */
.single-project__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Left Column: Featured Image */
.single-project__image {
    width: 100%;
    min-width: 0; /* Allow proper shrinking */
}

.single-project__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Right Column: Project Overview */
.single-project__overview {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow text wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.single-project__overview-title {
    font-family: Aboreto;
    font-weight: 400;
    font-style: normal;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: rgba(244, 244, 244, 1);
    margin: 0 0 12px 0;
}

.single-project__overview-content {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: rgba(244, 244, 244, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 18px;
}

.single-project__overview-content p {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: rgba(244, 244, 244, 1);
    margin: 0 0 16px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.single-project__overview-content p:last-child {
    margin-bottom: 0;
}

/* Project Details List */
.single-project__details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.single-project__detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-project__detail-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.single-project__detail-text {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: rgba(244, 244, 244, 1);
}

/* ====================================
   Responsive Design
   ==================================== */

/* Large Desktop Optimization */
@media (min-width: 1920px) {
    .breadcrumb-section__container,
    .projects-content__container,
    .single-project-content__container {
        max-width: 1800px;
    }
}

@media (min-width: 2560px) {
    .breadcrumb-section__container,
    .projects-content__container,
    .single-project-content__container {
        max-width: 2200px;
    }
}

/* Tablet (below 1200px) */
@media (max-width: 1199px) {
    .projects-content__container,
    .single-project-content__container {
        padding: 0 clamp(2rem, 4vw, 3rem);
    }

    .project-card {
        gap: 60px;
    }
}

/* Small Tablet (below 992px) */
@media (max-width: 991px) {
    .projects-title,
    .single-project__title {
        font-size: 42px;
        line-height: 50px;
        margin-bottom: 48px;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .single-project__main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .single-project__overview-title {
        font-size: 32px;
        line-height: 40px;
    }

    .single-project__overview-content {
        margin-bottom: 16px;
    }

    .single-project__details-list {
        gap: 14px;
    }

    .single-project__detail-text {
        font-size: 15px;
        line-height: 22px;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .breadcrumb-section {
        /* Mobile: 48px header + 56px logo + 27px gap = 131px */
        padding-top: 131px;
        padding-bottom: 40px;
    }

    .breadcrumb-section__container {
        padding: 0 var(--fam-mobile-edge-padding);
    }

    .projects-content,
    .single-project-content {
        padding: 0 0 60px 0;
    }

    .projects-content__container,
    .single-project-content__container {
        padding: 0 var(--fam-mobile-edge-padding);
    }

    .projects-title,
    .single-project__title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 40px;
    }

    .projects-filters {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 48px;
    }

    .filter-dropdown {
        width: 100%;
        min-width: unset;
    }

    .projects-filters__reset {
        align-self: flex-start;
    }

    .projects-list {
        gap: 40px;
    }

    .project-card__title {
        font-size: 24px;
        line-height: 32px;
    }

    .single-project__main {
        gap: 32px;
    }

    .single-project__overview-title {
        font-size: 28px;
        line-height: 36px;
    }

    .single-project__overview-content {
        margin-bottom: 14px;
    }

    .single-project__details-list {
        gap: 12px;
    }

    .single-project__detail-item {
        gap: 10px;
    }

    .single-project__detail-icon {
        width: 20px;
        height: 20px;
    }

    .single-project__detail-text {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 479px) {
    .breadcrumb-section {
        /* Mobile: 48px header + 56px logo + 27px gap = 131px */
        padding-top: 131px;
        padding-bottom: 32px;
    }

    .projects-title,
    .single-project__title {
        font-size: 28px;
        line-height: 36px;
    }

    .project-card__title {
        font-size: 20px;
        line-height: 28px;
    }

    .single-project__overview-title {
        font-size: 24px;
        line-height: 32px;
    }

    .single-project__overview-content {
        margin-bottom: 12px;
    }

    .single-project__detail-icon {
        width: 18px;
        height: 18px;
    }

    .single-project__detail-text {
        font-size: 14px;
        line-height: 20px;
    }
}

