:root {
    --primary-red: #581216; /* Bordo */
    --primary-blue: #122838; /* Lacivert */
    --gold: #c5a059; /* Altın Sarısı */
    --parchment: #f4f1ea; /* Kağıt dokusu rengi */
}

body {
    background-color: var(--parchment);
    background-image: url('images/paper-texture.png'); /* Kağıt dokusu görseli bulup ekleyin */
    font-family: 'Playfair Display', serif;
    margin: 0;
    color: #333;
}

/* HEADER & MENÜ */
header {
    background-color: var(--primary-red);
    position: relative;
    height: 80px;
    border-bottom: 3px solid var(--gold);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

nav a {
    color: #dcdcdc;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 15px;
}

/* Tuğra'yı ortada ve taşar şekilde konumlandırma */
.logo-area {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 10;
    background-color: var(--primary-blue);
    border-radius: 50%;
    padding: 10px;
    border: 2px solid var(--gold);
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tugra {
    width: 80%;
}

/* HERO BÖLÜMÜ */
.hero {
    display: flex;
    background-color: var(--primary-blue);
    color: #fff;
    min-height: 500px;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 100px 50px;
    background: url('images/pattern.png'); /* Arkaplan deseni */
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
}

.hero-content .script-font {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3rem;
    color: #fff;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Görselin kenarlarını yumuşatmak için maskeleme */
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

/* KEMERLİ KARTLAR (FEATURES) */
.features {
    display: grid;
    /* Burası 4 sütun olmasını sağlıyor */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; /* Kartlar arası boşluk */
    
    max-width: 1400px; /* 4 kart sığması için genişliği artırdık */
    margin: -50px auto 50px auto; /* Ortalama ve Hero'nun üstüne binme */
    padding: 0 20px;
    position: relative;
    z-index: 5;
}


.card-image-mask {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-top-left-radius: 146px; /* Border payını düşüyoruz */
    border-top-right-radius: 146px;
    border-bottom: 2px solid var(--gold);
}

.card-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: var(--primary-red);
    font-family: 'Cinzel', serif;
}

/* Tablette 2'li olsun */
@media (max-width: 1100px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

/* Telefondan 1'li olsun */
@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* --- YENİ OSMANLI KART TASARIMI (CLIP-PATH) --- */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Yan yana 4 tane */
    gap: 40px;
    max-width: 1400px;
    margin: -80px auto 50px auto; /* Hero'nun üstüne bindirdik */
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* Kartın Dış Gölgesi (Clip-path olduğu için filter kullanıyoruz) */
.ottoman-card-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4.5; /* Kartın boy/en oranı */
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.4)); /* Gölgeyi şekle göre verir */
    transition: transform 0.3s ease;
}

.ottoman-card-wrapper:hover {
    transform: translateY(-10px); /* Mouse gelince yukarı kalksın */
}

/* 1. Katman: Altın Çerçeve */
.frame-gold {
    width: 100%;
    height: 100%;
    background-color: #d4bc8d; /* Sizin kodunuzdaki altın renk */
    clip-path: url(#mihrabPath); /* Şekil kesimi */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. Katman: Beyaz İç Çizgi */
.frame-white {
    width: 96%; /* Çerçeve kalınlığı buradan ayarlanır */
    height: 97%;
    background-color: #fff;
    clip-path: url(#mihrabPath);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. Katman: Resim Alanı */
.frame-content {
    width: 96%;
    height: 97%;
    background-size: cover;
    background-position: center;
    background-color: #122838; /* Resim yoksa lacivert zemin */
    clip-path: url(#mihrabPath);
    position: relative;
    overflow: hidden;
}

/* Resmin Üzerindeki Yazı Alanı (Overlay) */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Kartın alt %40'ını kaplasın */
    background: linear-gradient(to top, #0b1822 10%, transparent); /* Aşağısı koyu, yukarısı şeffaf */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 30px;
    text-align: center;
}

.card-overlay h3 {
    color: #d4bc8d; /* Altın rengi başlık */
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin: 0 10px 10px 10px;
    text-shadow: 2px 2px 4px #000;
}

.btn-osmanli {
    text-decoration: none;
    color: #122838;
    background-color: #d4bc8d;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    border: 1px solid #fff;
    transition: 0.3s;
}

.btn-osmanli:hover {
    background-color: #fff;
    color: #581216;
}

/* SVG Gizleme (Sadece tanım için gerekli) */
.svg-defs {
    width: 0;
    height: 0;
    position: absolute;
}

/* --- RESPONSIVE (MOBİL) --- */
@media (max-width: 1200px) {
    .features { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .features { grid-template-columns: 1fr; }
    .ottoman-card-wrapper { max-width: 320px; margin: 0 auto; }
}

.btn-read {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-red);
    color: var(--gold);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    margin-top: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. BÖLÜM: Arama ve Bülten Şeridi */
.newsletter-strip {
    background-color: var(--primary-red); /* Bordo */
    padding: 25px 0;
    border-top: 3px solid var(--gold);
}

.strip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Ortak Input Stilleri */
.search-box, .subscribe-box {
    display: flex;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid var(--gold);
    flex: 1;
    max-width: 450px;
}

.search-box input, .subscribe-box input {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: #fff;
    width: 100%;
    outline: none;
    font-family: 'Playfair Display', serif;
}

.search-box input::placeholder, .subscribe-box input::placeholder {
    color: #dcdcdc;
}

.search-box button, .subscribe-box button {
    background-color: var(--gold);
    color: var(--primary-red);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    transition: 0.3s;
}

.search-box button:hover, .subscribe-box button:hover {
    background-color: #fff;
}

/* 2. BÖLÜM: Osmanlı Motif Şeridi (CSS ile Desen) */
.ottoman-border {
    height: 40px;
    background-color: #0e1e2b;
    /* Basit bir geometrik desen efekti */
    background-image: 
        linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%, var(--gold)),
        linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%, var(--gold));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
}

/* 3. BÖLÜM: Ana Footer Alanı */
.main-footer {
    background-color: var(--primary-blue); /* Lacivert */
    color: #dcdcdc;
    padding: 60px 0;
    position: relative;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Logo ve Yazı */
.footer-tugra {
    height: 80px;
    margin-bottom: 20px;
}

.about p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0;
}

/* Link Başlıkları */
.footer-col h4 {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

/* Link Listeleri */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #dcdcdc;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px; /* Hover olunca sağa kayma efekti */
}

/* Sosyal Medya */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

/* 4. BÖLÜM: Copyright */
.copyright-bar {
    background-color: #0b1822; /* Çok koyu lacivert */
    color: #777;
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- MOBİL MENÜ TASARIMI --- */

/* 1. Hamburger Butonu (3 Çizgi) */
.hamburger-btn {
    display: none; /* Bilgisayarda gizli */
    flex-direction: column;
    cursor: pointer;
    z-index: 100;
    position: absolute;
    left: 20px;
    top: 30px;
}

.hamburger-btn span {
    width: 35px;
    height: 4px;
    background-color: var(--gold); /* Altın rengi */
    margin: 4px 0;
    border-radius: 2px;
}

/* 2. Mobil Menü Perdesi (Overlay) */
.mobile-menu-overlay {
    height: 100%;
    width: 0; /* Kapalıyken genişlik 0 */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    background-color: rgba(88, 18, 22, 0.98); /* Koyu Bordo */
    overflow-x: hidden;
    transition: 0.5s; /* Açılma hızı */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px; /* Linkler yukarı yapışmasın */
}

/* 3. Kapatma Butonu (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    color: var(--gold);
    cursor: pointer;
    line-height: 1;
}

/* 4. Mobil Linkler */
.mobile-links {
    width: 100%;
    text-align: center;
}

.mobile-links a {
    padding: 20px;
    text-decoration: none;
    font-size: 1.5rem;
    color: #f1f1f1;
    display: block;
    transition: 0.3s;
    font-family: 'Cinzel', serif;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.mobile-links a:hover {
    color: var(--gold);
    background: rgba(0,0,0,0.2);
}

/* --- MEDYA SORGULARI (TELEFON İÇİN) --- */
@media screen and (max-width: 900px) {
    /* Masaüstü menüleri gizle */
    .desktop-nav {
        display: none !important;
    }

    /* Hamburger butonunu görünür yap */
    .hamburger-btn {
        display: flex;
    }

    /* Logoyu ortala */
    nav {
        justify-content: center;
    }
}

/* --- KART İÇİ KATEGORİ YOLU (BREADCRUMB) --- */
.card-breadcrumb {
    color: #d4bc8d; /* Altın rengi */
    font-size: 0.75rem; /* Küçük punto */
    font-family: 'Cinzel', serif;
    margin-bottom: 5px; /* Başlıkla arasına boşluk */
    letter-spacing: 1px;
    opacity: 0.9;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #000; /* Okunabilirlik için gölge */
}