/* 1. TEMEL AYARLAR */
:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #888888;
    --panel-border: #111111;
    --accent: #ffffff;
    --max-width: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
}

/* Ensure responsive images */
img { max-width: 100%; height: auto; display: block; }

/* 2. SCROLL SNAP */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(255,255,255,0.12); outline-offset: 3px; }

/* PANEL AYARLARI */
.panel {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #111;
}

/* 3. TİPOGRAFİ */
h1 { font-size: 6rem; font-weight: 800; letter-spacing: -3px; line-height: 1; }
h2 { font-size: 4rem; font-weight: 800; letter-spacing: -2px; text-transform: uppercase; }
p { color: var(--muted); letter-spacing: 2px; font-weight: 300; }

.title { font-size: 0.9rem; margin-bottom: 1rem; color: #555; }
.footer { font-size: 1.5rem; margin-top: 1rem; color: var(--fg); letter-spacing: 10px; text-transform: uppercase; }

/* Responsive typography */
@media (max-width: 768px) {
    h1 { font-size: 3.4rem; }
    h2 { font-size: 2.4rem; }
    p { font-size: 0.95rem; letter-spacing: 1px; }
    .title { font-size: 0.8rem; }
    .footer { font-size: 1rem; letter-spacing: 6px; }
} 

/* -- BÖLÜM 1: IDENTITY -- */
.content-center { text-align: center; z-index: 2; }

/* -- BÖLÜM 2: PINTEREST -- */
.split-layout {
    display: flex;        /* Yan yana dizmek için şart */
    justify-content: center;
    align-items: center;
    gap: 5rem;
    width: 80%;
    max-width: 1200px;
}

.text-side { 
    text-align: left; 
    flex: 1; /* Alanı paylaş */
}

/* Buton stilini düzelttim */
.pinterest-btn {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    transition: background 0.25s, color 0.25s, transform 0.25s;
    text-transform: uppercase;
    border-radius: 6px;
}
.pinterest-btn:hover,
.pinterest-btn:focus {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 6px 18px rgba(255,255,255,0.06);
}
.pinterest-btn:focus-visible { outline: 3px solid rgba(255,255,255,0.12); outline-offset: 3px; }

.image-side {
flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.card-deck {
position: relative;
    width: 320px; 
    height: 400px;
    cursor: pointer;
}

.card-deck img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 10px;

object-fit: cover;
background-color: transparent;
border: none;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-deck img:nth-child(1) {
    z-index: 1;
    transform: translateX(-20px) scale(0.95);
    filter: brightness(0.5);
}

.card-deck img:nth-child(2) {
    z-index: 2;
    transform: translateX(0) scale(1);
    filter: brightness(0.7);
}

.card-deck img:nth-child(3) {
    z-index: 3;
    transform: translateX(20px) scale(0.95);
    filter: brightness(0.5);
}

.card-deck:hover img:nth-child(1) {
    transform: translateX(-120px) rotate(-15deg) scale(1);
    filter: brightness(1);
    z-index: 4;
}
.card-deck:hover img:nth-child(2) {
    transform: translateX(-20px) scale(1.1);
    filter: brightness(1);
    z-index: 5;
}

.card-deck:hover img:nth-child(3) {
    transform: translateX(120px) rotate(15deg) scale(1);
    filter: brightness(1);
    z-index: 6;
}

/* -- BÖLÜM 3: POSTERS -- */
#posters {
    background-color: #000;
}

.marquee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0.4; 
    transform: rotate(-5deg) scale(1.2); 
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: scrollLeft 20s linear infinite;
}

.marquee-content img {
    height: 60vh; 
    width: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-content { animation: none !important; }
} 

.overlay-text {
    z-index: 5; 
    text-align: center;
    mix-blend-mode: difference;
}

.enter-exhibit-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 15px 40px;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.5);
    transition: background 0.25s, color 0.25s, letter-spacing 0.25s, transform 0.25s;
    border-radius: 8px;
}

.enter-exhibit-btn:hover,
.enter-exhibit-btn:focus {
    background: var(--accent);
    color: var(--bg);
    letter-spacing: 4px;
    transform: translateY(-3px);
    outline: none;
    box-shadow: 0 6px 30px rgba(255,255,255,0.06);
}
.enter-exhibit-btn:focus-visible { outline: 3px solid rgba(255,255,255,0.12); outline-offset: 3px; }

/*  SPOTIFY */
.spotify-wrapper {
    margin-top: 2rem;
    width: 500px; 
    max-width: 90vw;
}

/* 
   mobil
 */

@media (max-width: 768px) {

    /* 1. Tipografiyi Ehlileştir */
    h1 {
        font-size: 3.5rem; /* 6rem'den düştü */
        letter-spacing: -1px;
    }

    h2 {
        font-size: 2.5rem; /* 4rem'den düştü */
    }

    .alt-baslik {
        font-size: 1rem;
        letter-spacing: 5px;
    }
    
    .title {
        margin-top: -2rem; /* Mobilde biraz yukarı alalım */
    }

    /* 2. Panelleri Düzenle */
    .panel {
        /* Mobilde adres çubuğu sorunu olmasın diye svh kullanıyoruz */
        height: 100svh; 
        padding: 1rem; /* Kenarlardan boşluk */
    }

    /* 3. Pinterest Bölümü: Alt Alta Diz */
    .split-layout {
        flex-direction: column-reverse; /* Resmi üste, yazıyı alta al */
        gap: 2rem;
        width: 100%;
        text-align: center;
    }

    .text-side {
        text-align: center; /* Yazıyı ortala */
    }

    /* Kart Destesini Küçült */
    .card-deck {
        transform: scale(0.75); /* %75 oranında küçült */
        margin-bottom: 1rem;
    }
    
    /* Mobilde hover olmadığı için tıklayınca açılsın (active) */
    .card-deck:active img:nth-child(1) { transform: translateX(-100px) rotate(-15deg); }
    .card-deck:active img:nth-child(3) { transform: translateX(100px) rotate(15deg); }

    /* 4. Posterler (Marquee) */
    .marquee-content img {
        height: 40vh; /* Posterleri biraz küçült */
    }
    
    .overlay-text {
        width: 90%; /* Yazı ekranın dışına taşmasın */
    }

    /* 5. Spotify */
    .spotify-wrapper {
        width: 100%;
        padding: 0 1rem;
    }
}




.libary-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.library-header{
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.library-header h2{
    margin-left: 0;
}

.library-header p{
    margin-left: 0;
} 

.spine-shelf {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 400px;
    padding: 0 50px;
    overflow-x: auto;
    min-width: 90vw;
}

/*
   libary
 */

.book-spine {
    /* Kutu Ayarları */
    width: 40px; 
    background-color: #111;
    border: 1px solid #333;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Pozisyonlama için şart */
    position: relative; 
    display: block;
    overflow: hidden;
}

/* Rastgele yükseklikler */
.book-spine:nth-child(odd) { height: 75%; }
.book-spine:nth-child(even) { height: 90%; }
.book-spine:nth-child(3n) { height: 65%; }

/* Hover: Sadece renk değişsin */
.book-spine:hover {
    background-color: #fff;
    color: #000;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Başlık Yazısı */
.spine-title {
    /* 1. Konum: Kutunun tam ortasına sabitle */
    position: absolute;
    top: 50%;
    left: 50%;
    
    /* 2. Genişlik: Yazının sığması için hayali genişlik ver */
    width: 300px; 
    
    /* 3. Dönüşüm: Ortala ve 90 derece döndür */
    transform: translate(-50%, -50%) rotate(-90deg);
    
    /* 4. Görünüm */
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: inherit; /* Rengini ebeveyninden (book-spine) al */
    
    /* 5. Güvenlik: Asla satır kırma */
    white-space: nowrap; 
}


.spine-details {
    display:none;
    opacity: 0;
    text-align: center;
    padding: 1rem;
}

.book-spine:hover {
    width: 250px;
    height: 100% !important;
    background-color: #fff;
    color: #000;
    z-index: 10;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}


.book-spine:hover .spine-title {
    display: none;
}

.book-spine:hover .spine-details {
 display: flex;
 flex-direction: column;
 justify-content: center;
 height: 100%;
 opacity: 1;
 animation: fadeIn 0.5s;
}

.spine-author {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    margin-bottom: 0.5rem;
}

.spine-year {
    font-size: 3rem;
    font-weight: 800;
    color: #ddd;
    margin-bottom: 1rem;
}

.spine-desc {
    font-size: 1rem;
    line-height: 1.4;
}

 @keyframes fadeIn {
    from { opacity: 0; transform:  translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.shelf-line {
    width: 80%;
    height: 2px;
    background-color: #fff;
    margin-top: 0;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .shelf-line { width: calc(100% - 24px); margin-left: 12px; }
} 

/*cortex*/
#mindmap  {
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.mindmap-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mindmap-header{
    position: absolute;
    top: 50px;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    padding: 10px 30px;
    border-radius: 20px;
}

#network-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#network-canvas:active {
    cursor: grabbing;
}




/* -- github -- */

#github-section {
    background-color: #050505;
}

.github-link{
    display: inline-block;
    margin-top: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.code-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-window {
    width: 450px;
    height: 350px;
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.teminal-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: #666;
}

.teminal-body {
padding: 15px;
color: #ccc;
flex: 1;
overflow-y: auto;
}

.temrinal-body::-webkit-scrollbar {width: 6px;}
.temrinal-body::-webkit-scrollbar-track {background: #0d0d0d;}
.temrinal-body::-webkit-scrollbar-thumb {background: #333; border-radius: 3px;}

.repo-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
    padding-bottom: 8px;
    animation: fadeIn 0.5s ease;
}

.repo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.repo-name {
    padding-left: 5px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9;
}

.repo-name:hover { color: #4CAF50; text-decoration: underline;}

.repo-lang{
    font-size: 0.7rem;
    color: #888;
    border: 1px solid #444;
    padding: 2px 6px;
    border-radius: 4px;
    padding-right: 5px;
    padding-top: 5px;
}

.repo-desc {
 display: block;
 font-size: 0.75rem;
 color: #666;
 margin-top: 4px;
 line-height: 1.4;
 padding-left: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


.log-container{
    width: 80%;
    max-width: 800px;
    height: 60vh;
    overflow-y: auto;
    padding: 0 40px;
    box-sizing: border-box;
    padding-top: 10px;
}

.log-container::-webkit-scrollbar {width: 4px;}
.log-container::-webkit-scrollbar-thumb{background: #333;}

.log-header {
    width: 600px;
    height: 60vh;
    overflow-y: auto;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255,0.1);
    text-align: center;
    margin-bottom: 2rem;
    border: none;
    background-color: transparent;
    z-index: 10;
   
   
}

.timeline-track {
    position: relative;
    border-left: 2rem;
    margin-left: 1rem;
}

.mission-item{
    position: relative;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.03s ease;
}

.mission-item::before{
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: #000;
    border: 2px solid #555;
    border-radius: 50%;
    z-index: 1;
}

.mission-item.completed {
    opacity: 0.6;
    border-left: 4px solid #4CAF50;
}

.mission-item.completed:hover{opacity: 1;}
.mission-item.completed::before{background: #4CAF50; border-color: #4CAF50;}

.mission-item.active {
    border: 1px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255,0.1);
    transform: scale(1.02);
}

.mission-item.active::before {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px #fff;
    animation: pulse 1.5s infinite;
}

.mission-item.locked {
    filter: blur(3px) grayscale(100%);
    opacity: 0.4;
    cursor: not-allowed;
    border: 1px dashed #444;
}

.mission-item.locked:hover {
    filter: blur(0);
    opacity: 0.7;
}

.mission-item.locked::before {
    border-color: #333;background: #000;
}

.mission-meta{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #888;
}

.mission-category {
    background: #222;
    padding: 2px 6px;
    border-radius: 2px;
    color: #fff;
}

.mission-title{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.mission-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
    font-family: 'Courier New', Courier, monospace;
}

@keyframes pulse {
    0% {opacity: 1; transform: scale(1);}
    50% {opacity: 0.5; transform: scale(1.5);}
    100% {opacity: 1; transform: scale(1);}
}

@media (max-width: 768px) {
    #mission-log {
        flex-direction: column; /* Mobilde alt alta */
        gap: 3rem; /* Boşluğu azalt */
        padding: 2rem 0;
    }
    
    .log-header {
        text-align: center; /* Mobilde ortala */
        margin-bottom: 0;
    }
    
    .log-container {
        width: 90%; /* Mobilde ekranı doldur */
        border-left: none; /* Çizgiyi kaldır */
        padding-left: 0;
    }
}


/*libary media*/


@media (max-width: 768px) {
    .spine-shelf {
        justify-content: flex-start;
        gap: 8px;
        min-width: 100%;
        padding: 0 12px;
        overflow-x: auto;
    }

    .book-spine{
        width: 44px !important;
        border-radius: 4px;
        transition: width 0.25s ease, transform 0.25s ease;
    }
    /* disable hover expansion on mobile; support tap-to-open instead */
    .book-spine:hover {
        width: 44px;
    }

    /* tapped/open state for small screens */
    .book-spine.open {
        width: calc(100% - 24px) !important;
        height: auto !important;
        min-height: 240px;
        position: relative;
        margin-right: 8px;
        z-index: 30;
    }

    .book-spine.open .spine-title { display: none; }
    .book-spine.open .spine-details { display: flex; opacity: 1; height: auto; }

    .terminal-window {
        width: 100%; /* Telefondan taşmasın */
        height: 350px;
    }

    .library-header h2{
        font-size: 2rem !important;
        overflow: hidden;
        margin-left: auto;
        line-height: 1.1;
        margin-bottom: 5px !important;
    }

    .library-wrapper h2{
        margin-left: 0;
    }

    .library-wrapper p{ 
        margin-left: 40px;
    }

    .libary-header p {
        margin-top: 10px !important;
        margin-left: 10000px;
        font-size: 0.7rem !important;
        letter-spacing: 3px;
        color: #888;
    }

    .libary-header .title{
        font-size: 0.8rem;
        margin-top: 0;
    }

    .spine-title{
        font-size: 9px !important;
        width: 250px !important;
    }

    .libary-wrapper {
        padding-top: 2rem;
        justify-content: center;
    }

    #library .library-header .title {
        margin-top: 10px !important; 
        margin-bottom: 20px !important;
        font-size: 0.7rem !important;
        display: block !important;
        width: 100%;
    }
    
    #library .library-header h2 {
        margin-bottom: 0 !important; 
    }


    .timeline-track {
        padding-left: 1rem;
        margin-left: 0;
        border-left: 2px solid #222;
    }

    .mission-item::before {
        left: -1.45rem;
        width: 10px;
        height: 10px;
    }


   
}

/* -- GERİ DÖN BUTONLARI (EKSİK OLAN KISIM) -- */

.back-btn {
    position: fixed !important;
    top: 30px !important;
    left: auto !important;
    right: 50px !important;
    z-index: 10000 !important; /* Her şeyin üstünde */
    
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
    
    color: rgba(255, 255, 255, 0.4);
    border: none;
    
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #fff;
    transform: translateX(-10px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Mobilde küçült */
@media (max-width: 768px) {
    .back-btn {
        top: 20px !important;
        left: 20px !important;
        font-size: 2rem;
    }
}

/* =========================================
   IMMERSIVE GALLERY (VIEW.HTML STİLLERİ)
========================================= */

/* Ana Panel Kutusu */
.exhibit-panel {
    height: 100vh;       /* Tam ekran yüksekliği */
    width: 100vw;        /* Tam ekran genişliği */
    scroll-snap-align: start; /* Kaydırma durağı */
    
    /* İŞTE EKSİK OLAN KISIM BURASI: */
    display: flex;       /* Yan yana diz */
    flex-direction: row; /* Soldan sağa */
    
    background-color: #000;
    overflow: hidden;

}

/* SOL TARAF: GÖRSEL */
.exhibit-image {
    flex: 6; /* Ekranın %60'ı */
    height: 100%;
    position: relative;
    background-color: #000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;
}

.exhibit-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Resmi kutuya sığdır, taşma yapma */
    display: block;
    border-radius: 8px;

    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
} 

/* SAĞ TARAF: BİLGİ */
.exhibit-info {
    flex: 4; /* Ekranın %40'ı */
    height: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* Dikey ortala */
    
    padding: 4rem;
    background-color: #050505;
    z-index: 2; /* Resmin altında kalmasın */
}

/* MOBİL İÇİN DÜZELTME (Bunu da ekle ki telefonda patlamasın) */
@media (max-width: 768px) {
    .exhibit-panel {
        flex-direction: column; /* Mobilde alt alta olsun */
    }
    
    .exhibit-image {
        flex: 1; /* %50 */
        max-height: 50vh;
    }
    
    .exhibit-info {
        flex: 1; /* %50 */
        padding: 2rem;
        justify-content: flex-start;
    }
}
