/* Google Fonts'tan tasarımdaki gibi yumuşak bir font çekiyoruz */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* Renk Paleti (Görselden Birebir Alınmıştır) */
:root {
    --bg-color: #f7f4ec;        /* Kemik/Bej Arka Plan */
    --green-main: #5e8835;      /* SepettePet Yeşili */
    --orange-main: #df7b29;     /* SepettePet Turuncusu */
    --footer-bg: #bbaea1;       /* En Alt Kahverengi/Gri Ton */
    --text-dark: #333333;
    --text-gray: #7a7a7a;
    --border-color: #e5e0d5;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Nunito', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { background-color: #ffffff; padding: 12px 0; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 78px; display: block;margin-left:-160px; }
.main-nav a { text-decoration: none; color: var(--text-dark); margin: 0 16px; font-weight: 700; font-size: 25px; }
.main-nav a.active { color: var(--orange-main); border-bottom: 2px solid var(--orange-main); padding-bottom: 4px; }
.nav-buttons button { padding: 8px 20px; border: none; border-radius: 5px; color: white; font-weight: 700; cursor: pointer; font-size: 18px; }
.btn-login { background-color: var(--green-main); margin-right: 8px; }
.btn-register { background-color: var(--orange-main); }

/* HERO BÖLÜMÜ */
.hero { 
    height: 700px; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
}
.hero-content { color: white;margin-left:-700px; }
.hero-content h1 { font-size: 68px; font-weight: 800; line-height: 1.1; margin-bottom: 12px; text-shadow: 1px 2px 5px rgba(0,0,0,0.4); }
.hero-content p { font-size: 28px; font-weight: 600; margin-bottom: 25px; line-height: 1.5; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero-actions button { padding: 12px 28px; border: none; border-radius: 6px; color: white; font-weight: 800; font-size: 25px; cursor: pointer; margin-right: 15px; }
.btn-green-large { background-color: var(--green-main); }
.btn-orange-large { background-color: var(--orange-main); }

/* ARAMA ÇUBUĞU */
.search-bar { 
    background-color: white; 
    padding: 18px; 
    border-radius: 8px; 
    display: flex; 
    flex-wrap: wrap; /* İŞTE ÇÖZÜM: Sığmayanları alt satıra atar ve kutuyu uzatır */
    align-items: center; /* Elemanları dikeyde ortalar, şık durur */
    gap: 12px; 
    margin-top: -118px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.06); 
    position: relative; 
    z-index: 999; /* z-index için 999 genelde fazlasıyla yeterlidir :) */
}
.search-bar select, .search-bar input { flex: 1; padding: 12px; border: 1px solid #e2e2e2; border-radius: 5px; outline: none; color: var(--text-gray); font-weight: 600; font-size: 20px;}
.btn-search { background-color: var(--green-main); color: white; padding: 0 40px; border: none; border-radius: 5px; font-weight: 800; font-size: 20px; cursor: pointer; }

/* BAŞLIKLAR */
.section-title { display: flex; align-items: center; margin: 45px 0 20px 0; }
.section-title h2 { color: var(--green-main); font-size: 30px; font-weight: 800; margin-right: 10px; }
.paw-green { color: var(--green-main); font-size: 20px; }
.paw-red { color: #de5a49; font-size: 20px; } /* Tasarımdaki kırmızımsı pati */

/* KARTLAR (GRID) */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 25px; }
.pet-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,0.04); position: relative; border: 1px solid #f2f2f2; }
.pet-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.badge-urgent { position: absolute; top: 12px; right: 12px; background-color: #d94232; color: white; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 5px; }

.card-info { padding: 15px; }
.card-info h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; color: var(--text-dark); }
.card-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 17px; color: #a1a1a1; font-weight: 600; }
.card-bottom .location i { margin-right: 4px; font-size: 12px; }

/* KALP RENKLERİ */
.heart-orange { color: var(--orange-main); font-size: 16px; }
.heart-red { color: #de5a49; font-size: 16px; }
.heart-green { color: var(--green-main); font-size: 16px; }

/* NOKTALAR (PAGINATION) */
.dots-wrapper { text-align: center; margin: 20px 0 50px 0; }
.dot { display: inline-block; width: 6px; height: 6px; background-color: #d1d1d1; border-radius: 50%; margin: 0 4px; }
.dot.active { background-color: #999; }

/* İKONLU AVANTAJLAR (GÜVENLİ, SAĞLIK, YUVA) */
.features-section { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 45px 0; margin-bottom: 50px; }
.feature-box { display: flex; align-items: center; width: 30%; }
.feature-box img { width: 55px; height: auto; margin-right: 15px; } /* İkonlar buraya gelecek */
.feature-text h4 { font-size: 19px; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; }
.feature-text p { font-size: 16px; color: var(--text-gray); line-height: 1.4; font-weight: 900; }

/* BİLGİ METİNLERİ */
.info-texts { display: flex; justify-content: flex-start; gap: 90px; padding-bottom: 60px; }
.info-block h4 { font-size: 25px; font-weight: 800; margin-bottom: 12px; color: var(--text-dark); }
.info-block p { font-size: 18px; color: var(--text-gray); line-height: 1.6; font-weight: 600; }

/* FOOTER */
footer { background-color: var(--footer-bg); padding: 25px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { color: white; text-decoration: none; font-size: 19px; font-weight: 700; margin-right: 25px; }
.social-links i { color: white; font-size: 20px; margin-left: 15px; cursor: pointer; }

/* ORTAK FORM STİLLERİ */
.form-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 50px auto;
}
.form-container h2 {
    color: var(--green-main);
    margin-bottom: 25px;
    font-weight: 800;
    text-align: center;
    font-size: 28px;
}
.form-group {
    margin-bottom: 25px;
    display: block;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
}
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    display: block;
    padding: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    outline: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 22px;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    background-color: #fff;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--orange-main);
}








/* İLAN DETAY SAYFASI STİLLERİ */
.detail-container {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    margin: 50px auto;
    max-width: 1000px;
    gap: 30px;
    padding: 30px;
}
.detail-image {
    flex: 1;
}
.detail-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 500px;
}
.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.detail-info h2 {
    color: var(--green-main);
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 800;
}
.detail-meta {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-weight: 700;
}
.detail-meta span {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    background: #f7f4ec;
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--orange-main);
}
.detail-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 600;
}
.owner-box {
    background: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--green-main);
    margin-top: auto;
    border: 1px solid #e2e2e2;
    border-left-width: 5px;
}
.owner-box h4 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 800;
}
.owner-box p {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 8px;
}


/* style.css EN ALTINA EKLE */

/* ORTAK GENEL İÇERİK KONTEYNERİ (Beyaz Kutu) */
.general-content-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    max-width: 1000px; /* Geniş içerikler (ızgaralar vb.) için genişlettik */
    margin: 50px auto;
}

/* FORMLAR VE İÇERİKLER İÇİN BAŞLIK (Opsiyonel) */
.general-content-container h2 {
    color: var(--green-main);
    margin-bottom: 25px;
    font-weight: 800;
    text-align: center;
    font-size: 28px;
}

/* KONTEYNER İÇİNDEKİ ORTAK FORM GRUPLARI */
.general-content-container .form-group {
    margin-bottom: 25px;
    display: block;
}

.general-content-container .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
}

/* KONTEYNER İÇİNDEKİ ORTAK INPUT VE SELECT STİLLERİ */
.general-content-container .form-group input, 
.general-content-container .form-group select, 
.general-content-container .form-group textarea {
    width: 100%;
    display: block;
    padding: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    outline: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 22px; /* İstediğin 22px boyutu */
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    background-color: #fff;
}

.general-content-container .form-group input:focus, 
.general-content-container .form-group select:focus, 
.general-content-container .form-group textarea:focus {
    border-color: var(--orange-main);
}


/* --- TELEFON EKRANLARI (768px ve altı) --- */
@media (max-width: 768px) {
    
    /* İlan kartları mobilde tek sütun (alt alta) olsun */
    .card-grid, .favorite-grid {
        grid-template-columns: 1fr !important;
    }

    /* Üst Menü / Header Komple Alt Alta Dizilsin */
    header .container {
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Sağ taraftaki giriş/çıkış butonları ve isim */
    .header-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px;
        width: 100%;
    }
    .header-right span {
        margin-right: 0 !important;
        margin-bottom: 5px;
        display: block;
    }
    .header-right a {
        display: block;
    }
    .header-right button {
        margin: 0 !important;
        width: 100%;
    }

    /* Arama Çubuğu (Bütün kutular alt alta tam genişlikte dökülsün) */
    .search-bar {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 10px;
        padding: 15px;
    }
    .search-bar select, .search-bar input, .search-bar button, .search-bar a {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        box-sizing: border-box;
    }

    /* Anasayfa Büyük Resimli Alan (Hero) */
    .hero h1 {
        font-size: 32px;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hero-actions a, .hero-actions button {
        width: 100%;
        display: block;
    }

    /* Form ve İçerik Kutuları */
    .general-content-container {
        padding: 20px !important;
        margin: 20px auto !important;
    }

    /* İlan Detay Sayfası Galerisi */
    .gallery-container, .gallery-slide img {
        height: 300px !important;
    }

    /* Anasayfa Alt Bilgi (Footer) */
    .footer-container, .features-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}




/* =========================================
   MOBİL İÇİN KESİN KURTARICI KODLAR (HERO & HEADER)
========================================= */
@media (max-width: 768px) {
    
    /* 1. ÜST MENÜ BUTONLARINI 2'ŞERLİ KARE DİZ (Tost olmasınlar) */
    .user-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .user-buttons a {
        flex: 1 1 45% !important; /* Mobilde her buton %45 genişlik kaplar (2'li ızgara) */
        margin: 0 !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        padding: 10px !important;
    }

    /* 2. ANASAYFA BÜYÜK RESİM (HERO) SOLA TAŞMA SORUNUNU ÇÖZ */
    .hero {
        padding: 40px 20px !important;
        background-position: center !important;

    }
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important; /* Mobilde yazılar ortada dursun */
        position: relative !important;
        left: 0 !important;
        transform: none !important;
    }
    .hero h1 {
        font-size: 58px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    .hero p {
        font-size: 36px !important;
        margin-bottom: 20px !important;
    }
    
    /* 3. KEDİ/KÖPEK SAHİPLEN BUTONLARINI ALT ALTA AL */
    .hero-actions {
        display: flex !important;
        flex-direction: column !important; /* Yan yana taşmasın, alt alta gelsin */
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .hero-actions a, .hero-actions button {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }
}
@media (max-width: 768px) {
    /* Anasayfadaki Kedi/Köpek Sahiplen butonlarını mobilde KESİN OLARAK GİZLE */
    .hero-actions {
        display: none !important; 
    }
}


/* =========================================
   MOBİL İÇİN YAZIYI ZORLA ÜSTE TAŞIMA
========================================= */
@media (max-width: 768px) {
    .hero {
        display: flex !important;
        align-items: flex-start !important; /* İçeriği dikeyde zorla en üste yaslar */
        padding-top: 15px !important; /* Üstteki boşluğu neredeyse sıfırlarız */
    }
    
    .hero-content {
        margin-top: 0px !important; /* Gerekirse burayı eksi değer yapabilirsin, örn: -20px !important; */
    }
}


/* =========================================
   MOBİLDE YAZIYI BELİRGİNLEŞTİRME (KONTUR VE GÖLGE)
========================================= */
@media (max-width: 768px) {
    .hero h1 {
        color: #ffffff !important; /* Yazı rengini tam beyaz yapıyoruz */
        /* Yazının etrafına siyah kontur ve arkasına yumuşak bir gölge atıyoruz */
        text-shadow: 
            -1px -1px 0 #000,  
             1px -1px 0 #000,
            -1px  1px 0 #000,
             1px  1px 0 #000,
             3px  3px 8px rgba(0,0,0,0.9) !important;
    }
    
    .hero p {
        color: #ffffff !important;
        font-weight: 700 !important; /* Alt yazıyı biraz daha kalınlaştırdık */
        text-shadow: 
            -1px -1px 0 #000,  
             1px -1px 0 #000,
            -1px  1px 0 #000,
             1px  1px 0 #000,
             2px  2px 6px rgba(0,0,0,0.9) !important;
    }
}



/* =========================================
   MOBİLDE EN ALT KISIM (ÖZELLİK KUTULARI) DÜZELTMESİ
========================================= */
@media (max-width: 768px) {
    .features-section {
        display: flex !important;
        flex-direction: column !important; /* Kutuları alt alta diz */
        align-items: center !important;
        gap: 30px !important; /* Aralarına güzel bir boşluk bırak */
        padding: 30px 15px !important;
    }
    
    .feature-box {
        display: flex !important;
        flex-direction: column !important; /* İkon ve yazıyı alt alta al */
        align-items: center !important;
        text-align: center !important; /* Yazıları tam ortala */
        width: 100% !important;
        background: #ffffff !important; /* Arka planı beyaz yapıp öne çıkarabiliriz */
        padding: 20px !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; /* Hafif şık bir gölge */
    }
    
    .feature-box img {
        margin-right: 0 !important; /* PC'deki yan boşluğu iptal et */
        margin-bottom: 15px !important; /* İkonun altına boşluk ver */
        width: 60px !important; /* İkon boyutunu mobilde sabit ve şık tut */
        height: auto !important;
    }
    
    .feature-text h4 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        color: var(--orange-main) !important; /* Başlıkları turuncu yapıp canlandıralım */
    }
    
    .feature-text p {
        font-size: 14px !important;
        margin: 0 !important;
        color: var(--text-gray) !important;
    }
}

/* =========================================
       MOBİL GÖRÜNÜM KESİN ÇÖZÜM
    ========================================= */
    @media (max-width: 768px) {
        /* Ana taşıyıcıyı yan yana yerine alt alta getir */
        .detail-container {
            display: flex !important;
            flex-direction: column !important;
            padding: 10px !important;
        }

        /* Resim alanını tam genişlik yap */
        .detail-image {
            flex: none !important;
            width: 100% !important;
            margin-bottom: 20px !important;
        }

        /* Bilgi alanını tam genişlik yap */
        .detail-info {
            flex: none !important;
            width: 100% !important;
            padding-left: 0 !important;
        }

        /* Mobilde ana resim yüksekliğini küçült (Ekranı tamamen kaplamasın) */
        .gallery-slide img {
            height: 300px !important; /* Mobilde daha kibar durur */
            border-radius: 12px !important;
        }

        .gallery-container {
            max-height: 300px !important;
        }

        /* Küçük resimleri ortala */
        .thumbnail-container {
            justify-content: center !important;
        }

        /* Paylaşım butonlarını mobilde daha büyük yap (tıklama kolaylığı) */
        .share-btn {
            flex: 1 1 45%; /* İkişerli dizilirler */
            justify-content: center;
        }
    }
	
	
	.btn-mekanlar:hover {
    background-color: #c96b1f !important; /* Biraz daha koyu turuncu */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(223, 123, 41, 0.4);
    color: #fff;
}




@media (max-width: 768px) {
    .btn-patipass, .btn-veteriner, .btn-mekanlar {
        padding: 8px 12px !important;
        font-size: 12px !important;
        margin-bottom: 5px;
        display: flex;
        width: 100%; /* Mobilde tam genişlik */
        justify-content: center;
    }
}

.sozlesme-konteynir {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
}
.sozlesme-link {
    color: #5e8835;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer; /* Üzerine gelince el işareti */
}



/* SADECE MOBİL İÇİN FOTOĞRAF KUTUSU DÜZELTMESİ */
@media (max-width: 768px) {
    #image_preview_container {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .preview-box {
        width: calc(33.333% - 10px) !important; /* Mobilde yan yana tam 3 tane sığdırır */
        height: 100px !important; /* Kutuları mobilde biraz küçültür */
    }
    .cover-badge {
        font-size: 9px !important; /* Rozet taşmasın diye küçültüldü */
        padding: 3px 5px !important;
        white-space: nowrap !important;
    }
}