@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=Playfair+Display:wght@700;900&display=swap');

/* --- TEMEL DEĞİŞKENLER --- */
:root {
    --bg-main: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --border-color: rgba(255, 255, 255, 0.12);
    --card-hover: #0a0a0a;
    --accent-color: #00d4ff;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- GENEL SIFIRLAMA --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-main); color: var(--text-primary); font-family: var(--font-sans); line-height: 1.5; overflow-x: hidden; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2;}

/* --- YAN MENÜ (HAYALET / SIDEBAR) --- */
.sidebar-menu { position: fixed; top: 50%; left: 0; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; }
.menu-trigger { width: 50px; height: 300px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.1); border-left: none; border-radius: 0 20px 20px 0; backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; color: #fff; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.menu-icon i { font-size: 1.5rem; animation: pulse 2s infinite; }
.sidebar-menu:hover .menu-trigger { width: 250px; background: rgba(0, 0, 0, 0.9); border-color: rgba(255,255,255,0.2); }
.menu-links { display: none; flex-direction: column; gap: 15px; width: 100%; padding: 0 30px; opacity: 0; transition: opacity 0.3s 0.2s; }
.sidebar-menu:hover .menu-links { display: flex; opacity: 1; }
.sidebar-menu:hover .menu-icon { display: none; }
.menu-link { color: #b3b3b3; font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: 1px; transition: 0.3s; border-bottom: 1px solid transparent; padding-bottom: 5px; }
.menu-link:hover { color: #fff; border-color: var(--accent-color); padding-left: 10px; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* --- HERO SECTION --- */
.hero-wrapper { position: relative; height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; background: #000; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); z-index: 0; object-fit: cover; opacity: 0.8; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1; }
.hero-content { position: relative; z-index: 5; text-align: center; max-width: 900px; padding: 0 20px; margin-top: 100px; }
.hero-title { font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: #fff; text-shadow: 0 10px 30px rgba(0,0,0,0.9); }
.hero-subtitle { font-size: 1.3rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; font-weight: 400; text-shadow: 0 5px 15px rgba(0,0,0,0.9); }

/* --- HEADER & LOGO --- */
.header { position: absolute; top: 0; left: 0; width: 100%; padding: 80px 0 40px 0; z-index: 10; display: flex; justify-content: center; }
.logo-img { height: 180px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255,255,255,0.5)); transition: transform 0.3s; }
.logo-img:hover { transform: scale(1.05); }

/* --- BENTO GRID SİSTEMİ --- */
.grid-container { display: grid; grid-template-columns: repeat(1, 1fr); gap: 0; border-top: 1px solid var(--border-color); border-left: 1px solid var(--border-color); margin-bottom: 100px; }
@media (min-width: 900px) { .grid-container { grid-template-columns: repeat(4, 1fr); } .span-1 { grid-column: span 1; } .span-2 { grid-column: span 2; } .row-span-2 { grid-row: span 2; } .span-full { grid-column: 1 / -1; } }
.grid-item { background: rgba(0,0,0,0.4); border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.3s; min-height: 300px; position: relative; }
.grid-item:hover { background: var(--card-hover); }
.grid-item.span-full { background: #050505; min-height: 500px; justify-content: center; align-items: center; text-align: center;}
.grid-item i { font-size: 2rem; margin-bottom: 20px; color: var(--text-secondary); transition:color 0.3s; }
.grid-item h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 10px; line-height: 1.1; color:#fff; }
.grid-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- BUTONLAR --- */
.btn { padding: 15px 30px; font-weight: 700; text-decoration: none; display: inline-block; cursor: pointer; border: none; transition: 0.3s; border-radius: 4px; }
.btn-primary { background: #ffffff; color: #000000 !important; box-shadow: 0 10px 20px rgba(255,255,255,0.2); }
.btn-primary:hover { transform: translateY(-3px); background: #eee; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: #fff; }
.btn-outline:hover { background: #fff; color: #000; }
.btn-danger { background: #3e1212; color: #ff9999; padding: 5px 15px; font-size: 0.8rem; }
.btn-upload { background: var(--accent-color); color:#000; width:100%; margin-top:10px; font-weight:800; border:none; padding:10px; cursor:pointer; border-radius:4px; }
.btn-upload:hover { background: #fff; }

/* --- GALERİ & MEDYA (DÜZELTİLDİ) --- */
.gallery-wrapper { position: relative; overflow: hidden; width: 100%; border-top: 1px solid var(--border-color); margin-top: 20px; padding: 30px 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.widget-gallery { display: flex; gap: 20px; width: max-content; animation: scrollMarquee 35s linear infinite; }
.widget-gallery:hover { animation-play-state: paused; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SABİT GALERİ (STATIC) */
.widget-gallery.static { animation: none !important; overflow-x: auto; width: 100%; justify-content:center; scroll-snap-type: x mandatory; mask-image: none; -webkit-mask-image: none;}
.widget-gallery.static::-webkit-scrollbar { display: block; height: 6px; background: #222; }
.widget-gallery.static::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }

/* MEDYA KUTUSU (GÜNCELLENDİ: ORTALAMA İÇİN FLEXBOX) */
.w-media-item { 
    min-width: 350px; 
    height: 220px; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #000; 
    position: relative; 
    flex-shrink: 0; 
    border: 1px solid var(--border-color); 
    cursor: pointer; 
    transform: translateZ(0);
    
    /* İÇERİĞİ ORTALAMAK İÇİN */
    display: flex;
    justify-content: center;
    align-items: center;
}

.span-full .w-media-item { min-width: 500px; height: 350px; }
.span-2 .w-media-item { min-width: 400px; height: 250px; }

/* RESİM VE VİDEOLAR (COVER & CENTER) */
.w-media-item img, .w-media-item video, .w-media-item iframe {
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Alanı doldur */
    object-position: center center; /* Tam merkeze hizala */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s;
    opacity: 0.8;
    pointer-events: none;
    display: block; /* Boşlukları önle */
}

.w-media-item:hover img, .w-media-item:hover video { transform: scale(1.15); opacity: 1; filter: brightness(1.2); }
.gallery-indicator { position: absolute; bottom: 10px; right: 20px; background: rgba(0,0,0,0.7); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; pointer-events: none; z-index: 5; border: 1px solid rgba(255,255,255,0.2); }

/* --- LIGHTBOX (TAM EKRAN) --- */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 9999; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(10px); }
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; box-shadow: 0 0 50px rgba(0,0,0,0.8); border-radius: 8px; overflow: hidden; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 90vh; display: block; border: 1px solid rgba(255,255,255,0.1); }
.lightbox-content iframe { width: 80vw; height: 80vh; max-width: 1200px; border: none; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: 300; cursor: pointer; z-index: 10000; transition: 0.3s; line-height: 1; }
.lightbox-close:hover { color: #ff4444; transform: rotate(90deg); }

/* --- İÇERİK SAYFALARI --- */
.content-section { padding: 100px 0; border-top: 1px solid var(--border-color); }
.content-title { font-family: var(--font-serif); font-size: 3rem; margin-bottom: 40px; background: linear-gradient(to right, #fff, #666); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.content-body { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; max-width: 800px; }

/* İçerik içine manuel eklenen videolar için düzeltme */
.content-body video, .content-body iframe {
    max-width: 100%;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- ADMIN PANEL STİLLERİ --- */
.admin-layout { display: flex; gap: 30px; margin-top: 20px; align-items: flex-start; }
.editor-panel { flex: 0 0 400px; position: sticky; top: 20px; }
.preview-panel { flex: 1; }
.admin-box { background: #111; padding: 25px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 20px; }
.section-header { font-family: var(--font-serif); margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; font-size: 1.4rem; color: #fff; }
#widgetList { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px dashed #333; min-height: 200px; }
.drag-item { background: #1a1a1a; border: 1px solid var(--border-color); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; cursor: grab; min-height: 200px; position: relative; }
.drag-item:hover { background: #222; border-color: #fff; }
.drag-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; z-index: 5; }
.action-btn { background: #000; color: #fff; border: 1px solid #555; padding: 6px 10px; cursor: pointer; border-radius: 4px; text-decoration:none; }
.editing { border: 2px solid #00d4ff !important; box-shadow: 0 0 20px rgba(0,212,255,0.1) inset; }
.media-box { border: 1px solid #00d4ff; background: rgba(0, 212, 255, 0.05); padding: 15px; border-radius: 6px; margin-top: 20px; }
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.mini-item { aspect-ratio: 16/9; position: relative; border:1px solid #333; background:#000; }
.mini-item img, .mini-item video { width:100%; height:100%; object-fit:cover; opacity:0.6; }
.del-img { position:absolute; top:-5px; right:-5px; background:red; color:#fff; width:18px; height:18px; font-size:10px; display:flex; align-items:center; justify-content:center; cursor:pointer; border-radius:50%; text-decoration:none; }
.page-list-item { display:flex; justify-content:space-between; padding:10px; border-bottom:1px solid #333; align-items:center; }
.page-list-item:last-child { border:none; }
.page-actions a { margin-left: 10px; }
.view-tabs { display:flex; gap:10px; margin-bottom:15px; flex-wrap:wrap; }
.view-tab { padding:8px 15px; border:1px solid #333; border-radius:4px; color:#aaa; font-size:0.9rem; transition:0.2s; }
.view-tab:hover { background:#222; color:#fff; }
.view-tab.active { background:#00d4ff; color:#000; border-color:#00d4ff; font-weight:bold; }
.form-control { width: 100%; background: #1a1a1a; border: 1px solid #333; padding: 12px; color: #fff; margin-top:5px; border-radius:4px; }
label { color: #fff; opacity:0.7; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight:700; }

/* ... ÖNCEKİ KODLARIN AYNISI (Yukarıdakiyle aynı) ... */

/* --- EN ALTA BUNLARI EKLE --- */

/* Medya Boyutları (Aspect Ratios) */
.ratio-landscape .w-media-item {
    min-width: 350px; 
    height: 220px; /* Standart Yatay */
}

.ratio-portrait .w-media-item {
    min-width: 280px; /* Daha dar */
    height: 500px; /* Daha uzun (Shorts Formatı) */
}

.ratio-square .w-media-item {
    min-width: 300px; 
    height: 300px; /* Kare */
}

/* Mega Boyutta Shorts Seçilirse */
.span-full .ratio-portrait .w-media-item {
    min-width: 350px;
    height: 600px;
}
/* --- İLETİŞİM FORMU STİLİ --- */
.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-sans);
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    outline: none;
}

/* Başarı Mesajı (JS ile tetiklenirse) */
.alert-success {
    position: fixed; top: 20px; right: 20px;
    background: #28a745; color: #fff;
    padding: 15px 25px; border-radius: 4px;
    z-index: 9999; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    animation: slideIn 0.5s forwards;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }