/* ============================================================
   NEF Projeler Sayfası - Birebir Tasarım
   ============================================================ */

/* Container - Nef gibi neredeyse tam genişlik */
.nef-projects-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .nef-projects-container {
        padding: 0 30px;
    }
}

@media (min-width: 1200px) {
    .nef-projects-container {
        padding: 0 50px;
    }
}

@media (min-width: 1400px) {
    .nef-projects-container {
        padding: 0 60px;
    }
}

@media (min-width: 1600px) {
    .nef-projects-container {
        padding: 0 40px;
    }
}

/* Section 1: Filter Dropdowns */
.projectListFilter {
    background: #2a2a2a;
    padding: 32px 0;
    position: relative;
    margin-top: 0;
    /*padding-top: 112px; /* Header yüksekliği (80px) + padding (32px) */
    z-index: 1;
    width: 100%;
}

/* Body padding override for projects page */
body.projects-page {
    padding-top: 0 !important;
}

.uk-section {
    margin: 0;
}

/*.uk-section-large {
    padding: 32px 0;
}*/

.uk-container {
    max-width: 100%;
    margin: 0 auto;
}

.uk-width-1-1 {
    width: 100%;
}

.projectListFilter .uk-container {
    max-width: 100%;
    padding: 0 50px;
}

@media (min-width: 1200px) {
    .projectListFilter .uk-container {
        padding: 0 60px;
    }
}

@media (min-width: 1600px) {
    .projectListFilter .uk-container {
        padding: 0 80px;
    }
}

.filters {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.filters--centered {
    justify-content: center;
}

.filter {
    position: relative;
    flex: 1;
}

.filter--centered {
    flex: 0 0 auto;
    max-width: 700px;
    width: 100%;
}

/* Filter Button */
.filterButton,
.locationfilterButton {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 400;
    position: relative;
    min-height: 48px;
    width: 100%;
    text-align: left;
    flex-wrap: wrap;
}

.filter-label-text {
    flex: 1;
    min-width: 0;
}

.filterButton .selectedTags[style*="display: flex"] ~ .filter-label-text,
.locationfilterButton .selectedTags[style*="display: flex"] ~ .filter-label-text {
    display: none;
}

.filterButton .selectedTags[style*="display: flex"],
.locationfilterButton .selectedTags[style*="display: flex"] {
    flex: 1;
    min-width: 0;
}

.filterButton:hover,
.locationfilterButton:hover {
    border-color: #d0d0d0;
    background: #f8f8f8;
}

.filterButton.active,
.locationfilterButton.active {
    border-color: #A67C52;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

/* Selected Tags */
.selectedTags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    margin-right: 8px;
    order: 1;
}

.selectedTags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3a3a3a;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
}

.selectedTags .tag-text {
    color: #ffffff;
}

.selectedTags .tag-close {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    font-weight: 300;
}

.selectedTags .tag-close:hover {
    opacity: 1;
}

/* Chevron Icon */
.chevron-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.filterButton.active .chevron-icon,
.locationfilterButton.active .chevron-icon {
    transform: rotate(180deg);
}

.filterButton.active,
.locationfilterButton.active {
    border-color: #A67C52;
}

.chevron-icon svg {
    width: 20px;
    height: 20px;
}

/* Dropdown Filters */
.categoryFilter,
.locationFilter {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 295px;
    overflow-y: auto;
    padding: 20px;
}

.categoryFilter::-webkit-scrollbar,
.locationFilter::-webkit-scrollbar {
    width: 6px;
}

.categoryFilter::-webkit-scrollbar-track,
.locationFilter::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.categoryFilter::-webkit-scrollbar-thumb,
.locationFilter::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.categoryFilter::-webkit-scrollbar-thumb:hover,
.locationFilter::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Filter Items */
.filterItems {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filterItem {
    display: flex;
    align-items: center;
}

.full-filter,
.half-filter {
    margin-bottom: 20px;
}

.full-filter:last-child,
.half-filter:last-child {
    margin-bottom: 0;
}

.full-filter h5,
.half-filter h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-container,
.location-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    transition: all 0.2s ease;
}

.image-container:hover,
.location-container:hover {
    opacity: 0.7;
}

.image-container.selected,
.location-container.selected {
    opacity: 1;
}

.filter-label {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 400;
}

.location-container {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 400;
}

/* Custom Checkbox */
.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #ffffff;
}

.checkbox:checked + .custom-checkbox {
    background: #A67C52;
    border-color: #A67C52;
}

.checkbox:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Section 2: Status Tabs */
.projectListTabs {
    background: #ffffff;
    padding: 24px 0;
    border-bottom: none;
}

.container-nef {
    max-width: 100%;
    padding: 0 50px;
}

@media (min-width: 1200px) {
    .container-nef {
        padding: 0 60px;
    }
}

@media (min-width: 1600px) {
    .container-nef {
        padding: 0 80px;
    }
}

.tabContent {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.tabSwiper {
    width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
}

.swiper-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.swiper-slide {
    width: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0;
}

.tabLink {
    display: inline-block;
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.tabLink:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.tabLink.active {
    background: #b59a88;
    border-color: #b59a88;
    color: #ffffff;
    font-weight: 500;
}

/* Proje Vitrin Bölümü */
.nef-projects-showcase {
    background: #ffffff;
    padding: 0px 0 100px; 
    min-height: 60vh;
}

.nef-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

@media (min-width: 1400px) {
    .nef-projects-grid {
        gap: 30px;
    }
}

/* Proje Kartları */
.nef-project-card {
    position: relative;
    display: block;
    border-radius: 0;
    overflow: hidden;
    background: #000000;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nef-project-card:hover {
    transform: translateY(-8px);
}

.nef-project-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.nef-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.nef-project-card:hover .nef-project-card__image img {
    transform: scale(1.08);
}

.nef-project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

/* Üst Sol Köşe - Stilize Proje Adı */
.nef-project-card__title-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 70%;
}

.nef-project-card__title-stylized {
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: lowercase;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    display: block;
    margin-bottom: 8px;
}

.nef-project-card__subtitle-overlay {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    display: block;
}

/* Alt Sol Köşe - Proje Adı */
.nef-project-card__content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.nef-project-card__title {
    font-size: 36px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.8px;
}

/* Sağ Alt Köşe - Keşfet Butonu */
.nef-project-card__cta {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 2;
}

.nef-project-card__cta-text {
    display: inline-block;
    padding: 14px 28px;
    /*background: rgba(255, 255, 255, 1);*/
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.nef-project-card:hover .nef-project-card__cta-text {
    /*background: #ffffff;*/
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Durum Badge */
.nef-project-card__badge {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.95);
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nef-project-card__badge--ongoing {
    background: rgba(52, 152, 219, 0.95);
}

.nef-project-card__badge--completed {
    background: rgba(39, 174, 96, 0.95);
}

/* Boş Durum */
.nef-projects-empty {
    text-align: center;
    padding: 100px 40px;
}

.nef-projects-empty i {
    font-size: 64px;
    color: #A67C52;
    margin-bottom: 24px;
}

.nef-projects-empty h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.nef-projects-empty p {
    color: #666666;
    margin-bottom: 32px;
    font-size: 16px;
}

.nef-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #A67C52;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nef-btn:hover {
    background: #8B6F47;
    transform: translateY(-2px);
}

.nef-btn--ghost {
    background: transparent;
    border: 1px solid #A67C52;
    color: #A67C52;
}

.nef-btn--ghost:hover {
    background: #A67C52;
    color: #ffffff;
}

/* Sağ Sidebar - Sabit Butonlar */
.nef-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nef-sidebar__btn {
    width: 60px;
    height: 120px;
    background: #A67C52;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nef-sidebar__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nef-sidebar__btn:hover::before {
    transform: translateX(0);
}

.nef-sidebar__btn:hover {
    background: #8B6F47;
    width: 70px;
}

.nef-sidebar__btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nef-sidebar__btn-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nef-sidebar__btn--call {
    border-top-left-radius: 8px;
}

.nef-sidebar__btn--online {
    border-bottom-left-radius: 8px;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .nef-projects-container {
        padding: 0 24px;
    }
    
    .projectListFilter .uk-container,
    .container-nef {
        padding: 0 30px;
    }
    
    .nef-projects-grid {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .nef-projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nef-project-card__title {
        font-size: 28px;
    }
    
    .nef-project-card__title-stylized {
        font-size: 20px;
    }
    
    .filters--centered {
        justify-content: center;
    }
    
    .filter--centered {
        max-width: 100%;
    }
    
    .categoryFilter,
    .locationFilter {
        right: 0;
        left: 0;
    }
}

@media (max-width: 768px) {
    .nef-projects-container {
        padding: 0 16px;
    }
    
    .projectListFilter {
        padding: 24px 0;
        margin-top: 0;
    }
    
    .projectListFilter .uk-container,
    .container-nef {
        padding: 0 20px;
    }
    
    .projectListTabs {
        padding: 20px 0;
    }
    
    .filterButton,
    .locationfilterButton {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .tabContent {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
    }
    
    .tabContent::-webkit-scrollbar {
        display: none;
    }
    
    .tabSwiper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    
    .swiper-wrapper {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-right: 20px;
    }
    
    .tabLink {
        padding: 8px 18px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .nef-projects-showcase {
        padding: 5px 0 80px;
    }
    
    .nef-project-card__title-overlay {
        top: 20px;
        left: 20px;
    }
    
    .nef-project-card__content {
        bottom: 20px;
        left: 20px;
    }
    
    .nef-project-card__cta {
        bottom: 20px;
        right: 20px;
    }
    
    .nef-project-card__title {
        font-size: 24px;
    }
    
    .nef-project-card__title-stylized {
        font-size: 18px;
    }
    
    .nef-project-card__cta-text {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .nef-sidebar {
        display: none;
    }
}

@media (max-width: 576px) {
    .container-nef {
        padding: 0 16px;
    }
    
    .tabContent {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
    }
    
    .tabContent::-webkit-scrollbar {
        display: none;
    }
    
    .tabSwiper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    
    .swiper-wrapper {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-right: 16px;
        gap: 6px;
    }
    
    .swiper-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .tabLink {
        padding: 8px 16px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .nef-project-card__title {
        font-size: 20px;
    }
    
    .nef-project-card__title-stylized {
        font-size: 16px;
    }
}

/* Scroll Animasyonları */
@media (prefers-reduced-motion: no-preference) {
    .nef-project-card {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .nef-project-card:nth-child(1) { animation-delay: 0.1s; }
    .nef-project-card:nth-child(2) { animation-delay: 0.2s; }
    .nef-project-card:nth-child(3) { animation-delay: 0.3s; }
    .nef-project-card:nth-child(4) { animation-delay: 0.4s; }
    .nef-project-card:nth-child(5) { animation-delay: 0.5s; }
    .nef-project-card:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
