/* =========================
   site.css - FULL (PART 1)
   Yan menülü profesyonel tema
   Renk paleti: ekru #faf7f4, accent #977838, sidebar koyu kahve #2b2218
   ========================= */

/* ===== Variables / Root ===== */
:root {
    --ekru: #faf7f4;
    --accent: #977838;
    --accent-2: #977a3a;
    --sidebar: #2b2218; /* koyu acı kahve - siyaha yakın */
    --sidebar-2: #20160f; /* koyu gölge */
    --muted: #6b6b6b;
    --card-bg: #ffffff;
    --soft-border: #dcdcdc;
    --text: #0f1720;
    --shadow-1: rgba(15,23,30,0.06);
    --shadow-2: rgba(15,23,30,0.08);
    --filigran-opacity: 0.06;
}

/* ===== Reset & Base ===== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--ekru);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Utility */
.container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== App root layout ===== */
.app-root {
    min-height: 100vh;
    display: flex;
}

/* =========================
   SIDEBAR (sol menü)
   ========================= */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
    color: #fff;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    padding-bottom: 18px;
    transition: transform .25s ease;
}

    .sidebar .sidebar-top {
        padding: 28px 12px 8px 12px;
        text-align: center;
    }

    .sidebar .brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

.brand-img {
    height: 72px;
    width: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.brand-text {
    display: block;
    font-weight: 800;
    font-size: 1.08rem;
    color: #f6efe3;
    letter-spacing: 0.6px;
}

/* Navbar links */
.sidebar .nav {
    margin-top: 18px;
    padding-left: 6px;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.95);
    padding: 12px 14px;
    margin: 6px 6px;
    border-radius: 8px;
    transition: all .18s ease;
    display: block;
    text-decoration: none;
    font-weight: 600;
}

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
        transform: translateX(6px);
        color: var(--ekru);
        box-shadow: inset 0 0 0 2px rgba(151,120,56,0.04);
    }

/* Sidebar footer */
.sidebar .sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: auto;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.sidebar .social a {
    color: rgba(255,255,255,0.9);
    margin: 0 6px;
    transition: color .2s
}

    .sidebar .social a:hover {
        color: var(--accent);
    }

/* Hide sidebar on small screens */
@media (max-width:991.98px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        display: none;
    }
}

/*Main area offset on large screens */

@media (min-width: 992px) {
    .main-area {
        margin-left: 260px;
    }
}

/* Topbar small screens */
.topbar {
    background: linear-gradient(90deg, #3b2f22, #2e2318);
    color: #fff;
    padding: 10px 16px;
}

/* Content area */
.content-area {
    padding: 28px 36px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    color: white;
    padding: 84px 30px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}

    .hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(3,3,3,0.54), rgba(3,3,3,0.32));
        z-index: 1;
    }

    .hero .hero-inner {
        position: relative;
        z-index: 2;
        max-width: 1100px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.6rem;
        font-weight: 800;
        margin-bottom: 10px;
        letter-spacing: -0.02em;
        color: #fff;
    }

    .hero p.lead {
        font-size: 1.05rem;
        color: rgba(255,255,255,0.94);
        margin-bottom: 16px;
    }

    /* CTA buttons */
    .hero .hero-cta a {
        margin-right: 8px;
        display: inline-block;
        padding: 10px 18px;
        border-radius: 999px;
        text-decoration: none;
        font-weight: 600;
    }

    .hero .hero-cta .primary {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 8px 22px rgba(15,23,30,0.12);
    }

    .hero .hero-cta .secondary {
        background: rgba(255,255,255,0.12);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.08);
    }

/* Sections */
.section {
    padding: 34px 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .section-header h2 {
        font-size: 1.5rem;
        margin: 0;
        color: var(--text);
        font-weight: 700;
    }

.section-subtitle {
    color: var(--muted);
    font-size: 0.98rem;
    margin-top: 6px;
}

/* Grid cards using CSS Grid */
.row.cards-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

@media (max-width:991.98px) {
    .row.cards-row {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:575.98px) {
    .row.cards-row {
        grid-template-columns: 1fr;
    }
}

/* Card style */
.card-clean {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-1);
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
}

    .card-clean:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 48px var(--shadow-2);
    }

    .card-clean img {
        width: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

    .card-clean .card-body {
        padding: 14px;
        flex: 1;
    }

    .card-clean h5 {
        margin: 0 0 6px 0;
        font-size: 1.05rem;
        color: var(--text);
    }

    .card-clean p.meta {
        color: var(--muted);
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

/* Article list */
.article-list .article {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(15,23,30,0.04);
}

.article .meta {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    color: #fff;
}

    .btn-primary:hover {
        background: #7f6030;
    }

.btn-outline-secondary {
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--sidebar);
    background: transparent;
}

/* PDF viewer */
.pdf-viewer {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 8px;
}
/* =========================
   site.css - FULL (PART 3)
   Filigran, contact, responsive tweaks
   ========================= */

/* ===== FILIGRAN - full page background logo (archive pages) ===== */
/* Replace older filigran rules with this complete block */
.filigran {
    position: relative;
    background: var(--ekru);
    overflow: visible;
    padding-top: 28px;
    padding-bottom: 40px;
}

    /* pseudo-element: fixed, centered, large, contain so logo fully visible */
    .filigran::before {
        content: "";
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 78vmin; /* responsive big size */
        height: 78vmin;
        background-image: url('/images/logo.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain; /* ensure full logo visible */
        opacity: var(--filigran-opacity); /* 0.06 default */
        pointer-events: none;
        z-index: 0;
    }

    /* content above filigran */
    .filigran > .content-area,
    .filigran .card-clean,
    .filigran .article,
    .filigran .section-header {
        position: relative;
        z-index: 2;
    }

/* If logo needs resizing per screen, add media queries */
@media (max-width:1199.98px) {
    .filigran::before {
        width: 90vmin;
        height: 90vmin;
        opacity: calc(var(--filigran-opacity) + 0.01);
    }
}

@media (max-width:767.98px) {
    .filigran::before {
        width: 140vmin;
        height: 140vmin;
        top: 40%;
        opacity: calc(var(--filigran-opacity) - 0.02);
    }
}

/* ===== CONTACT / SOCIAL BLOCK ===== */
/* contact-wrap layout */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    margin-top: 8px;
}

@media (max-width:991.98px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }
}

/* form card */
.contact-form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 28px var(--shadow-1);
}

    .contact-form h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .contact-form p.text-muted {
        color: var(--muted);
        margin-bottom: 12px;
    }

    /* inputs */
    .contact-form .form-control {
        border-radius: 10px;
        border: 1px solid var(--soft-border);
        padding: 12px 14px;
        box-shadow: none;
    }

        .contact-form .form-control:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 6px 18px rgba(151,120,56,0.12);
        }

    /* submit */
    .contact-form .btn-primary {
        background: var(--accent);
        border: none;
        padding: 10px 18px;
        border-radius: 999px;
        font-weight: 600;
    }

        .contact-form .btn-primary:hover {
            background: #7f6030;
        }

/* contact-social column */
.contact-social {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15,23,30,0.04);
    transition: transform .18s, box-shadow .18s;
}

    .social-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 36px rgba(15,23,30,0.08);
    }

    .social-card .icon {
        min-width: 56px;
        min-height: 56px;
        border-radius: 50%;
        background: linear-gradient(180deg, rgba(151,120,56,0.12), rgba(151,120,56,0.06));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: var(--accent);
        border: 1px solid rgba(151,120,56,0.06);
    }

    .social-card .meta {
        display: flex;
        flex-direction: column;
    }

        .social-card .meta .title {
            font-weight: 600;
            color: var(--text);
            margin-bottom: 4px;
        }

        .social-card .meta .subtitle {
            color: var(--muted);
            font-size: 0.95rem;
        }

    /* ensure social links inherit color and no blue default */
    .social-card a {
        color: inherit;
        text-decoration: none;
    }

        .social-card a:hover {
            color: var(--accent);
        }
.social-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .social-card-link:hover {
        opacity: 0.9;
    }

/* ===== Footer small print ===== */
.footer-small {
    text-align: center;
    color: var(--muted);
    margin-top: 18px;
    font-size: 0.9rem;
}

/* ===== Small screen tweaks & accessibility ===== */
@media (max-width:991.98px) {
    .sidebar {
        display: none;
    }

    .main-area {
        margin-left: 0;
    }

    .content-area {
        padding: 18px;
    }

    .hero {
        padding: 50px 16px;
        border-radius: 8px;
        text-align: center;
    }

        .hero .hero-inner {
            text-align: center;
        }

    .card-clean img {
        height: 180px;
    }
}

/* keyboard focus outlines for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid rgba(151,120,56,0.12);
    outline-offset: 2px;
}

/* small helpers */
.text-muted {
    color: var(--muted);
}

.center {
    text-align: center;
}
/* =========================
   RESPONSIVE - non-intrusive
   ========================= */

/* Genel görseller / metinler için güvenlik */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {
    .sidebar {
        display: none !important;
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .main-area {
        margin-left: 0 !important;
    }

    .topbar {
        display: flex !important;
    }
    .content-area {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .row.cards-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .card-clean img {
        height: 170px !important;
    }

    .dergi-sayfa {
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 8px;
        padding-right: 8px;
    }

    .contact-wrap {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .filigran::before {
        width: 110vmin !important;
        height: 110vmin !important;
        opacity: calc(var(--filigran-opacity) - 0.01) !important;
        top: 45% !important;
    }
}

@media (max-width: 575.98px) {
    /* grid -> 1 sütun */
    .row.cards-row {
        grid-template-columns: 1fr !important;
    }
    .hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.12;
    }

    .hero p.lead {
        font-size: 0.9rem !important;
    }

    .card-clean img {
        height: 140px !important;
    }
    .hero .hero-cta a {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px !important;
    }
    .content-area {
        padding-left: 12px;
        padding-right: 12px;
    }

    .filigran::before {
        width: 140vmin !important;
        height: 140vmin !important;
        top: 40% !important;
        opacity: calc(var(--filigran-opacity) - 0.02) !important;
    }

    .contact-form .form-control {
        font-size: 0.95rem !important;
        padding: 10px 12px !important;
    }
    .card-clean:hover {
        transform: none !important;
        box-shadow: 0 10px 30px var(--shadow-1) !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .row.cards-row {
        grid-template-columns: repeat(2,1fr) !important;
    }

    .card-clean img {
        height: 160px !important;
    }

    .hero h1 {
        font-size: 2rem !important;
    }
}

@media (orientation: landscape) and (max-width: 900px) {
    .dergi-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .dergi-sayfa {
        max-width: calc(100% - 16px);
    }
}

@media (max-width: 991.98px) {
    .offcanvas .nav-link {
        padding: .6rem 0;
        font-weight: 600;
    }

        .offcanvas .nav-link:hover {
            color: var(--accent);
        }
}

input[type="text"], input[type="email"], textarea, .btn, .form-control {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 360px) {
    body {
        font-size: 14px;
    }
}
/* -------------------------- */
/* MOBİL MENÜ TASARIMI        */
/* -------------------------- */

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #3b2b1a; /* koyu kahve */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 25px;
    transition: right 0.4s ease-in-out;
    z-index: 1000;
}

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu .nav-link {
        color: #faf7f4; /* ekru */
        font-size: 1.2rem;
        text-decoration: none;
        padding: 10px 0;
        display: block;
        width: 100%;
        transition: color 0.2s;
    }

        .mobile-menu .nav-link:hover {
            color: #d2b98b; /* açık altın tonu */
        }

.article-list .article,
.card-clean {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform .15s ease, box-shadow .2s ease;
}

    .card-clean img {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .card-clean:hover,
    .article-list .article:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }


