/* ==========================================================================
   MINIMALIST PURE VISUAL PORTFOLIO DESIGN SYSTEM
   Soft Glassmorphic Media Loader, 2x Logo, Background 06.jpg, 2-Column Grid
   Target Directory: C:\AI\limitsizbilgi\portfolio
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

:root {
    --bg-dark: #0a0b10;
    --card-bg: #12141d;
    --accent-white: #ffffff;
    
    /* Custom Requested Box Shadow */
    --shadow-custom: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
    
    --radius-card: 0px;
    --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    background: #08090e url('06.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--accent-white);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Dark Ambient Overlay */
.bg-ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(8, 9, 14, 0.45);
    backdrop-filter: blur(2px);
}

/* Top Watermark Image Header */
.portfolio-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 20px 20px;
    z-index: 10;
}

.header-watermark-img {
    max-height: 170px;
    max-width: 85vw;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.75));
    transition: transform var(--transition-fast);
}

.header-watermark-img:hover {
    transform: scale(1.02);
}

/* Main Container (80vw Width, Centered 2-Column Grid Layout) */
.stream-container {
    width: 80vw;
    max-width: 80vw;
    margin: 20px auto 80px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Individual Pure Media Box */
.media-card {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 0px;
    border: none;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.media-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: rgba(0, 0, 0, 0.65) 0px 32px 25px -18px;
}

/* Soft Glassmorphic Card Loader Spinner */
.media-card-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(18, 20, 29, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.media-card-loader.loaded {
    opacity: 0;
}

.soft-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: softSpinnerRotate 0.8s linear infinite;
}

@keyframes softSpinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High Definition Media Display */
.card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), object-position 0.1s linear;
}

.media-card:hover .card-media {
    transform: scale(1.03);
}

/* Video Hover High-Def Video Element */
.card-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, object-position 0.1s linear;
}

.card-video-element.playing {
    opacity: 1;
}

/* Flat Play Icon Overlay */
.flat-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    color: #ffffff;
    opacity: 0.85;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    transition: all var(--transition-fast);
}

.media-card:hover .flat-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
}

/* Responsive Grid Adjustment */
@media (max-width: 840px) {
    .portfolio-header {
        padding: 30px 16px 12px 16px;
    }
    .header-watermark-img {
        max-height: 110px;
    }
    .stream-container {
        width: 92vw;
        max-width: 92vw;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 16px;
    }
    .media-card {
        height: 280px;
    }
}

/* ==========================================================================
   PURE MINIMALIST LIGHTBOX (COMPACT 60% HEADER & CLICK-HOLD DRAG PAN)
   ========================================================================== */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 6, 9, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

/* Lightbox Soft Glassmorphic Loader */
.lightbox-loader {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 9, 0.4);
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-loader.loaded {
    opacity: 0;
}

.lb-soft-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: softSpinnerRotate 0.8s linear infinite;
}

/* %40 Oranında Küçültülmüş (%60 Boyutunda) Transparan & Blurlu Üst Header */
.lightbox-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(14, 18, 28, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn svg {
    width: 13px;
    height: 13px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
}

.zoom-indicator {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Viewport Body (Full Canvas) */
.lightbox-body {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
}

.lightbox-viewport:active {
    cursor: grabbing;
}

.lightbox-media-container {
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Screen Fit Base Sizing */
.lightbox-img, .lightbox-video {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    border-radius: 0px;
    display: block;
}

/* Absolute Transparan Oynatıcı Barı */
.video-glass-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 580px);
    background: rgba(14, 18, 28, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.video-seekbar-wrapper {
    flex: 1;
    position: relative;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.video-seekbar-fill {
    height: 100%;
    background: #ffffff;
    width: 0%;
    border-radius: 3px;
}

/* Nav Arrows */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(14, 18, 28, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: all 0.2s ease;
}

.lightbox-nav-btn svg {
    width: 16px;
    height: 16px;
}

.lightbox-nav-btn:hover {
    background: #ffffff;
    color: #000000;
}

.nav-prev { left: 20px; }
.nav-next { right: 20px; }
