/* --- RESET & FONTS --- */
:root {
    --bg-color: #000;
    --text-color: #f0f0f0;
    --punk-red: #cc0000;
    --font-header: 'Oswald', sans-serif;
    --font-body: 'Courier Prime', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-header);
    height: 100vh;
    overflow: hidden; /* Scroll yok */
}

/* --- KONTEYNER AYARLARI --- */
.shattered-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: #000;
    align-items: stretch;
    padding: 0 10px;
}

/* --- GENEL PANEL STİLİ --- */
.panel {
    position: relative;
    flex: 1;
    border-right: 2px solid #000;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: crosshair;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #080808;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.panel:last-child {
    border-right: none;
}

/* --- FARKLI AÇILAR (ROTATION / SKEW) --- */
.deg1 {
    rotate: calc(10deg);
    transform: skewX(8deg); 
    z-index: 1;
    background: #050505;
    border-left: 2px solid #000;
}
.deg2 {
    rotate: calc(-10deg);
    transform: skewX(-10deg);
    z-index: 2;
    background: #0a0a0a;
}
.deg3 {
    rotate: calc(15deg);
    transform: skewX(5deg);
    z-index: 3;
    background: #050505;
}
.deg4 {
    rotate: calc(25deg);
    transform: skewX(-5deg);
    z-index: 4;
    background: #0a0a0a;
}

/* --- HOVER ETKİLEŞİMİ --- */
.panel:hover {
    flex: 6;
    z-index: 50;
    border: 2px solid var(--punk-red);
    transform: skewX(0deg);
}

/* --- ARKA PLAN VİDEOSU (GÜNCELLENDİ) --- */
/* Hem <video> hem <img> etiketleri için çalışır */
.bg-video {
    position: absolute;
    top: 0; left: -50%; 
    width: 200%; /* Geniş tutuyoruz ki eğiklikte boşluk kalmasın */
    height: 100%;
    object-fit: cover; /* Videoyu alana yayar */
    opacity: 0.3; /* Normalde soluk */
    filter: grayscale(100%) contrast(150%);
    transition: 0.5s;
    
    /* ÖNEMLİ: Mouse etkileşimini kapatır */
    pointer-events: none; 
}

/* Eğer resim kullanacaksan bu sınıfı da ekleyebilirsin */
.bg-image {
    position: absolute;
    top: 0; left: -50%;
    width: 200%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%) contrast(120%);
    transition: 0.5s;
    pointer-events: none;
}


.panel:hover .bg-video,
.panel:hover .bg-image {
    opacity: 1;
    filter: grayscale(0%) contrast(110%);
}

/* --- İÇERİK DÜZELTME --- */
.deg1 .content { rotate: calc(2deg); }
.deg2 .content { rotate: calc(-2deg); }
.deg3 .content { rotate: calc(-5deg); }
.deg4 .content { rotate: calc(5deg); }

.panel:hover .content {
    transform: skewX(0deg);
}

.content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    transition: transform 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- YAZILAR --- */
.vertical-title {
    position: absolute;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: #555;
    text-transform: uppercase;
    letter-spacing: 5px;
    transition: opacity 0.2s;
    background: #000;
    padding: 15px 5px;
    white-space: nowrap;
}

.panel:hover .vertical-title {
    opacity: 0;
}

/* --- İÇ METİN --- */
.inner-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease 0.1s;
    width: 90%;
    max-width: 800px;
}

.panel:hover .inner-text {
    opacity: 1;
    transform: translateY(0);
}

.inner-text h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: var(--punk-red);
    text-transform: uppercase;
    margin-bottom: 20px;
    background: #000;
    display: inline-block;
    padding: 5px 15px;
}

.inner-text p.typewriter {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    line-height: 1.4;
    color: #ccc;
    background: rgba(0,0,0,0.85);
    padding: 20px;
    text-align: left;
    border-left: 4px solid var(--punk-red);
    box-shadow: 10px 10px 0 #000;
}

.highlight {
    color: var(--punk-red);
    font-weight: bold;
    text-decoration: underline;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .shattered-container {
        flex-direction: column;
        width: 100vw; margin: 0; height: auto;
    }
    .panel {
        transform: skewX(0) !important;
        height: 200px;
        width: 100%;
        border-bottom: 2px solid #222;
        margin: 0;
    }
    .panel:hover { height: 500px; flex: none; }
    .content { transform: skewX(0) !important; }
    .vertical-title { writing-mode: horizontal-tb; transform: rotate(0); }
}

/* --- YAN ŞERİTLER --- */
a.side-strip {
    position: fixed; 
    top: -10%; 
    height: 120vh; 
    width: 45px; 
    z-index: 100; 
    opacity: 0.6; 
    writing-mode: vertical-rl; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem; 
    letter-spacing: 3px; 
    color: #888;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: rgba(0,0,0,0.3);
    mix-blend-mode: exclusion; 
}

.left-strip { left: 5px; transform: rotate(2deg); border-right: 1px dashed #444; }
.left-strip2 { left: 40px; transform: rotate(-1.5deg) translateY(20px); z-index: 99; }
.left-strip3 { left: 75px; transform: rotate(1deg) translateY(-20px); z-index: 98; opacity: 0.4; }

.right-strip { right: 5px; transform: rotate(-2deg); border-left: 1px dashed #444; }
.right-strip2 { right: 40px; transform: rotate(1.5deg) translateY(30px); z-index: 99; }
.right-strip3 { right: 75px; transform: rotate(-1deg) translateY(-10px); z-index: 98; opacity: 0.4; }

.strip-content { animation: scroll-strip 15s linear infinite; }

.right-strip .strip-content, 
.right-strip2 .strip-content, 
.right-strip3 .strip-content { 
    animation-direction: reverse; 
}

a.side-strip:hover {
    opacity: 1 !important;
    background: var(--punk-red); 
    color: #000;
    z-index: 200 !important;
    transform: scale(1.05) rotate(0deg) !important;
    mix-blend-mode: normal;
    box-shadow: 0 0 20px var(--punk-red);
    cursor: pointer;
}

a.side-strip:hover .strip-content {
    font-weight: bold;
    color: #000;
}

@keyframes scroll-strip {
    from { transform: translateY(0); } 
    to { transform: translateY(-50%); }
}

@media (max-width: 768px) {
    .left-strip2, .left-strip3, .right-strip2, .right-strip3 { display: none; }
    .left-strip, .right-strip { width: 30px; font-size: 0.8rem; }
}