/* Genel Sıfırlama ve Font Ayarları */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    --sidebar-width: 240px;
    --content-max: 960px;
    min-height: 100vh;
}

/* Sol Menü (Sidebar) — viewport soluna hizalı */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 60px 0 60px 40px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.logo {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 60px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 15px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Sadece Sol Menüde Renk Değişim Hover'ı Aktif */
.nav-links a:hover,
.nav-links a.active {
    color: #88c0d0;
}

/* Ana içerik — viewport merkezinde, menüyle çakışmayacak kadar solda */
.content {
    min-height: 100vh;
    padding: 80px max(40px, calc((100vw - var(--content-max)) / 2)) 80px
             max(var(--sidebar-width), calc((100vw - var(--content-max)) / 2));
    box-sizing: border-box;
}

.page-section {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-section.active {
    display: block;
}

/* Spotlight (Ana Sayfa) */
.spotlight-header {
    text-align: center;
    margin-bottom: 40px;
}

.spotlight-header h2 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.spotlight-header p {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-icon {
    background-color: red;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 1.5rem;
}

/* Portfolyo Kategori Seçimi (Hover Efektleri Kaldırıldı) */
#portfolio-categories h2 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-item {
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.category-card {
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 1px;
    color: #444;
    text-decoration: none;
}

@media (max-width: 900px) {
    .app-container {
        --sidebar-width: 0px;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 24px 24px;
    }

    .logo {
        margin-bottom: 24px;
    }

    .content {
        padding: 24px 24px 60px;
    }

    .page-section {
        max-width: none;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .portfolio-layout {
        gap: 16px;
    }

    .video-item,
    .grid-spacer.video-item {
        grid-column: span 2;
    }
}

/* Portfolyo Detay Başlığı */
.detail-header {
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}

.detail-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    margin: 0;
}

/* Profesyonel Kapak ve Grid Düzeni (Hover Efektleri Kaldırıldı) */
.portfolio-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

.portfolio-row {
    margin-bottom: 0;
}

.grid-spacer {
    pointer-events: none;
    visibility: hidden;
}

.grid-spacer.portrait-item {
    aspect-ratio: 9 / 16;
}

.grid-media {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    overflow: hidden; /* Taşmaları keserek maskeleme yapar */
    position: relative;
}

/* İleride yüklenecek olan imaj ve videoların 9:16 ve 16:9 kapaklara tam oturması için */
.grid-media img,
.grid-media video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* En boy oranını bozmadan alanı doldurur ve kırpar */
    position: absolute;
    top: 0;
    left: 0;
}

.portrait-item {
    aspect-ratio: 9 / 16;
}

.video-item {
    grid-column: span 3;
    aspect-ratio: 16 / 9;
    background-color: #1a1a1a;
    color: #fff;
}

/* Hakkımda Bölümü */
.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-header h2 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.polaroid {
    background: #fff;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    width: 100%;
    max-width: 450px;
}

.polaroid-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.btn-dark {
    background-color: #222;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
}

/* İletişim Formu (Hover Kaldırıldı) */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.huge-logo {
    font-size: 6rem;
    font-weight: 600;
    color: #2c5282;
    font-style: italic;
    margin-bottom: 20px;
}

.contact-header p {
    font-size: 0.9rem;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.minimal-form {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #222;
}

.btn-outline {
    background: transparent;
    border: 2px solid #222;
    color: #222;
    padding: 12px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    display: block;
    margin: 0 auto;
}

/* Lightbox Önizleme Modu */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.97);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
}

.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-media {
    background-color: #222;
    color: white;
    padding: 20px;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    max-width: 90vw;
    max-height: 90vh;
}

#lightbox-media img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    object-fit: contain;
}

.grid-media {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.grid-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-media .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: rgba(0,0,0,0.25);
    pointer-events: none;
}

.empty-message {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* --- ADMİN PANELİ EK STİLLERİ --- */
.admin-body {
    background-color: #fcfcfc;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    padding: 60px 20px;
    margin: 0;
}
.admin-container {
    max-width: 600px;
    margin: 0 auto;
}
.admin-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.admin-header h1 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0 0 5px 0;
}
.admin-header p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}
.admin-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 30px;
}
.admin-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.image-workspace {
    max-height: 400px;
    background-color: #eaeaea;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.image-workspace img {
    max-width: 100%;
    display: block;
}


.admin-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.admin-hint {
    font-size: 0.75rem;
    color: #666;
    margin: 0 0 10px 0;
}

.admin-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.admin-btn-dark {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.admin-btn-outline {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.admin-btn-danger {
    padding: 8px 14px;
    background: #fff;
    color: #a00;
    border: 1px solid #daa;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.admin-btn-full {
    width: 100%;
    padding: 12px;
}

.upload-progress {
    margin-top: 16px;
}

.upload-progress[hidden] {
    display: none;
}

.upload-progress-label {
    font-size: 0.85rem;
    margin: 0 0 8px 0;
}

.upload-progress-track {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 0;
    background: #88c0d0;
    transition: width 0.15s ease;
}

.upload-progress-percent {
    font-size: 0.75rem;
    color: #666;
    margin: 6px 0 0 0;
    text-align: right;
}

.admin-media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.admin-media-item {
    border: 1px solid #e5e5e5;
    background: #fafafa;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-media-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eaeaea;
    display: block;
}

.admin-media-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
}

.admin-media-meta strong {
    font-weight: 500;
}

.admin-media-meta span {
    color: #666;
    font-size: 0.75rem;
}

.admin-media-actions {
    display: flex;
    gap: 8px;
}

.admin-media-actions button {
    flex: 1;
}

.admin-container-wide {
    max-width: 1100px;
}

.admin-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.admin-layout-workspace {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .admin-layout-workspace {
        grid-template-columns: 1fr;
    }
}

.admin-media-pool {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 420px;
    overflow-y: auto;
    align-content: start;
}

.admin-pool-item {
    display: block;
    padding: 3px;
    border: 2px solid #e5e5e5;
    background: #fff;
    cursor: pointer;
    aspect-ratio: 1;
    overflow: hidden;
}

.admin-pool-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #eee;
}

.admin-pool-item span {
    display: none;
}

.admin-pool-item.selected {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.admin-layout-grid {
    margin-bottom: 0;
}

.admin-layout-row {
    position: relative;
    margin-bottom: 20px;
}

.admin-layout-row-grid {
    margin-bottom: 0;
}

.admin-slot-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 6;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.admin-layout-slot:hover .admin-slot-delete,
.admin-layout-slot.admin-slot-active .admin-slot-delete {
    opacity: 1;
}

.admin-slot-delete:hover {
    background: #a00;
}

.admin-layout-slot {
    min-height: 80px;
}

.admin-slot-empty {
    background: #f8f8f8;
    border: 2px dashed #ccc;
    cursor: pointer;
}

.admin-slot-empty:hover {
    border-color: #88c0d0;
    background: #f0fafc;
}

.admin-slot-filled {
    cursor: pointer;
}

.admin-slot-active {
    outline: 3px solid #88c0d0;
    outline-offset: 2px;
}

.admin-slot-placeholder {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 12px;
}

.admin-slot-ghost {
    background: transparent;
    border: 2px dashed transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-slot-ghost .admin-slot-ghost-label {
    opacity: 0;
    color: #88a0a8;
    transition: opacity 0.15s ease;
}

.admin-slot-ghost:hover,
.admin-slot-ghost:focus-visible {
    border-color: #88c0d0;
    background: #f0fafc;
}

.admin-slot-ghost:hover .admin-slot-ghost-label,
.admin-slot-ghost:focus-visible .admin-slot-ghost-label {
    opacity: 1;
}

.admin-slot-removed-hidden {
    pointer-events: none;
    visibility: hidden;
}

.admin-layout-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-layout-status {
    font-size: 0.85rem;
    color: #444;
    margin: 0 0 20px 0;
    padding: 10px 12px;
    background: #f5f5f5;
    border-left: 3px solid #88c0d0;
}

.admin-slot-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
}

.admin-slot-actions span {
    flex: 1;
    font-size: 0.8rem;
    min-width: 140px;
}

.admin-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.admin-category-item span {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}