/*
Theme Name: Nisa Portfolio Theme
Author: Gurkan Kose
Version: 1.1
*/

/* 1. Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-image: url('assets/img/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #000000;
    /* Yazılar PDF'te siyah/koyu tonda */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 2. Header (Üst Menü) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 4%;
    /* Sağ sol boşluğu biraz daraltarak genişleme alanı açtık */
    width: 100%;
}

.mobile-nav-overlay {
    display: none;
}

.logo img {
    max-height: 80px;
    display: block;
}

.main-nav {
    flex-grow: 1;
    /* Navbarın sol tarafa doğru yayılmasını sağlar */
    max-width: 850px;
    /* Butonların çok fazla ayrışıp kopmaması için maksimum sınır */
    margin-right: 40px;
    /* Logo ile buton grubu arasında makul bir mesafe bırakır */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    /* Tasarımdaki gibi fırçaların birbirine yakın durması için boşluğu azalttık */
    width: 100%;
    justify-content: space-between;
    /* Butonları kendi içinde dengeli yayar */
}

.main-nav ul li {
    flex-grow: 1;
    /* Her bir butonun alanı eşit bölüşmesini sağlar */
}

/* Menü elemanlarının arkasındaki fırça darbesi efekti */
.main-nav ul li a {
    font-size: 16px;
    /* Yazıları tasarımdaki büyüklüğe çektik */
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Yükseklik ve Genişlik Dengesi */
    width: 100%;
    height: 65px;
    /* Fırçanın dikeyde kendini göstermesi için ideal yükseklik */

    background-image: url('assets/img/header-item-background.png');
    background-size: 100% 100%;
    /* Görselin alanı tamamen kaplamasını sağlar */
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;

    padding: 0 10px;
    /* İçeriden hafif pay */
    transition: transform 0.2s ease;
}

.main-nav ul li a:hover {
    transform: scale(1.05);
    /* Üzerine gelindiğinde tatlı bir büyüme efekti */
}

/* 3. Ana Konteyner ve PDF'e Uygun Kategori Satırları */
.container {
    max-width: 1200px;
    /* İçeriği biraz daha daraltarak ortalıyoruz */
    margin: 20px auto;
    width: 100%;
    flex-grow: 1;
}

/* Grid yerine alt alta dizilim sağlayan esnek flex yapısı */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* PDF'teki gibi birbirine yakın dalgalar */
    align-items: center;
    width: 100%;
    padding: 50px 0;
}

/* PDF'teki o yatay, dalgalı fırça şeridi */
.category-item {
    background-image: url('assets/img/category-item-background.png');
    background-size: 100% 100%;
    /* Görseli ezmeden tam kaplaması için */
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 800px;
    height: 110px;
    /* Şeridin yüksekliği */
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: scale(1.02);
    /* Hafif büyüme efekti */
}

/* Kategori Yazıları */
.category-item a {
    font-size: 32px;
    /* PDF'te yazılar oldukça büyük ve net */
    font-weight: 700;
    font-style: italic;
    /* Tasarımdaki eğik duruş için */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000000;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 10%;
    padding-bottom: 15px;
}

/* Kategori kutusuna hover olunduğunda içindeki a etiketini etkile */
.category-item:hover a {
    color: #ffffff;
}

/* 4. Footer Alanı */
.main-footer {
    background-color: #444444;
    /* PDF'teki koyu mat gri tonu */
    padding: 30px 5%;
    width: 100%;
    margin-top: auto;
    /* Sayfa içeriği az olsa bile footer'ı hep en alta iter */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Sol, Orta ve Sağ alanların genişlik dengesi */
.footer-left,
.footer-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-center {
    flex: 2;
    text-align: center;
}

.footer-right {
    justify-content: flex-end;
    gap: 20px;
    /* İkonların arasındaki boşluk */
}

/* Sol taraftaki mini logonun boyutu */
.footer-mini-logo {
    max-height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Siyah logoyu beyaza çevirmek için pratik CSS filtresi */
}

/* Orta kısımdaki yazı stili */
.footer-center p {
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    /* Tasarımdaki gibi eğik duruş */
    letter-spacing: 0.5px;
    color: #ffffff;
    /* */
}

/* Sağ taraftaki sosyal medya ikonları */
.footer-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
    /* İkon renkleri beyaz */
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-icon:hover svg {
    transform: scale(1.15);
    color: #cccccc;
    /* Hover durumunda hafif grileşme */
}

/* 5. Biyografi Sayfası Tasarımı */

/* Başlık fırça şeridi */
.page-title-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 50px 0;
}

.page-title-brush {
    background-image: url('assets/img/category-item-background.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 600px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    color: #000000;
    /* Fırça siyah olduğu için yazı beyaz */
    letter-spacing: 2px;
}

/* Yan yana profil ve metin esnek yapısı */
.biyografi-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Profil Fotoğraf Çerçevesi */
.biyografi-photo-box {
    flex: 0 0 260px;
    height: 260px;
    border: 4px solid #000000;
    /* Görselin etrafındaki kalın siyah çerçeve */
    overflow: hidden;
    background-color: #fff;
}

.biyografi-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Metin Kutusu */
.biyografi-text-box {
    flex: 1;
}

.biyografi-text-box p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #000000;
    /* Tasarımdaki gibi metin rengi siyah */
    text-align: justify;
}

/* Alt taraftaki dikey iletişim bilgileri listesi */
.biyografi-info-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
        gap: 15px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000000;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 15px;
}

.info-item svg {
    width: 22px;
    height: 22px;
    color: #000000;
}

/* 6. Tasarımlar Sayfası (Kategori & Post Grid) */

/* Filtre Barı Alanı */
.tasarim-filter-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.tasarim-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    width: 100%;
}

/* Küçük Filtre Fırça Butonları */
.tasarim-filter-bar li a {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 200px;
    /* Küçük fırça boyutu */
    height: 64px;

    background-image: url('assets/img/header-item-background.png');
    /* Menüdeki fırçayı burada da kullandık */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tasarim-filter-bar li a:hover,
.tasarim-filter-bar li.active a {
    transform: scale(1.05);
    opacity: 0.9;
    /* Aktif olana veya hover olana hafif vurgu */
}

/* Tasarımların Listelendiği Grid Sistemi */
.tasarim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Ekran genişliğine göre otomatik sığar */
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Kart Yapısını Sadece Görsele Dönüştürme */
.tasarim-card {
    position: relative;
    /* İçindeki overlay'i konumlandırmak için şart */
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
    /* Sabit bir kutu boyutu verdik */
    transition: transform 0.3s ease;
}

.tasarim-card:hover {
    transform: scale(1.02);
}

.tasarim-thumbnail {
    width: 100%;
    height: 100%;
    border-bottom: none;
    /* Altındaki çizgiyi kaldırdık çünkü artık alt bilgi alanı yok */
}

.tasarim-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover Overlay Katmanı */
.tasarim-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    /* Görseli hafif karartan transparan katman */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Normalde gizli */
    transition: opacity 0.3s ease;
    padding: 20px;
    pointer-events: none;
    display: none;
}

.tasarim-card:hover .tasarim-hover-overlay {
    opacity: 1;
    /* Üzerine gelince görünür yap */
}

/* Hover Sırasında Çıkan Fırça Efektli İsim Alanı */
.tasarim-hover-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 25px;
    text-align: center;

    /* Menü ve filtrelerdeki fırça dokusunu buraya da yedirdik */
    background-image: url('assets/img/header-item-background.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.tasarim-card:hover .tasarim-hover-title {
    transform: translateY(0);
    /* Aşağıdan yukarı hafifçe süzülerek gelsin */
}

.no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    font-style: italic;
    color: #666666;
    margin: 40px 0;
}

.no-thumb {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    color: #999999;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #f0f0f0;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 30px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-text);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-heading);
}

.modal-title {
    font-size: 24px;
    color: var(--color-heading);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}


/* 7. İletişim Sayfası (Contact Page) */

/* Biyografi ve İletişim gibi düz içerik sayfaları için özel dar konteyner */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px;
}

/* İletişim Satırlarının Listesi */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Satırlar arası boşluk */
}

/* Her Bir İletişim Satırı */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    /* İkon ve yazı arası boşluk */
    font-size: 18px;
    font-weight: 700;
}

/* 8. Mobil Uyumluluk */
@media (max-width: 768px) {

    /* Hamburger Buton Tasarımı */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10000;
        /* Her şeyin üstünde kalmalı */
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #000000;
        /* Çizgi rengi */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Hamburger Aktif Olduğunda (X işaretine dönüşme animasyonu) */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ffffff;
        /* Menü açılınca çizgiler beyaz olsun (arka plan koyulaşacağı için) */
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ffffff;
    }

    /* Tam Ekran Açılan Mobil Menü Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        /* Arkaya koyu transparan katman */
        backdrop-filter: blur(8px);
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Mobil Menü Aktif Olduğunda */
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobil Menü Link Listesi */
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 25px;
        /* Linkler arası dikey boşluk */
        align-items: center;
        width: 100%;
    }

    .mobile-nav ul li {
        width: 80%;
        max-width: 280px;
        text-align: center;
    }

    .mobile-nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 1px;
        text-transform: uppercase;

        /* Orijinal tasarımdaki fırça dokusunu buraya yedirdik kanka */
        background-image: url('assets/img/header-item-background.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.2s ease;
    }

    .mobile-nav ul li a:hover {
        transform: scale(1.05);
    }

    .category-item {
        height: 80px;
    }

    .category-item a {
        font-size: 16px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
        flex: none;
    }

    .footer-center {
        flex: none;
    }

    .biyografi-layout {
        flex-direction: column;
        text-align: center;
    }

    .biyografi-text-box p {
        text-align: center;
    }

    .page-title-brush {
        height: 70px;
        font-size: 18px;
    }

    .tasarim-filter-bar li a {
        width: 110px;
        height: 38px;
        font-size: 11px;
    }

    .tasarim-modal {
        padding: 15px;
    }

    .tasarim-card {
        height: 250px;
    }

    .tasarim-hover-title {
        font-size: 13px;
        padding: 10px 15px;
    }

    /* Mevcut masaüstü menüyü mobilde gizle */
    .main-nav {
        display: none !important;
    }

    /* Header Alanını Düzenle (Logo ve Hamburger yan yana) */
    .main-header {
        flex-direction: row-reverse;
        /* Hamburger solda/sağda kalacak şekilde ayarlar */
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
        gap: 0;
    }

    .logo img {
        max-height: 55px;
        /* Mobilde logoyu biraz küçülttük */
    }
}