/* Barış Perde Premium Brand Design System */

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

:root {
    --brand-cream: #FDFBF7;
    --brand-warm-white: #FFFFFF;
    --brand-stone: #E6E2DC;
    --brand-stone-dark: #A8A39D;
    --brand-grey: #6E6B64;
    --brand-anthracite: #1A1917;
    --accent: #C5A880;
    --accent-hover: #B2946D;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--brand-cream);
    color: var(--brand-grey);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--brand-anthracite);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--brand-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Utilities & Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-cols-1 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .grid-md-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-md-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-md-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-lg-4 { grid-template-columns: repeat(4, 1fr); }
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.section-padding {
    padding: 5rem 0;
}
@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
}

/* Components & Styling */
.badge-accent {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-anthracite);
    color: var(--brand-cream);
    padding: 0.85rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-primary:hover {
    background-color: var(--accent);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-stone-dark);
    background: transparent;
    color: var(--brand-anthracite);
    padding: 0.85rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-outline:hover {
    border-color: var(--brand-anthracite);
    background-color: var(--brand-anthracite);
    color: var(--brand-cream);
}

/* Header & Footer */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-b: 1px solid rgba(230, 226, 220, 0.5);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}
.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-grey);
}
.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Handled via drawer in JS */
}

/* Responsive Grid Cards */
.card {
    background-color: var(--brand-warm-white);
    border: 1px solid var(--brand-stone);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--brand-cream);
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 25, 23, 0.95);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Admin Sidebar Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 250px;
    background-color: var(--brand-anthracite);
    color: var(--brand-cream);
    padding: 2rem 1rem;
    flex-shrink: 0;
}
.admin-main {
    flex-grow: 1;
    padding: 2rem 3rem;
    background-color: var(--brand-cream);
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .admin-wrapper { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 1rem; }
    .admin-main { padding: 1.5rem 1rem; }
}
