
html, body {
  width: 100%;
  overflow-x: hidden !important;
}


/* =========================
   RESET / BASE
========================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:Poppins,Arial,sans-serif;
  background:#f4f6f8;
  color:#222;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* =========================
   GENEL LAYOUT
========================= */
.container{
  max-width:900px;
  margin:auto;
  padding:16px;
  padding-bottom:110px; /* fixed buton payı */
}
.center{ text-align:center; }

/* =========================
   TOP BAR (search/profile için)
========================= */
.top-bar{
  background:#fff;
  border-bottom:1px solid #e6e6e6;
  position:sticky;
  top:0;
  z-index:1000;
}
.top-inner{
  max-width:900px;
  margin:auto;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:12px;
}
.top-inner.center{ justify-content:center; }
.top-inner img{ height:36px; }

/* =========================
   SEARCH FORM (search.php için)
========================= */
.search-form{
  flex:1;
  display:flex;
  gap:8px;
}
.search-form input{
  flex:1;
  min-width:0;
  padding:12px 16px;
  border-radius:30px;
  border:1px solid #ddd;
  font-size:15px;
  background:#fff;
}
.search-form input:focus{
  outline:none;
  border-color:#2E7D32;
  box-shadow:0 0 0 2px rgba(46,125,50,.12);
}
.search-form button{
  padding:12px 20px;
  border-radius:30px;
  border:none;
  background:#2E7D32;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumbs{
  font-size:14px;
  color:#666;
  margin:10px 0 14px;
}
.breadcrumbs a{
  color:#2E7D32;
  font-weight:700;
}

/* =========================
   CARD
========================= */
.card{
  background:#fff;
  border-radius:14px;
  padding:16px;
  margin-bottom:14px;
  position:relative;
}
.card.premium{
  border:2px solid #2E7D32;
  background:linear-gradient(135deg,#fff,#f4fff6);
}
.card.premium::before{
  content:"⭐ Premium";
  position:absolute;
  top:-10px;
  right:14px;
  background:#2E7D32;
  color:#fff;
  font-size:12px;
  font-weight:800;
  padding:4px 10px;
  border-radius:20px;
}

/* Search kart içeriği */
.result-link{ display:block; }
.name{
  font-size:16px;
  font-weight:900;
  color:#2E7D32;
}
.meta{
  font-size:14px;
  color:#555;
  margin-top:4px;
}
.result-link:hover .name{ color:#1f6a25; }
.result-link:hover .meta{ color:#444; }

/* =========================
   PROFIL (kart içi butonlar)
========================= */
.btn-row{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:14px;
}
.btn{
  padding:10px 16px;
  border-radius:10px;
  font-weight:800;
  font-size:14px;
  display:inline-block;
}
.btn.green{ background:#2E7D32; color:#fff; }
.btn.dark{ background:#333; color:#fff; }

/* =========================
   GALERİ
========================= */
.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.gallery img{
  width:100%;
  height:110px;
  object-fit:cover;
  border-radius:10px;
  cursor:pointer;
}
.no-photo{
  color:#777;
  background:#f7f7f7;
  padding:16px;
  border-radius:10px;
  text-align:center;
}

/* =========================
   FIXED ALT BUTONLAR
========================= */
.fixed{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  z-index:1500;
}
.fixed a{
  flex:1;
  text-align:center;
  padding:16px;
  font-weight:900;
  color:#fff;
}
.fixed .call{ background:#2E7D32; }
.fixed .wa{ background:#25D366; }

/* =========================
   REKLAM SLOT
========================= */
.ad-slot{
  background:#fff;
  border-radius:14px;
  padding:12px;
  border:1px solid #eee;
}
.ad-label{
  font-size:12px;
  color:#777;
  margin-bottom:8px;
}
.ad-box{
  display:block;
  padding:14px;
  border-radius:12px;
  border:1px solid #e6e6e6;
  text-align:center;
  transition:.2s;
}
.ad-box:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}
.ad-title{
  font-size:20px;
  font-weight:900;
  color:#2E7D32;
  margin-bottom:6px;
}
.ad-desc{
  font-size:14px;
  color:#444;
  line-height:1.45;
  margin:0 auto 12px;
  max-width:520px;
}
.ad-cta{
  display:inline-block;
  background:#2E7D32;
  color:#fff;
  font-weight:900;
  padding:10px 16px;
  border-radius:10px;
  font-size:14px;
}
.ad-url{
  margin-top:10px;
  font-size:12px;
  color:#666;
}

/* =========================
   POPUP (Hakkımızda / Gizlilik / Çerez / İletişim)
========================= */
.popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:3000;
  padding:18px;
}
.popup.show{ display:flex; }
.popup-content{
  background:#fff;
  width:100%;
  max-width:700px;
  border-radius:14px;
  padding:22px;
  position:relative;
  max-height:85vh;
  overflow:auto;
}
.popup-close{
  position:absolute;
  top:10px;
  right:14px;
  font-size:24px;
  cursor:pointer;
  line-height:1;
}

/* =========================
   FOOTER (Açık renk)
========================= */
footer{
  background:#fff;
  color:#666;
  border-top:1px solid #e6e6e6;
  padding:22px 16px;
  text-align:center;
}
footer a{
  color:#666;
  margin:0 8px;
  font-size:14px;
  font-weight:700;
}
footer a:hover{
  color:#2E7D32; /* kaybolma yok */
}
.footer-logo{
  margin-bottom:10px;
}
.footer-logo img{
  height:26px;
  margin:auto;
}

/* =========================
   HOME (ANA SAYFA)
========================= */
.page-home{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
.page-home .home-wrap{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.page-home .home-logo img{
  height:72px; /* logo kontrol */
}
.page-home .home-search{
  width:100%;
  max-width:520px;
  margin-top:28px;
}
.page-home .home-search input{
  width:100%;
  padding:18px 24px;
  font-size:18px;
  border-radius:40px;
  border:1px solid #ddd;
  background:#fff;
}
.page-home .home-search input:focus{
  outline:none;
  border-color:#2E7D32;
  box-shadow:0 0 0 2px rgba(46,125,50,.12);
}

/* =========================
   MOBİL
========================= */
@media(max-width:600px){
  .top-inner{ flex-direction:column; align-items:stretch; }
  .gallery{ grid-template-columns:repeat(2,1fr); }
  .gallery img{ height:90px; }
}

/* ANA SAYFA - ARA FORMU (ALT ALTA) */
.page-home .home-search{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.page-home .home-search input{
  width:100%;
  padding:18px 24px;
  font-size:18px;
  border-radius:40px;
  border:1px solid #ddd;
  background:#fff;
  text-align:left;
}

.page-home .home-search input:focus{
  outline:none;
  border-color:#2E7D32;
  box-shadow:0 0 0 2px rgba(46,125,50,.12);
}

.page-home .home-search button{
  padding:14px 34px;
  border-radius:40px;
  border:none;
  background:#2E7D32;
  color:#fff;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

.page-home .home-search button:hover{
  background:#256428;
}



/* FOOTER MODAL */
.footer-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:4000;
  padding:20px;
}
.footer-modal.show{
  display:flex;
}
.footer-modal-box{
  background:#fff;
  max-width:700px;
  width:100%;
  border-radius:14px;
  padding:24px;
  position:relative;
  max-height:85vh;
  overflow:auto;
}
.footer-modal-close{
  position:absolute;
  top:12px;
  right:16px;
  font-size:26px;
  cursor:pointer;
}

/* =========================
   SEARCH SAYFASI – FOOTER FIX
========================= */
.page-search{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.page-search .results-wrap{
  flex:1;               /* içerik alanı uzar */
  height:auto !important;
  overflow-y:auto;
}

.page-search footer{
  margin-top:auto;      /* footer en alta itilir */
}


/* =========================
   PROFILE – FOOTER & SABİT BAR ÇAKIŞMA FIX
========================= */
.page-profile footer{
  margin-bottom:80px; /* Hemen Ara + WhatsApp bar yüksekliği */
}

/* ANA SAYFA – GİRİŞ / KAYIT BAR */
.home-user-bar {
  display: flex;
  align-items: center;   /* ← ASIL DÜZELTME */
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 20px;
}

/* Giriş Yap linki */
.home-user-bar a {
  display: inline-flex;          /* ← önemli */
  align-items: center;
  height: 40px;                  /* Kayıt Ol ile aynı yükseklik */
  line-height: 1;
  text-decoration: none;
  color: #2E7D32;
  font-weight: 600;
}

/* Kayıt Ol butonu */
.home-user-bar .btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: #2E7D32;
  color: #fff;
  font-weight: 700;
}


/* AUTH MODAL (LOGIN) */
.auth-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:5000;
}
.auth-modal.show{display:flex}

.auth-modal-box{
  background:#fff;
  width:100%;
  max-width:420px;
  padding:28px;
  border-radius:16px;
  position:relative;
  text-align:center;
}

.auth-close{
  position:absolute;
  top:12px;
  right:16px;
  font-size:26px;
  cursor:pointer;
}

.auth-logo img{
  height:48px;
  margin-bottom:14px;
}

.auth-modal-box input{
  width:100%;
  padding:12px;
  margin-bottom:12px;
  border-radius:8px;
  border:1px solid #ccc;
}

.auth-modal-box button{
  width:100%;
  padding:14px;
  background:#2E7D32;
  color:#fff;
  border:none;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
}

.auth-links{
  margin-top:14px;
  font-size:14px;
}

/* --- HOME SLIDER --- */
.home-slider {
  margin: 40px auto;
  padding: 0 16px;
  max-width: 1200px;
}

.slider-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 16px;
  transition: transform .5s ease;
}

/* Kart */
.slide-card {
  flex: 0 0 260px;   /* SABİT KART GENİŞLİĞİ (kritik) */
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: #222;
  position: relative;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.slide-name {
  font-weight: 700;
  margin-bottom: 6px;
}

.slide-meta {
  font-size: 14px;
  color: #666;
}

.slide-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2E7D32;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Mobil */
@media (max-width: 768px) {
  .slide-card {
    flex: 0 0 85%;
  }
}

.home-info-bar {
  display: flex;
  gap: 20px;
  margin: 25px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.info-box {
  background: #f7f7f7;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.home-popular {
  margin: 40px 0;
  text-align: center;
}

.home-popular h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.popular-sub {
  font-size: 14px;
  color: #777;
  margin-bottom: 18px;
}

.popular-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.popular-grid a {
  background: #f4f6f8;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}

.popular-grid a:hover {
  background: #2c7a5a;
  color: #fff;
}


.contact-form{
  margin-top:16px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px;
  margin-bottom:10px;
  border-radius:8px;
  border:1px solid #ccc;
  font-family:inherit;
  font-size:14px;
}


.contact-form button{
  width:100%;
  padding:14px;
  background:#2E7D32;
  color:#fff;
  border:none;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
}

.contact-form button:hover{
  background:#256428;
}

.contact-result{
  margin-top:10px;
  font-size:14px;
}
.contact-result.success{ color:#2E7D32; }
.contact-result.error{ color:#c62828; }
