/* ========================================
   oesnada Feed - Deep Dive Experience
   ======================================== */

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

:root {
    /* Deep Sea Colors - Smooth transitions */
    --surface: #020810;
    --depth-1: #030c18;
    --depth-2: #041220;
    --depth-3: #020a14;
    --abyss: #010408;

    /* Accent Colors */
    --accent: #ff6a00;
    --accent-light: #ff8534;
    --accent-glow: rgba(255, 106, 0, 0.5);

    /* Bioluminescent */
    --biolum-cyan: #00ffcc;
    --biolum-blue: #00aaff;
    --biolum-purple: #aa44ff;
    --biolum-glow: rgba(0, 255, 204, 0.4);

    /* Common */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --bubble: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    background: #000;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   Caustics Canvas - HIDDEN
   ======================================== */
#caustics-canvas {
    display: none;
}

/* ========================================
   Bubble Canvas - HIDDEN
   ======================================== */
#bubble-canvas {
    display: none;
}

/* ========================================
   Marine Snow Canvas
   ======================================== */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    opacity: 0.6;
}

/* ========================================
   Depth Fog Overlay - HIDDEN
   ======================================== */
.depth-fog {
    display: none;
}

/* ========================================
   Light Rays - HIDDEN
   ======================================== */
.light-rays {
    display: none;
}

/* ========================================
   Cinematic Intro
   ======================================== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
}

.intro-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    filter: brightness(0.4);
}

/* Görsel ile yazı arasında siyah overlay */
.intro-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.intro-text {
    position: absolute;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 8px;
    text-transform: lowercase;
    font-weight: 300;
    opacity: 0;
    text-align: center;
    max-width: 90%;
    line-height: 1.6;
    z-index: 2;
}

#intro-moment {
    font-size: 1.3rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
}

#intro-question {
    font-size: 2rem;
    letter-spacing: 6px;
    font-weight: 400;
    color: var(--accent);
}

/* ========================================
   Main Content - Deep Dive
   ======================================== */
.deep-dive {
    position: relative;
    min-height: 400vh;
    background: #000;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.depth-layer {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transform: translateZ(0);
    will-change: transform;
}

/* ========================================
   Surface - Minimal Landing
   ======================================== */
.surface {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-container {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.brand-title {
    font-size: 5.5rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -4px;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.brand-title .white {
    color: var(--text-primary);
}

.brand-title .accent {
    color: var(--accent);
}

.slogan {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 2px;
    min-height: 1.5rem;
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   Octopus News Hub
   ======================================== */
.octopus-hub {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Octopus Head */
.octopus-head-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.octopus-head {
    width: 100px;
    height: 110px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    animation: headBreath 4s ease-in-out infinite;
}

.head-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes headBreath {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

/* Tentacle Physics Canvas Layers */
.tentacle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tentacle-canvas.shadow-layer {
    z-index: 5;
    opacity: 0.4;
}

.tentacle-canvas.main-layer {
    z-index: 6;
}

.tentacle-canvas.glow-layer {
    z-index: 7;
    mix-blend-mode: screen;
}

/* News Cards Container */
.octopus-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

/* Individual News Card */
.octopus-card {
    position: absolute;
    width: 260px;
    padding: 1.1rem 1.3rem;
    background: rgba(8, 16, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-radius: 14px;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px) rotate(var(--tentacle-rotation, 0deg));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    will-change: transform;
}

.octopus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 0 0 4px 4px;
    opacity: 0.7;
}

/* Connection dot - connects to tentacle tip */
.octopus-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Connector dot positions based on card position */
.octopus-card.pos-left::after {
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.octopus-card.pos-right::after {
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.octopus-card.pos-top::after {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.octopus-card.pos-bottom::after {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.octopus-card:hover {
    transform: translateY(-5px) scale(1.03) rotate(var(--tentacle-rotation, 0deg));
    border-color: var(--accent);
    box-shadow:
        0 8px 32px rgba(255, 106, 0, 0.25),
        0 0 48px rgba(255, 106, 0, 0.12),
        inset 0 0 20px rgba(255, 106, 0, 0.05);
}

.octopus-card:hover::after {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
}

.octopus-card.pos-bottom:hover::after,
.octopus-card.pos-top:hover::after {
    transform: translateX(-50%) scale(1.3);
}

.octopus-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.octopus-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.octopus-card .card-time {
    color: var(--accent);
    font-weight: 600;
}

.octopus-card .card-source {
    color: var(--biolum-cyan);
}

/* ========================================
   Deep Zone
   ======================================== */
.deep-zone {
    padding-top: 5rem;
}

.zone-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--biolum-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px var(--biolum-glow);
}

/* Loading indicator */
.loading-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.deep-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.deep-card {
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.deep-card:hover {
    transform: translateY(-5px);
    border-color: var(--biolum-cyan);
    box-shadow: 0 10px 40px rgba(0, 255, 204, 0.2);
}

.deep-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.deep-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.deep-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--biolum-cyan);
}

/* ========================================
   Abyss - Footer with Video
   ======================================== */
.abyss {
    min-height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
}

.abyss::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, #000 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.abyss-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
}

.abyss-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
}

.abyss-logo {
    width: 100px;
    height: 100px;
    padding: 15px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.1) 0%, transparent 70%);
    box-shadow:
        0 0 30px rgba(255, 106, 0, 0.2),
        0 0 60px rgba(255, 106, 0, 0.1);
    filter: drop-shadow(0 0 15px rgba(255, 106, 0, 0.3));
    opacity: 0.6;
}

.abyss-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================================
   Plankton Particles (CSS)
   ======================================== */
.plankton {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .brand-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .slogan {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .intro-text {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    #intro-moment {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 95%;
    }

    #intro-question {
        font-size: 1.5rem;
    }

    /* Mobilde intro görseli - dikey doldur, yanlar kesilsin */
    .intro-bg-image {
        width: auto;
        height: 100%;
        object-fit: cover;
    }

    /* Mobilde octopus hub - sadece ahtapot gizle, haberler kalsın */
    .octopus-hub {
        min-height: auto;
        padding: 3rem 1rem;
    }

    /* Ahtapot ve tentacle'ları gizle */
    .octopus-center {
        display: none;
    }

    .tentacle-canvas {
        display: none;
    }

    /* Haber kartları grid olarak göster */
    .octopus-cards {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        height: auto;
    }

    .octopus-card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        opacity: 1 !important;
    }

    .octopus-card::after {
        display: none;
    }

    .octopus-card h3 {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    /* Deep cards tek sütun */
    .deep-cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    /* Mobilde kartları direkt görünür yap - ScrollTrigger sorunu için */
    .deep-card {
        opacity: 1 !important;
        transform: none !important;
    }

    .deep-zone {
        padding-top: 2rem;
    }

    .zone-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--abyss);
}

::-webkit-scrollbar-thumb {
    background: var(--depth-2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: var(--accent);
    color: #000;
}
