/*
Theme Name: Yahya Sırrı Turğut Portfolio
Theme URI: http://yahyasirri.com
Author: Yahya Sırrı Turğut
Description: Minimalist Sanatçı Portfolyo Teması (Bootstrap 5 & Custom CPT)
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: yst-portfolio
*/

/* ============================================
   1. GENEL AYARLAR & TİPOGRAFİ
   ============================================ */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
    --color-accent: #cc0000; /* Marka Rengi: Kırmızı */
    --color-text: #212529;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 150px; /* Header yüksekliği kadar boşluk */
}

h1, h2, h3, h4, h5, .font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.ls-2 { letter-spacing: 2px; }

a { 
    text-decoration: none; 
    transition: all 0.3s ease; 
    color: inherit;
}

.section-padding { 
    padding-top: 80px; 
    padding-bottom: 80px; 
}

/* ============================================
   2. NAVBAR (HEADER) & LOGO
   ============================================ */
.navbar {
    background: #fff;
    transition: all 0.4s ease;
    min-height: 130px; /* Varsayılan geniş yükseklik */
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Sayfa aşağı kaydırıldığında */
.navbar.scrolled {
    min-height: 80px; /* Daralmış yükseklik */
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* --- LOGO AYARLARI --- */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 0;
}

.navbar-brand img {
    max-height: 100px; 
    width: auto; /* En-boy oranını korur */
    transition: max-height 0.4s ease;
    display: block;
}

/* Scroll yapınca logo küçülsün */
.navbar.scrolled .navbar-brand img {
    max-height: 60px;
}

/* --- MENÜ LİNKLERİ (MASAÜSTÜ) --- */
.navbar-nav {
    flex-direction: row; 
    align-items: center;
}

.navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 700;
    color: #111 !important;
    padding: 0 1.2rem !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--color-accent) !important;
}

/* ============================================
   3. MOBİL MENÜ (FULL SCREEN)
   ============================================ */
.offcanvas-top { 
    height: 100vh !important; /* Tüm ekranı kapla */
    background-color: #fff; 
}

.mobile-nav-link {
    font-size: 2rem; 
    color: #111; 
    font-weight: 700; 
    display: inline-block;
}

.mobile-nav-link:hover { 
    color: var(--color-accent); 
}

/* Mobil menü liste hizalaması */
.mobile-menu-list li {
    margin-bottom: 1.5rem;
}

/* ============================================
   4. KART TASARIMLARI (ESER, EĞİTİM, PROJE)
   ============================================ */
   
/* -- Eser Kartı -- */
.artwork-card {
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    height: 100%;
    display: flex; 
    flex-direction: column;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

.artwork-card .overflow-hidden {
    overflow: hidden;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    flex-grow: 1; 
    position: relative;
}

.artwork-card .overflow-hidden img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 350px; /* Görsel yüksekliği sabittir */
    object-fit: cover;
    display: block;
}

.artwork-card:hover img {
    transform: scale(1.05); 
}

.artwork-info {
    padding: 15px;
    background: #fff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    text-align: center;
}

/* -- Kategori Bilgi Kartı (Dergi Düzeni) -- */
.category-card {
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* -- Eğitim Kartı -- */
.edu-card {
    position: relative;
    transition: transform 0.3s ease;
}
.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* -- Proje Kartı -- */
.project-card {
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
}
.project-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--color-accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* ============================================
   5. GALERİ FİLTRE BUTONLARI
   ============================================ */
#portfolio-flters .btn-filter {
    cursor: pointer; 
    padding: 8px 20px; 
    font-weight: 600; 
    text-transform: uppercase;
    color: #666; 
    border: none; 
    background: transparent; 
    border-bottom: 2px solid transparent;
    letter-spacing: 1px;
}

#portfolio-flters .filter-active, 
#portfolio-flters .btn-filter:hover {
    color: var(--color-accent); 
    border-bottom: 2px solid var(--color-accent);
}

/* ============================================
   6. SLIDER & ZOOM
   ============================================ */
.event-carousel {
    border-radius: 5px;
    overflow: hidden;
}

.event-carousel .carousel-item img {
    height: 500px; 
    width: 100%; 
    object-fit: cover; 
    transition: transform 0.8s ease;
}

.event-carousel:hover .carousel-item img { 
    transform: scale(1.08); 
}

/* Tekil Görseller (Basın vb.) */
.hover-zoom {
    border-radius: 4px;
    overflow: hidden;
}
.hover-zoom img { 
    transition: transform 0.5s ease; 
}
.hover-zoom:hover img { 
    transform: scale(1.05); 
}

/* ============================================
   7. FOOTER
   ============================================ */
footer { 
    font-size: 0.85rem; 
    border-top: 1px solid #eee; 
}

footer i { 
    font-size: 1.3rem; 
    transition: color 0.3s ease; 
}

footer i:hover { 
    color: var(--color-accent); 
}

/* ============================================
   8. MANİFESTO ÖZEL STİLLER
   ============================================ */
.drop-cap::first-letter {
    font-size: 3.5rem;
    float: left;
    margin-top: -10px;
    margin-right: 10px;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}
.quote-box {
    border-left: 4px solid var(--color-accent);
    padding-left: 30px;
    font-style: italic;
    margin: 3rem 0;
}

/* ============================================
   9. MOBİL UYUMLULUK (RESPONSIVE)
   ============================================ */
@media (max-width: 991px) {
    .navbar-brand img { max-height: 60px; } 
    .navbar { min-height: 80px; }
    .navbar-nav { flex-direction: column; text-align: center; }
    body { padding-top: 100px; }
    .display-4 { font-size: 2.5rem; }
    .bi-list { font-size: 2rem; }
    .event-carousel .carousel-item img { height: 300px; }
    .artwork-card .overflow-hidden img { height: 250px; }
}