/* ----------- Tema Renkleri ----------- */
:root {
  --primary: #ff9800;
  --primary-dark: #f57c00;
  --secondary: #ffd180;
  --background: #fff8f0;
  --card-bg: #fff;
  --text-main: #222;
  --text-secondary: #555;
  --success: #43A047;
  --danger: #FF5252;
  --warning: #FFD600;
  --border: #ffe0b2;
  --orange: #ff9800;
  --blue: #2196f3;
  --blue-light: #e3f2fd;
  --orange-light: #ffe0b2;
  --pink: #ff80ab;
  --accent: #ff7043; /* Yeni sıcak vurgu rengi */
  
  /* 🎨 Yeni tasarım değişkenleri */
  --shadow-light: rgba(255, 152, 0, 0.1);
  --shadow-medium: rgba(255, 152, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ----------- Genel Stiller ----------- */
html, body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    box-sizing: border-box;
    width: 100%;
}
*, *::before, *::after {
    box-sizing: inherit;
}
main {
    margin: 0;
    padding: 0;
}
body {
    background: var(--background);
    color: var(--text-main);
}

/* ----------- Header ----------- */
header, .main-header {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px var(--primary)22;
    padding: 0;
    z-index: 100;
    position: relative;
    width: 100%;
}

.header-top {
    width: 100%;
    max-width: 1200px;
    height: 78px;
    margin: 0 auto;
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.logo-area {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
    background: transparent;
}

.ilan-ver-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 2px 8px var(--primary)22;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.ilan-ver-btn:hover {
    background: linear-gradient(90deg, var(--primary-dark) 0%, #ff4081 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px var(--primary)44;
    transform: translateY(-1px);
}

.ilan-ver-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}
@media (max-width: 900px) {
    .header-top {
        padding: 0 15px;
    }
    
    .ilan-ver-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .logo-img {
        height: 48px;
    }
    
    .profile-area {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 0 10px;
        height: 70px;
    }
    
    .ilan-ver-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .ilan-ver-btn span {
        display: none; /* Sadece ikon göster */
    }
    
    .logo-img {
        height: 42px;
    }
    
    .profile-name {
        display: none; /* Küçük ekranlarda isim gizle */
    }
    
    .login-btn, .register-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 0 8px;
        height: 65px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .ilan-ver-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .profile-area {
        gap: 5px;
    }
    
    .login-btn, .register-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1em;
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-arrow {
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.8;
}

.profile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1100;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.1);
}

.profile-menu a {
    display: block;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
    border-radius: 0;
}

.profile-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.profile-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.profile-menu a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.profile-dropdown.open .profile-menu {
    display: flex;
    z-index: 1050;
}

.login-btn, .register-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.login-btn:hover, .register-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    transform: translateY(-1px);
}




/* ----------- Ana Menü (main-categories) ----------- */
.main-categories {
    width: 100%;
    background: #fffbe7;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 12px #ff980022;
    position: relative;
    z-index: 10;
    margin-bottom: 24px; /* Fazla boşluğu kaldır */
    padding-bottom: 0; /* Ekstra boşluk varsa kaldır */
}
.main-categories ul {
    list-style: none;
    margin: 0;
    padding: 0 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
}
.main-categories ul li {
    position: relative;
    margin: 0 8px;
    display: flex;
    align-items: center;
}
.main-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 26px;
    font-size: 1.08em;
    font-weight: 600;
    color: var(--primary-dark);
    background: none;
    border: none;
    border-radius: 18px;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s;
    text-decoration: none;
    outline: none;
    height: 40px;
    line-height: 40px;
}
.main-link:hover,
.main-categories ul li.active > .main-link {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px #ff980044;
}
.dropdown-parent .dropdown-toggle i {
    font-size: 0.9em;
    margin-left: 4px;
    transition: transform 0.25s;
}
.dropdown-parent:hover .dropdown-toggle i,
.dropdown-parent:focus-within .dropdown-toggle i {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    left: 0;
    top: 110%;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 8px 32px #ff980022;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.22s, transform 0.22s;
    z-index: 100;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.dropdown-parent:hover .dropdown-menu,
.dropdown-parent:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.dropdown-menu li {
    width: 100%;
    display: block;
}
.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 12px 18px 12px 16px;
    color: var(--primary-dark);
    background: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1em;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    text-align: left;
    box-sizing: border-box;
}
.dropdown-menu li a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}
@media (max-width: 700px) {
    .main-categories ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        min-height: unset;
    }
    .main-categories ul li {
        width: 100%;
        margin: 0;
    }
    .main-link {
        padding: 14px 18px;
        border-radius: 0;
        font-size: 1em;
        height: auto;
        line-height: normal;
    }
    .dropdown-menu {
        min-width: 100%;
        left: 0;
        border-radius: 0 0 12px 12px;
    }
}


/* Reklam Banner Stilleri */

.ads-bar {
  position: fixed;
  top: 120px; /* header ve nav yüksekliği kadar ayarla */
  left: 0;
  width: 100vw;
  height: 0;
  pointer-events: none; /* reklamlar dışında tıklanamaz olsun */
  z-index: 100;
}

.left-ad, .right-ad {
  position: fixed;
  top: 120px; /* header ve nav yüksekliği kadar ayarla */
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  height: 80vh;
  pointer-events: auto;
  z-index: 101;
  display: flex;
  align-items: flex-start;
}

.left-ad {
  left: 0;
  justify-content: flex-start;
}

.right-ad {
  right: 0;
  justify-content: flex-end;
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  border: 2px dashed #ccc;
  color: #888;
  font-size: 1em;
  text-align: center;
  padding-top: 40px;
  box-sizing: border-box;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;           /* Ortalamak için */
  margin-top: 0;
  padding-top: 0;
  padding: 0px 0 32px 0;
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  position: relative;
}
/* Ana içerik reklamların altında kalmasın diye soldan ve sağdan padding ekle */
@media (min-width: 1200px) {
  .main-content {
    padding-left: 180px;
    padding-right: 180px;
  }
}
@media (max-width: 1200px) {
  .main-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Login Sayfası Stilleri */

.login-card {
  width: 400px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px #2196f322;
  padding: 12px 28px 24px 28px;
  text-align: center;
}
.login-card h2 {
  margin-bottom: 28px;
  color: var(--primary, #2196f3);
}
.form-group {
  margin-bottom: 18px;
  text-align: left;
}
.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  font-size: 1em;
  background: #f8fafc;
  transition: border 0.15s;
}
.form-control:focus {
  border-color: var(--primary, #2196f3);
  outline: none;
  background: #fff;
}
.form-error {
  color: #e53935;
  font-size: 0.97em;
  margin-top: 3px;
}
.form-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.btn.primary {
  background: var(--primary, #2196f3);
  color: #fff;
  border: none;
}
.btn.full-width {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 1.08em;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn.primary:hover {
  background: #1976d2;
}
.login-links {
  margin-top: 18px;
  font-size: 0.97em;
  color: #888;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.login-links a {
  color: var(--primary, #2196f3);
  text-decoration: none;
  transition: color 0.15s;
}
.login-links a:hover {
  color: #1976d2;
}

.register-bottom {
  margin-top: 6px;
  font-size: 1em;
  color: #888;
  text-align: center;
}
.register-bottom .register-link {
  color: var(--primary, #2196f3);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.15s;
}
.register-bottom .register-link:hover {
  color: #1976d2;
}

/* Uyarı kutuları */
.login-alerts {
  width: 100%;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.alert-danger {
  background: var(--danger);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px #ff525233;
  width: 100%;
  text-align: center;
}
.alert-success {
  background: var(--success);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px #43a04733;
  width: 100%;
  text-align: center;
}
.alert {
  padding: 12px 20px;
  margin: 16px auto;
  border-radius: 8px;
  background: #ffe0b2;
  color: #222;
  max-width: 400px;
  text-align: center;
  font-weight: 600;
}
.alert-info { background: #e3f2fd; color: #1976d2; }
.alert-success { background: #c8e6c9; color: #388e3c; }
.alert-danger { background: #ffcdd2; color: #c62828; }



/* ----------- Butonlar ----------- */
button, .btn, .hizli-arama-btn, .ilan-ver-btn {
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px var(--primary)22;
}
button:hover, .btn:hover, .hizli-arama-btn:hover, .ilan-ver-btn:hover {
    background: var(--primary-dark);
    color: #fff !important;
    box-shadow: 0 4px 16px var(--primary-dark)33;
}

/* ----------- Formlar ----------- */
input, select, textarea {
    border: 1.2px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1em;
    background: #fff;
    color: var(--text-main);
    margin-bottom: 10px;
    outline: none;
    transition: border 0.18s;
}
input:focus, select:focus, textarea:focus {
    border: 1.2px solid var(--primary);
}

/* ----------- Alert ve Mesajlar ----------- */
.alert-success { background: var(--success); color: #fff; border-radius: 8px; padding: 10px 18px; }
.alert-danger { background: var(--danger); color: #fff; border-radius: 8px; padding: 10px 18px; }
.alert-warning { background: var(--warning); color: #222; border-radius: 8px; padding: 10px 18px; }


/* Ana sayfa stilleri */


/* Ana sayfa hızlı arama paneli */
.anasayfa-hizli-arama-panel {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 12px auto;
  background: var(--background);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--primary)22;
  padding: 10px 18px 6px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.anasayfa-hizli-arama-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.anasayfa-hizli-arama-item {
  display: flex;
  flex-direction: column;
  min-width: 130px;
  max-width: 140px;
  flex: 1 1 0;
}
.anasayfa-hizli-arama-item label {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.anasayfa-hizli-arama-item select {
  border-radius: 6px;
  border: 1.2px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: #222;
  outline: none;
  transition: border 0.2s;
  width: 100%;
  min-width: 98px;
  max-width: 140px;
}
.anasayfa-hizli-arama-item select:focus {
  border: 1.2px solid var(--primary);
}
.anasayfa-hizli-arama-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  height: 38px;
  min-width: 80px;
  max-width: 120px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 6px;
}
.anasayfa-hizli-arama-btn:hover {
  background: var(--primary-dark);
}
@media (max-width: 900px) {
  .anasayfa-hizli-arama-panel {
    max-width: 100vw;
    padding: 8px 8px 4px 8px;
  }
  .anasayfa-hizli-arama-row {
    flex-direction: column;
    gap: 10px;
  }
  .anasayfa-hizli-arama-item {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .anasayfa-hizli-arama-btn {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* Ana Sayfa Yeni ilanlar bölümü stilleri */

.sah-ilanlar-baslik,
.es-ilanlar-baslik {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.sah-ilanlar-baslik h2,
.es-ilanlar-baslik h2 {
  margin: 0;
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
}
.sah-ilanlar-baslik a:not(.tum-ilanlar-link),
.es-ilanlar-baslik a:not(.tum-ilanlar-link) {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  margin: 0 0 0 8px;
  padding: 0;
  white-space: nowrap;
}
.tum-ilanlar-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tum-ilanlar-link i {
  font-size: 14px;
}
.tum-ilanlar-link:hover {
  color: var(--primary-dark);
}

.ilanlar-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 24px auto;
  background: var(--card-bg);
  padding: 16px 32px 0px 32px;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--primary)22;
  position: relative;
  z-index: 1;
}
.ilanlar-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
  min-height: 350px; /* Grid yüksekliği sabit */
  max-width: 1000px;
  margin: 0 auto 32px auto;
  justify-items: stretch;
  align-items: start;
  box-sizing: border-box;
}
.ilan-kart-modern {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.ad-card {
  width: 100%;
  min-width: 0;
  height: 160px;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--primary)22;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.ad-card:hover {
  box-shadow: 0 6px 24px var(--primary-dark)33;
  transform: translateY(-4px) scale(1.02);
}
.ad-card-img {
  width: 100%;
  height: 100px;
  background: #f6faff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.2s;
}
.ad-card:hover .ad-card-img img {
  transform: scale(1.04);
}
.ad-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 7px 7px 7px 9px;
  justify-content: flex-start;
}
.ad-card-title {
  font-size: 0.75em;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-card-info {
  font-size: 0.72em;
  color: #555;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-card-date {
  font-size: 0.70em;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
}
@media (max-width: 900px) {
  .ilanlar-grid-modern {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .ad-card {
    height: 140px;
  }
  .ad-card-img {
    height: 50px;
  }
}
@media (max-width: 600px) {
  .ilanlar-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-width: 100vw;
  }
  .ad-card {
    height: 120px;
  }
  .ad-card-img {
    height: 38px;
  }
}


/*Profil Fotoğrafı Stilleri*/
.profil-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.profil-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--orange-light, #ffe0b2);
  background: var(--orange-light, #ffe0b2);
  box-shadow: 0 1px 6px var(--orange-light, #ffe0b2);
  display: block;
}



/*Profil Sayfası Stilleri*/

.profil-modern-bg {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--background);

  box-sizing: border-box;

}
.profil-modern-card {
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 var(--primary-dark)22, 0 1.5px 6px 0 var(--secondary)33;
  padding: 32px 36px 24px 36px;
  max-width: 800px;
  width: 100%;
  margin: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.profil-header {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1.5px solid var(--orange-light);
  padding-bottom: 16px;
}
.profil-photo img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange-light);
  background: var(--orange-light);
  box-shadow: 0 1px 6px var(--orange-light);
}
.profil-main-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.profil-main-info h2 {
  color: var(--primary);
  font-size: 1.35em;
  font-weight: 700;
  margin: 0;
  text-align: left;
  word-break: break-word;
}
.profil-badge {
  background: linear-gradient(90deg, var(--primary) 60%, var(--pink) 100%);
  color: #fff;
  font-size: 0.90em;
  font-weight: 600;
  padding: 1.5px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 4px var(--orange-light);
  letter-spacing: 0.5px;
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 2px;
  max-width: 110px;
  text-align: center;
  white-space: nowrap;
}
.profil-meta {
  display: flex;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 1em;
  margin-top: 2px;
  flex-wrap: wrap;
  margin-bottom: 0 !important;
}
.profil-meta i {
  margin-right: 5px;
  color: var(--primary);
}
.profil-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  margin-left: 8px;
}
.profil-edit-btn, .logout-btn {
  background: linear-gradient(90deg, var(--primary) 0%, var(--pink) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  box-shadow: 0 2px 8px var(--primary)11;
  cursor: pointer;
}
.logout-btn {
  background: linear-gradient(90deg, var(--danger) 0%, var(--pink) 100%);
  box-shadow: 0 2px 8px var(--danger)33;
}
.profil-edit-btn:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--pink) 100%);
}
.logout-btn:hover {
  background: linear-gradient(90deg, #d50000 0%, var(--pink) 100%);
}


.profile-about-box {
  background: #f7faff;
  border-radius: 12px;
  padding: 0px 12px;

}
.profile-about-box h3 {
  color: var(--primary, #2196f3);
  font-size: 1.1em;
  margin-top: 8px;


}
.profile-about-box p {
  color: #444;
  font-size: 1em;
}

.profil-tabs {
  display: flex;
  gap: 6px;
  margin: 6px 0 0 0;
  border-bottom: 2.5px solid var(--orange-light);
  padding-bottom: 0;
  position: relative;
  z-index: 1;
  background: transparent;
}
.tab-btn {
  background: var(--orange-light);
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  font-size: 1.12em;
  font-weight: 700;
  padding: 12px 16px 10px 16px;
  border-radius: 16px 16px 0 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  margin-bottom: -2.5px;
  outline: none;
  box-shadow: 0 2px 8px var(--blue-light);
  letter-spacing: 0.5px;
  position: relative;
  top: 2.5px;
}
.tab-btn.active, .tab-btn:focus {
  background: var(--primary);
  color: #fff;
  border-bottom: 2.5px solid var(--card-bg);
  border-color: var(--primary) var(--primary) var(--card-bg) var(--primary);
  z-index: 2;
}
.tab-btn:hover:not(.active) {
  background: #ffe0b2;
  color: var(--primary-dark);
  border-color: var(--primary);
}
.profil-tab-content {
  display: none;
  animation: fadein 0.3s;
}
.profil-tab-content.active {
  display: block;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.profil-bio {
  background: var(--orange-light);
  border-radius: 10px;
  padding: 12px 14px;
}
.profil-bio h4 {
  color: var(--blue);
  margin: 0 0 6px 0;
  font-size: 1.08em;
}
.profil-bio p {
  margin: 0;
  color: var(--text-main);
  font-size: 0.98em;
}
.profil-ads-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.profil-ad-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--orange-light);
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: box-shadow 0.18s, transform 0.18s, border 0.18s;
  border: 1.5px solid var(--orange-light);
}
.profil-ad-card:hover {
  box-shadow: 0 4px 18px var(--pink);
  border: 1.5px solid var(--pink);
}
.profil-ad-img img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--orange-light);
}
.profil-ad-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profil-ad-info h5 {
  margin: 0;
  font-size: 1em;
  color: var(--primary);
  font-weight: 700;
}
.profil-ad-date {
  color: var(--text-secondary);
  font-size: 0.95em;
}
.profil-no-ads {
  color: var(--text-secondary);
  text-align: center;
  margin: 18px 0 0 0;
  font-size: 1.05em;
}
@media (max-width: 900px) {
  .profil-modern-card { max-width: 98vw; padding: 14px 2vw; }
}
@media (max-width: 800px) {
  .profil-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .profil-photo img { width: 70px; height: 70px; }
}
@media (max-width: 600px) {
  .profil-modern-card { padding: 6px 2vw; }
  .profil-ads-list { grid-template-columns: 1fr; }
  .profil-tabs { flex-direction: column; gap: 0; }
  .tab-btn { width: 100%; border-radius: 0; }
}

/* Profil Düzenleme Sayfası Stilleri */

/* Profil kartı genişliği */
.profile-modern-card {
  background: var(--card-bg, #fff);
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 var(--primary-dark, #f57c00)22, 0 1.5px 6px 0 var(--secondary, #ffd180)33;
  padding: 32px 28px 24px 28px;
  max-width: 800px;
  width: 100%;
  margin: 32px auto 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-header {
  width: 100%;
  text-align: center;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--orange-light, #ffe0b2);
  padding-bottom: 18px;
}

.profile-photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.photo-update-form {
  margin: 0;
  padding: 0;
}

.photo-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--pink) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-bottom: 8px;
  transition: background 0.18s;
}
.photo-update-btn:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--pink) 100%);
}

.profile-main-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group {
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
}
.form-label {
  font-weight: 600;
  font-size: 0.95em;
  color: var(--primary, #ff9800);
  margin-bottom: 6px;
  display: block;
}
.form-control, .form-control-file {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.profile-update-btn {
  max-width: 100%;
  width: 100%;
  background: var(--primary, #ff9800);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 28px;
  transition: background 0.18s;
  margin-top: 12px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.profile-update-btn:hover {
  background: var(--primary-dark, #f57c00);
}
.profil-bio {
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
}


/* ----------- İlanlar Sayfası Stilleri ----------- */

/* Filtre paneli ve hızlı arama */
.ilanlar-flex-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px 0 32px 0;
  display: flex;
  gap: 32px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Reklamların arasında ortalamak için geniş ekranlarda padding ekle */
@media (min-width: 1200px) {
  .ilanlar-flex-wrapper {
    padding-left: 180px;
    padding-right: 180px;
  }
}
@media (max-width: 1200px) {
  .ilanlar-flex-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}


.filtre-panel-dikey {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px #ff980022;
  padding: 24px 18px 18px 18px;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 32px;
  z-index: 10;
}

.hizli-arama-panel-dikey {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hizli-arama-dikey-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hizli-arama-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hizli-arama-item label {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--primary-dark, #f57c00);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hizli-arama-item select,
.hizli-arama-item input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1.2px solid var(--border, #ffe0b2);
  background: #fffbe7;
  font-size: 0.85em;
  color: var(--text-main);
  transition: border 0.18s;
  margin-bottom: 0;
}

.hizli-arama-item select:focus,
.hizli-arama-item input[type="text"]:focus {
  border: 1.2px solid var(--primary, #ff9800);
}

.hizli-arama-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
  font-size: 1.08em;
  font-weight: 700;
  border-radius: 8px;
  background: var(--primary, #ff9800);
  color: #fff;
  border: none;
  margin-top: 8px;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hizli-arama-btn:hover {
  background: var(--primary-dark, #f57c00);
}

/* Responsive: Mobilde filtre paneli üstte ve yatay */
@media (max-width: 900px) {
  .sahiplendirme-flex-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    max-width: 100vw;
  }
  .filtre-panel-dikey {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px #ff980022;
    position: static;
    top: unset;
    margin-bottom: 12px;
  }
}

/* Ana içerik grid ve arama hizası */
.ilanlar-ana-icerik {
  flex: 1 1 0;

  min-width: 0;
  padding: 0; 
}

/* Arama formu grid boyunca */
.ilanlar-arama-form {
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 8px;
  margin: 18px auto 18px auto;
  box-sizing: border-box;
}
.ilanlar-arama-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.2px solid var(--border, #ffe0b2);
  font-size: 1em;
}
.ilanlar-arama-btn {
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--primary, #ff9800);
  color: #fff;
  border: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-weight: 600;
  font-size: 1em;
  transition: background 0.18s;
}
.ilanlar-arama-btn:hover {
  background: var(--primary-dark, #f57c00);
}


/* İlanlar ana grid yapısı */
.il-ilanlar-grid-katalog {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 800px;      /* main ile aynı genişlik */
    margin: 0 auto 32px auto;
    padding: 0;
    box-sizing: border-box;
}

/* Responsive grid */
@media (max-width: 1100px) {
    .ilanlar-grid-katalog {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }
}
@media (max-width: 800px) {
    .ilanlar-grid-katalog {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
}
@media (max-width: 500px) {
    .ilanlar-grid-katalog {
        grid-template-columns: 1fr;
        max-width: 100vw;
    }
}

/* İlan kartı */
.il-ad-card {
    width: 140px;
    height: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px #ff980022;
    overflow: hidden;
    transition: box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.il-ad-card:hover {
    box-shadow: 0 6px 24px #ff980044;
}
.il-ad-card-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    background: #fafafa;
}
.il-ad-card-body {
    padding: 12px 14px 10px 14px;
}
.il-ad-card-title {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.il-ad-card-info, .il-ad-breed-info, .il-ad-card-date {
    font-size: 0.75em;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.il-ad-type-flag {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 90px;
  padding: 1px 0;
  text-align: center;
  font-size: 0.50em;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 152, 0, 0.92);
  border-radius: 6px;
  box-shadow: 0 2px 8px #0002;
  z-index: 3;
  pointer-events: none;
  letter-spacing: 0.3px;
  transform: rotate(-45deg);
  opacity: 0.96;
  transition: background 0.2s;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.il-ad-type-flag.eş-bulma {
  background: rgba(33, 150, 243, 0.92);
}
.il-ad-type-flag.sahiplendirme {
  background: rgba(255, 152, 0, 0.92);
}




/* İlan Detay Sayfası Stilleri */
.ad-detail-bg {
  background: var(--background, #f6faff);
  min-height: 100vh;
  width: 100vw;
  padding: 0 0;
  display: flex;
  justify-content: center;
}
.ad-detail-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 24px #2196f322;
  padding: 24px 36px 28px 36px;
  width: 1000px;
  max-width: 1000px;
  width: 100%;
  margin: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ad-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: space-between; /* Buton sağa yaslanır */
}

.ad-detail-header h1 {
  font-size: 1.4em;
  color: var(--primary, #2196f3);
  font-weight: 650;
  margin: 0;
  word-break: break-word;
}
.ad-type-badge {

  background: var(--pink, #ff80ab);
  color: #fff;
  border-radius: 8px;
  padding: 6px 18px;
  font-weight: 600;
  font-size: 1em;
}
.ad-type-badge.eş-bulma { background: #2196f3; }
.ad-type-badge.sahiplendirme { background: #ff9800; }
/* Favori butonunu her zaman görünür ve tam yuvarlak yap */

.free-adoption-badge {
  display: inline-flex;
  align-items: center;
  background: var(--pink);
  color: #fff;
  border-radius: 10px;
  padding: 6px 8px 6px 8px;
  font-weight: 700;
  font-size: 0.9em;
  box-shadow: 0 2px 8px #43A04722;
  letter-spacing: 0.5px;
  vertical-align: middle;
  border: 1.5px solid #43A047;
  transition: box-shadow 0.2s;
}
.free-adoption-badge i {
  margin-right: 8px;
  font-size: 1.1em;
  color: #fffde7;
}


.fav-btn {
  background: #fff !important;
  border: 2.5px solid #ff80ab !important;
  color: #ff80ab !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5em !important;
  box-shadow: 0 2px 8px #ff80ab22;
  opacity: 1 !important;
  visibility: visible !important;
  margin-left: auto;
  margin-right: 0;
  z-index: 2;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  padding: 0 !important; /* <-- padding'i sıfırla */
}

.fav-btn i {
  color: #ff80ab !important;
}

.fav-btn:hover {
  background: #ff80ab !important;
  color: #fff !important;
  box-shadow: 0 4px 16px #ff80ab44;
}
.fav-btn:hover i {
  color: #fff !important;
}


/* ----------- Galeri Modal Stilleri ----------- */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}
.gallery-modal-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px #0008;
  background: #fff;
}
.gallery-modal-close {
  position: absolute;
  top: 32px;
  right: 48px;
  color: #fff;
  font-size: 2.8em;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 2px 8px #000;
}
.gallery-modal-arrow {
  background: none;
  border: none;
  color: var(--primary, #2196f3);
  font-size: 2.2em;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0.85;
  transition: color 0.18s, opacity 0.18s;
  box-shadow: none;
  outline: none;
  padding: 0;
}
.gallery-modal-arrow.left {
  left: 0;
}
.gallery-modal-arrow.right {
  right: 0;
}
.gallery-modal-arrow:hover, .gallery-modal-arrow:focus {
  color: var(--pink, #ff80ab);
  opacity: 1;
}
@media (max-width: 700px) {
  .gallery-modal-content { max-width: 98vw; max-height: 70vh; }
  .gallery-modal-close { top: 12px; right: 18px; font-size: 2em; }
  .gallery-modal-arrow.left { left: 8px; }
  .gallery-modal-arrow.right { right: 8px; }
}


.ad-detail-main {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.ad-detail-gallery {
  flex: 1.2;
  min-width: 260px;
}
.gallery-main-img {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #b3e5fc;
  cursor: pointer;
  transition: border 0.2s;
}
.gallery-thumbs img:hover {
  border: 2px solid var(--primary, #2196f3);
}
.ad-share {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ad-share a {
  color: var(--primary, #2196f3);
  font-size: 1.3em;
  transition: color 0.15s;
}
.ad-share a:hover {
  color: var(--pink, #ff80ab);
}
/* İlan bilgi kartı */
.ad-info-card.compact {
  background: #fffdfa;
  border-radius: 14px;
  box-shadow: 0 2px 12px #ff980022;
  padding: 8px 10px 8px 10px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.ad-info-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-bottom: 10px;
}

.ad-info-cell {
  display: flex;
  align-items: flex-start;

  background: #fff7e6;
  border-radius: 8px;
  box-shadow: 0 1px 6px #ff980014;
  min-width: 0;
}

.ad-info-icon {
  color: #ff9800;
  font-size: 1.25em;
  width: 28px;
  text-align: center;
  margin-top: 2px;
}

.ad-info-label {
  margin-left: 4px;
  font-weight: 600;
  color: #444;
  font-size: 0.94em;
  margin-bottom: 2px;
}

.ad-info-value {
  margin-left: 4px;
  color: #222;
  font-weight: 500;
  font-size: 1.00em;
  word-break: break-word;
}

.ad-info-row-single {
  margin-top: 10px;
  border-top: 1px solid #ffe0b2;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
}

.free-badge {
  background: var(--primary, #2196f3);
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.95em;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 700px) {
  .ad-info-table {
    grid-template-columns: 1fr 1fr;
    gap: 10px 10px;
  }
  .ad-info-card.compact {
    padding: 10px 4px 6px 4px;
  }
}



.ad-contact-box {
  margin-top: 14px;
  background: var(--orange-light, #e3f2fd);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px #2196f322;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ad-owner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 2px 8px #2196f322;
}
.ad-owner-photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #b3e5fc;
}
.ad-owner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ad-owner-name {
  font-weight: 650;
  color: var(--primary, #2196f3);
  font-size: 1.2em;
  margin-bottom: 4px;
}

.see-more-ads-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 18px;
  background: var(--primary, #ff9800);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px #ff980022;
  font-size: 0.8em;
}
.see-more-ads-btn:hover {
  background: var(--primary-dark, #f57c00);
  color: #fff;
}


.ad-contact-info.contact-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.call-btn, .msg-btn {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 48px;
  box-sizing: border-box;
  display: flex;
  gap: 10px;
}
.call-btn {
  background: #fff;
  border: 2px solid #1976d2;
  color: #1976d2;
  border-radius: 8px;
  font-size: 1.08em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px #1976d222;
}
.call-btn:hover {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
  box-shadow: 0 4px 16px #1976d244;
}
.call-btn .fa-phone-alt {
  font-size: 1.2em;
}
.msg-btn {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px #25d36622;
}
.msg-btn:hover {
  background: #1ebe57;
  box-shadow: 0 4px 16px #25d36644;
}
.msg-btn .fab {
  font-size: 1.2em;
}
.ad-detail-desc {
  margin-top: 24px;
  margin-bottom: 8px;
}
.ad-detail-desc h3 {
  color: var(--primary, #2196f3);
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 6px;
}
.ad-detail-desc p {
  font-size: 1.08em;
  color: #333;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}
.ad-detail-date {
  margin-top: 18px;
  color: #888;
  font-size: 0.98em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ad-more-ads {
  margin-top: 4px;
}
.ad-more-ads h4 {
  color: var(--primary, #2196f3);
  font-size: 0.7em;
  margin-bottom: 10px;
}
.ad-more-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.ad-more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-decoration: none;
  color: #1976d2;
  background: #f6faff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #2196f322;
  padding: 8px;
  transition: box-shadow 0.15s, background 0.15s;
}
.ad-more-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}
.ad-more-item:hover {
  background: #e3f2fd;
  box-shadow: 0 4px 16px #2196f344;
}

.similar-ads-section {
  position: relative;
  margin-bottom: 24px;
}

.similar-ads-section h3 {
  color: var(--primary, #ff9800);
  font-size: 1.12em;
  font-weight: 700;
  margin-bottom: 12px;
}

.similar-ads-arrow {
  background: var(--orange);
  border: none;
  color: var(--primary, #ff9800); /* Turuncu ok */
  font-size: 2em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 1;
  transition: color 0.18s, opacity 0.18s;
  box-shadow: none;
  outline: none;
  padding: 0;
}
.similar-ads-arrow.left {
  left: 0;
}
.similar-ads-arrow.right {
  right: 0;
}
.similar-ads-arrow:hover, .similar-ads-arrow:focus {
  background: none;
  color: var(--primary-dark, #f57c00); /* Koyu turuncu */
  opacity: 1;
}

.similar-ads-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.similar-ads-list {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  width: 100%;
}
.similar-ads-list::-webkit-scrollbar { display: none; }
.similar-ads-list { scrollbar-width: none; }

.similar-ad-card {
  width: 120px;
  min-width: 120px;
  background: #fffdfa;
  border-radius: 10px;
  box-shadow: 0 2px 8px #eeb05322;
  text-decoration: none;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 10px 8px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.similar-ad-card:hover {
  box-shadow: 0 6px 24px #ff980044;
  transform: translateY(-2px) scale(1.03);
}
.similar-ad-img img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #f6faff;
}
.similar-ad-title {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--primary-dark, #f57c00);
  margin-bottom: 2px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.similar-ad-info {
  font-size: 0.75em;
  color: #888;
  text-align: center;
}

/* Responsive */
@media (max-width: 1100px) {
  .ad-detail-card { padding: 12px 2vw; }
  .ad-detail-main { flex-direction: column; gap: 18px; }
  .gallery-main-img { height: 220px; }
}

@media (max-width: 700px) {
  .ad-detail-card { padding: 8px 2vw; }
  .gallery-main-img { height: 120px; }
  .ad-owner-photo img { width: 40px; height: 40px; }
  .ad-more-item { width: 90px; }
  .ad-more-item img { height: 50px; }
  .call-btn, .msg-btn {
    width: 100%;
    min-width: 0;
    font-size: 1em;
    padding: 10px 0;
    height: 46px;
  }
  .contact-btn-group {
    flex-direction: column;
    gap: 10px;
  }
}
/* Test ve sonuç sayfası için */
.test-container, .test-result-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px #ff980033;
  padding: 12px 24px;
}
.test-title {
  font-size: 1.4em;
  color: var(--primary, #ff9800);
  text-align: center;
  margin-bottom: 24px;
}
.test-form .test-section {
  margin-bottom: 12px;
}
.test-question {
  font-size: 0.85em;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 8px;
}
.test-question span {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.test-question label {
  display: block;
  margin-bottom: 6px;
  margin-right: 18px;
  font-weight: 400;
  cursor: pointer;
}
.test-submit-btn {
  display: block;
  width: 100%;
  background: var(--primary, #ff9800);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.test-submit-btn:hover {
  background: #e68900;
}

.test-recommend-title {
  margin: 18px 0 10px 0;
  color: var(--primary, #ff9800);
}
.breed-recommend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* ----------- Blog Detail Content Styles ----------- */
.article-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  max-width: none;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--primary-dark);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  line-height: 1.3;
}

.article-content h1 {
  font-size: 2rem;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
}

.article-content h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.3rem;
}

.article-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
}

.article-content h4 {
  font-size: 1.1rem;
}

.article-content p {
  margin: 1rem 0;
  text-align: justify;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.article-content ul li {
  list-style-type: disc;
}

.article-content ol li {
  list-style-type: decimal;
}

.article-content strong {
  font-weight: 700;
  color: var(--primary-dark);
}

.article-content em {
  font-style: italic;
  color: var(--text-secondary);
}

.article-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  color: #d63384;
}

.article-content pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: #333;
  font-size: 0.9rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: #f8f9fa;
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #666;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.article-content a:hover {
  color: var(--primary-dark);
}

.article-content br {
  line-height: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;
  }
  
  .article-content h1 {
    font-size: 1.6rem;
  }
  
  .article-content h2 {
    font-size: 1.4rem;
  }
  
  .article-content h3 {
    font-size: 1.2rem;
  }
}
