/*
 * Beyaz Eşya Rehberi - Custom CSS
 * Ek stil düzenlemeleri
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  max-height: 50px;
  width: auto;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(30, 64, 175, 0.95));
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.search-form {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.city-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.city-card:hover {
  text-decoration: none;
  color: inherit;
}

.firma-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.firma-card .mt-auto {
  margin-top: auto !important;
}

.map-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 8px;
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.widget ul li:last-child {
  border-bottom: none;
}

.seo-content {
  font-size: 1rem;
  line-height: 1.8;
}

.seo-content h2,
.seo-content h3,
.seo-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.seo-content ul,
.seo-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.seo-content li {
  margin-bottom: 0.5rem;
}

.entry-meta {
  font-size: 0.9rem;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content img {
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.breadcrumb {
  background: #f9fafb;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #6b7280;
}

.pagination {
  display: flex;
  justify-content: center;
}

.page-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn {
  transition: all 0.3s ease;
}

.site-footer a {
  transition: opacity 0.3s ease;
}

.site-footer a:hover {
  opacity: 0.8;
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }

  .search-form form {
    flex-direction: column;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 2.5rem 0;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .search-form {
    padding: 1.5rem;
  }

  .city-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .firma-card {
    margin-bottom: 1rem;
  }
}

.spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.25em;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.visible {
  opacity: 1;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  background: var(--secondary-color);
}

.custom-logo-link img {
  max-height: 60px;
  width: auto;
  display: block;
}

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.comments-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1f2937;
}

.comment-list {
  margin: 0;
  padding: 0;
}

.comment-body {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-author img {
  border-radius: 50%;
}

.comment-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.comment-content {
  margin-top: 1rem;
  line-height: 1.7;
}

.comment-reply-link {
  font-size: 0.875rem;
  color: #2563eb;
  text-decoration: none;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

.star-rating-display {
  color: #fbbf24;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.star-rating-input .stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
  font-size: 2rem;
}

.star-rating-input .stars input[type="radio"] {
  display: none;
}

.star-rating-input .stars label {
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.2s ease;
  margin: 0;
  line-height: 1;
}

.star-rating-input .stars label:hover,
.star-rating-input .stars label:hover ~ label,
.star-rating-input .stars input[type="radio"]:checked ~ label {
  color: #fbbf24;
}

.comment-form {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.comment-form .form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.comment-form .form-control {
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.comment-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.comment-form .alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border: none;
  border-radius: 8px;
}

.comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.comment-awaiting-moderation {
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: inline-block;
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .btn,
  .sidebar,
  .comment-form {
    display: none;
  }

  .container {
    max-width: 100%;
  }
}

#firma-ekle-form .form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

#firma-ekle-form .form-control,
#firma-ekle-form .form-select {
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#firma-ekle-form .form-control:focus,
#firma-ekle-form .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

#firma-ekle-form .form-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

#firma-ekle-form .form-check {
  padding: 0.5rem;
  transition: background-color 0.2s ease;
  border-radius: 4px;
}

#firma-ekle-form .form-check:hover {
  background-color: #f9fafb;
}

#firma-ekle-form .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  cursor: pointer;
}

#firma-ekle-form .form-check-label {
  cursor: pointer;
  margin-left: 0.5rem;
  user-select: none;
}

#firma-ekle-form hr {
  border-color: #e5e7eb;
  margin: 2rem 0;
}

#firma-ekle-form .alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.25rem;
}

#firma-ekle-form .alert-info {
  background-color: #dbeafe;
  color: #1e40af;
}

#firma-ekle-form .alert-warning {
  background-color: #fef3c7;
  color: #92400e;
}

#firma-ekle-form .alert-success {
  background-color: #d1fae5;
  color: #065f46;
}

#firma-ekle-form .alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

#firma-ekle-form .btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

#firma-ekle-form .btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

#firma-ekle-form .btn-outline-secondary {
  border: 2px solid #e5e7eb;
  color: #6b7280;
  font-weight: 600;
}

#firma-ekle-form .btn-outline-secondary:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.firma-ekle-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.05));
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-radius: 8px;
}

@media (max-width: 767px) {
  #firma-ekle-form .col-md-6,
  #firma-ekle-form .col-lg-4 {
    margin-bottom: 1rem;
  }

  #firma-ekle-form .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}
