/* ============================================================
   product-modal.css
   Neva Elektronik - Ürün Sayfası Modal & Bileşen Stilleri
   ============================================================ */

/* ===== Review Modal ===== */
#reviewModal .modal-dialog {
  max-width: 800px;
}

#reviewModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
}

#reviewModal .modal-header .close {
  color: white;
  opacity: 0.8;
  text-shadow: none;
}

#reviewModal .modal-header .close:hover {
  opacity: 1;
}

/* ===== Modal Tab Stilleri ===== */
.review-modal-tabs .nav-tabs {
  border-bottom: 2px solid #dee2e6;
}

.review-modal-tabs .nav-link {
  color: #6c757d;
  font-weight: 500;
  padding: 12px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.review-modal-tabs .nav-link i {
  margin-right: 8px;
}

.review-modal-tabs .nav-link:hover {
  color: #667eea;
  background-color: #f8f9fa;
}

.review-modal-tabs .nav-link.active {
  color: #667eea;
  background-color: transparent;
  border-bottom: 3px solid #667eea;
  font-weight: 600;
}

/* ===== Review List Stilleri ===== */
.reviews-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.review-item {
  border-bottom: 1px solid #eee;
  padding: 20px;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-author {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author i {
  color: #667eea;
}

.review-date {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

.review-rating {
  color: #ffc107;
  margin: 10px 0;
}

.review-rating .fa-star {
  font-size: 16px;
  margin-right: 2px;
}

.review-text {
  color: #555;
  line-height: 1.6;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #eee;
}

.review-verified {
  display: inline-block;
  background: #28a745;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 10px;
}

.review-empty {
  text-align: center;
  padding: 30px 20px;
  color: #6c757d;
}

.review-empty i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #dee2e6;
}

.review-empty h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

.review-empty p {
  font-size: 15px;
  opacity: 0.8;
}

/* ===== Admin Satıcı Cevabı Stilleri ===== */
.admin-reply-block {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4e8 100%);
  border-left: 4px solid #28a745;
  border-radius: 0 8px 8px 0;
}

.admin-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #155724;
  font-weight: 600;
}

.admin-reply-header i {
  color: #28a745;
}

.admin-reply-meta {
  margin-left: auto;
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
  font-weight: normal;
}

.admin-reply-text {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  padding-left: 22px;
}

/* ===== Review Form Stilleri ===== */
.review-form-container {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.review-form-container .form-group {
  margin-bottom: 20px;
}

.rating-group-modal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-stars-modal {
  display: inline-flex;
  gap: 5px;
  font-size: 24px;
}

.rating-stars-modal .fa-star {
  cursor: pointer;
  color: #ddd;
  transition: all 0.2s ease;
}

.rating-stars-modal .fa-star:hover,
.rating-stars-modal .fa-star.hovered,
.rating-stars-modal .fa-star.selected {
  color: #ffc107;
  transform: scale(1.1);
}

.rating-stars-modal .fa-star.selected,
.rating-stars-modal .fa-star.active {
  color: #ffc107;
}

.star-label {
  cursor: pointer;
  display: inline-block;
  margin: 0 2px;
}

.star-label:hover .fa-star {
  color: #ffc107;
}

.rating-text {
  color: #6c757d;
  font-size: 14px;
}

#input-review-modal {
  min-height: 120px;
  resize: vertical;
}

#button-review-modal {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  width: 100%;
}

#button-review-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#button-review-modal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#button-review-modal.btn-loading {
  background: #6c757d;
}

#reviewModal .text-danger {
  font-size: 13px;
  color: #dc3545;
  margin-top: 5px;
}

#reviewModal .has-error .form-control {
  border-color: #dc3545;
}

.review-alert {
  animation: slideDown 0.3s ease;
  margin: 15px;
  border-radius: 8px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Pagination Stilleri ===== */
.review-pagination {
  margin-top: 20px;
}

.review-pagination .pagination {
  justify-content: center;
}

.review-pagination .page-link {
  color: #667eea;
  border: 1px solid #dee2e6;
}

.review-pagination .page-item.active .page-link {
  background-color: #667eea;
  border-color: #667eea;
}

.review-pagination .page-link:hover {
  background-color: #f8f9fa;
}

/* ===== Modal Footer ===== */
#reviewModal .modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

#reviewModal .modal-footer .btn {
  min-width: 100px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#reviewModal .modal-footer .btn-secondary:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

/* ===== Loading Animation ===== */
.review-loading {
  text-align: center;
  padding: 40px;
}

.review-loading .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* ===== Modal Trigger ===== */
.modal-trigger {
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-trigger:hover {
  color: #667eea !important;
}

.modal-trigger i {
  margin-right: 5px;
}

/* ===== Ürün Özellikleri (Başlık Altı) ===== */
.product-attributes-top {
  margin: 15px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}

.attributes-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 8px;
}

.attributes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.attribute-item {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.attribute-item:last-child {
  border-bottom: none;
}

.attribute-name {
  font-weight: bold;
  color: #555;
  min-width: 120px;
  margin-right: 10px;
  flex-shrink: 0;
}

.attribute-value {
  color: #333;
  flex: 1;
}

.attribute-value a {
  color: #e74c3c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.attribute-value a:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* ===== Fiyat Animasyonu ===== */
.price-updated {
  animation: pricePulse 0.8s ease;
}

@keyframes pricePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ===== Miktar Animasyonu ===== */
.quantity-change-animation {
  animation: quantityChange 0.3s ease;
}

@keyframes quantityChange {
  0%   { background-color: #f8f9fa; }
  50%  { background-color: #e9ecef; }
  100% { background-color: #ffffff; }
}

/* ===== Taksit Bilgi Mesajı ===== */
.taksit-info-message {
  padding: 20px;
}

.taksit-info-message .alert-info {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
}

.taksit-info-message .alert-info h4 {
  color: #0056b3;
  margin-bottom: 10px;
  font-weight: 600;
}

.taksit-info-message .alert-info i {
  margin-right: 10px;
  font-size: 24px;
  vertical-align: middle;
}

.payment-info-card {
  margin-top: 30px;
}

.payment-info-card .card {
  border: 1px solid #e3e6f0;
  border-radius: 10px;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.payment-info-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e3e6f0;
  font-weight: 600;
  color: #4e73df;
  padding: 1rem 1.35rem;
}

.payment-info-card .card-body {
  padding: 1.5rem;
}

.payment-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.payment-features li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed #eee;
}

.payment-features li:last-child {
  border-bottom: none;
}

.payment-features li i {
  margin-right: 10px;
  font-size: 14px;
}

/* ===== Bilgi Notu Bandı ===== */
.product-info-notice {
  background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 0;
  margin-top: 10px;
  font-size: 13px;
}

.product-info-notice .notice-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2e7d32;
}

.product-info-notice .notice-icons span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.product-info-notice .notice-icons i {
  color: #43a047;
  font-size: 13px;
}

.product-info-notice .notice-text {
  color: #555;
  font-size: 12.5px;
  line-height: 1.6;
  border-top: 1px dashed #b2dfdb;
  padding-top: 8px;
  margin-bottom: 0;
}

/* ===== Responsive - Tablet ===== */
@media (max-width: 768px) {
  #reviewModal .modal-dialog {
    margin: 10px;
  }

  .review-modal-tabs .nav-link {
    padding: 10px 15px;
    font-size: 14px;
  }

  .reviews-container {
    max-height: 300px;
  }

  .review-item {
    padding: 15px;
  }

  .attributes-list {
    grid-template-columns: 1fr;
  }

  .attribute-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .attribute-name {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 5px;
  }

  #reviewModal .modal-footer {
    padding: 12px 15px;
  }

  #reviewModal .modal-footer .btn {
    min-width: 80px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .product-info-notice .notice-icons {
    gap: 6px 12px;
    font-size: 12px;
  }
}

/* ===== Responsive - Mobil ===== */
@media (max-width: 576px) {
  #reviewModal .modal-footer {
    padding: 10px;
  }

  #reviewModal .modal-footer .btn {
    min-width: 70px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .product-info-notice {
    padding: 10px 12px;
  }

  .product-info-notice .notice-icons span {
    font-size: 11px;
  }
}

/* ===== Print Stilleri ===== */
@media print {
  .modal-header,
  .modal-footer,
  .nav-tabs {
    display: none !important;
  }

  .modal-dialog {
    max-width: 100% !important;
    margin: 0 !important;
  }

  .modal-content {
    border: none !important;
    box-shadow: none !important;
  }

  .tab-pane {
    display: block !important;
    opacity: 1 !important;
  }

  body * {
    visibility: hidden;
  }

  #reviewModal,
  #reviewModal * {
    visibility: visible;
  }

  #reviewModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
