/* ========================================
   Product Modal - Ürün Detay Popup
   ======================================== */

.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.product-modal.active {
  display: flex;
}

/* Overlay - Arka Plan */
.product-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(40, 21, 15, 0.9);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-modal.active .product-modal__overlay {
  opacity: 1;
}

/* Modal Container */
.product-modal__container {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.product-modal.active .product-modal__container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close Button */
.product-modal__close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2;
}

.product-modal__close:hover {
  background-color: var(--color-secondary);
  transform: rotate(90deg) scale(1.1);
}

.product-modal__close svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-background);
}

/* Content Layout */
.product-modal__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-height: 90vh;
  overflow-y: auto;
}

/* Image Section */
.product-modal__image-section {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 94, 60, 0.1), rgba(184, 134, 89, 0.1));
  padding: var(--spacing-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-modal__image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.product-modal__image-wrapper:hover .product-modal__image {
  transform: scale(1.05);
}

.product-modal__category-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background-color: var(--color-primary);
  color: var(--color-background);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
}

/* Info Section */
.product-modal__info-section {
  padding: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.product-modal__header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.product-modal__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

.product-modal__period {
  font-size: var(--font-size-md);
  color: var(--color-primary);
  font-style: italic;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.product-modal__period::before {
  content: '';
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

.product-modal__divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
}

.product-modal__description {
  font-size: var(--font-size-md);
  line-height: 1.8;
  color: var(--color-text);
  opacity: 0.9;
}

/* Features */
.product-modal__features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background-color: rgba(139, 94, 60, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.product-modal__feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.product-modal__feature svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}

/* Contact Button */
.product-modal__contact-btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  background-color: var(--color-primary);
  color: var(--color-background);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  margin-top: auto;
}

.product-modal__contact-btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Scrollbar Styling */
.product-modal__content::-webkit-scrollbar {
  width: 8px;
}

.product-modal__content::-webkit-scrollbar-track {
  background: rgba(40, 21, 15, 0.1);
}

.product-modal__content::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.product-modal__content::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Responsive Optimizasyonları */

/* Küçük Telefonlar (320px - 479px) */
@media (max-width: 479px) {
  .product-modal {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .product-modal__container {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }
  
  .product-modal__content {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  
  .product-modal__close {
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    background-color: rgba(139, 94, 60, 0.95);
  }
  
  .product-modal__close svg {
    width: 16px;
    height: 16px;
  }
  
  .product-modal__image-section {
    padding: var(--spacing-md);
    min-height: 250px;
  }
  
  .product-modal__image-wrapper {
    max-width: 100%;
    max-height: 40vh;
  }
  
  .product-modal__image {
    max-height: 40vh;
    object-fit: contain;
  }
  
  .product-modal__category-badge {
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 0.375rem var(--spacing-sm);
    font-size: 0.875rem;
    letter-spacing: 0.75px;
  }
  
  .product-modal__info-section {
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }
  
  .product-modal__header {
    gap: var(--spacing-xs);
  }
  
  .product-modal__title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .product-modal__period {
    font-size: 1rem;
    gap: 0.375rem;
  }
  
  .product-modal__period::before {
    width: 20px;
    height: 1.5px;
  }
  
  .product-modal__divider {
    width: 50px;
    height: 2.5px;
  }
  
  .product-modal__description {
    font-size: 1.0625rem;
    line-height: 1.7;
  }
  
  .product-modal__features {
    padding: var(--spacing-sm);
    gap: var(--spacing-xs);
  }
  
  .product-modal__feature {
    font-size: 1rem;
    gap: var(--spacing-xs);
  }
  
  .product-modal__feature svg {
    width: 18px;
    height: 18px;
  }
  
  .product-modal__contact-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    letter-spacing: 1px;
    width: 100%;
  }
}

/* Orta Telefonlar (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .product-modal {
    padding: 0.75rem;
    padding-top: 2rem;
  }
  
  .product-modal__container {
    max-height: 90vh;
  }
  
  .product-modal__content {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
  
  .product-modal__close {
    top: 0.625rem;
    right: 0.625rem;
    width: 36px;
    height: 36px;
  }
  
  .product-modal__close svg {
    width: 18px;
    height: 18px;
  }
  
  .product-modal__image-section {
    padding: var(--spacing-lg);
    min-height: 300px;
  }
  
  .product-modal__image-wrapper {
    max-height: 45vh;
  }
  
  .product-modal__image {
    max-height: 45vh;
  }
  
  .product-modal__info-section {
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
  }
  
  .product-modal__title {
    font-size: 1.5rem;
  }
  
  .product-modal__period {
    font-size: 1rem;
  }
  
  .product-modal__description {
    font-size: 1rem;
  }
  
  .product-modal__contact-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    width: 100%;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-modal {
    padding: var(--spacing-md);
  }
  
  .product-modal__container {
    max-width: 900px;
  }
  
  .product-modal__content {
    grid-template-columns: 1fr 1fr;
  }
  
  .product-modal__image-section {
    padding: var(--spacing-xl);
  }
  
  .product-modal__info-section {
    padding: var(--spacing-xl);
  }
  
  .product-modal__title {
    font-size: 1.75rem;
  }
}

/* Genel Mobil (0 - 768px) */
@media (max-width: 768px) {
  .product-modal__content::-webkit-scrollbar {
    width: 6px;
  }
  
  body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
}

/* Landscape Telefon Modu */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  .product-modal {
    padding: 0.5rem;
    align-items: flex-start;
  }
  
  .product-modal__container {
    max-height: 95vh;
  }
  
  .product-modal__content {
    grid-template-columns: 1fr 1.2fr;
    max-height: 95vh;
  }
  
  .product-modal__image-section {
    padding: var(--spacing-md);
    min-height: auto;
  }
  
  .product-modal__image-wrapper {
    max-height: 80vh;
  }
  
  .product-modal__image {
    max-height: 80vh;
  }
  
  .product-modal__info-section {
    padding: var(--spacing-md);
  }
  
  .product-modal__title {
    font-size: 1.25rem;
  }
  
  .product-modal__description {
    font-size: 0.875rem;
  }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .product-modal__close {
    min-width: 44px;
    min-height: 44px;
  }
  
  .product-modal__close:active {
    transform: rotate(90deg) scale(0.95);
  }
  
  .product-modal__contact-btn:active {
    transform: translateY(-1px) scale(0.98);
  }
}

/* Prevent Body Scroll When Modal is Open */
body.modal-open {
  overflow: hidden;
}

/* ========================================
   Video Welcome Modal - Açılış Videosu
   ======================================== */

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.video-modal.active {
  display: flex;
}

/* Video Modal Overlay - Siyah Blur Arka Plan */
.video-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.video-modal.active .video-modal__overlay {
  opacity: 1;
}

/* Video Modal Wrapper - Tüm elemanları saran container */
.video-modal__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  max-width: 900px;
  width: 100%;
  transform: scale(0.85) translateY(40px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.video-modal.active .video-modal__wrapper {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Video Modal Container - Sadece video alanı */
.video-modal__container {
  position: relative;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

/* Video Modal Close Button - Ekranın sağ üst köşesinde (fixed) */
.video-modal__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: rgba(80, 80, 80, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 100000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-modal__close:hover {
  background-color: rgba(100, 100, 100, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
}

.video-modal__close svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255, 255, 255, 0.9);
}

/* Video Modal Content */
.video-modal__content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Element */
.video-modal__video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* Video Modal Responsive - Küçük Telefonlar */
@media (max-width: 479px) {
  .video-modal {
    padding: 1rem;
  }
  
  .video-modal__wrapper {
    max-width: 100%;
    gap: var(--spacing-md);
  }
  
  .video-modal__container {
    border-radius: var(--radius-md);
  }
  
  .video-modal__close {
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
  }
  
  .video-modal__close svg {
    width: 20px;
    height: 20px;
  }
  
  .video-modal__video {
    border-radius: var(--radius-md);
    max-height: 50vh;
  }
  
  .video-modal__controls {
    padding: var(--spacing-sm) var(--spacing-lg);
    gap: var(--spacing-md);
  }
}

/* Video Modal Responsive - Orta Telefonlar */
@media (min-width: 480px) and (max-width: 767px) {
  .video-modal {
    padding: 1.5rem;
  }
  
  .video-modal__wrapper {
    max-width: 95%;
  }
  
  .video-modal__close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
  
  .video-modal__video {
    max-height: 55vh;
  }
}

/* Video Modal Responsive - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .video-modal__wrapper {
    max-width: 85%;
  }
  
  .video-modal__video {
    max-height: 65vh;
  }
}

/* Video Modal Landscape Mode */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  .video-modal {
    padding: 0.5rem;
  }
  
  .video-modal__wrapper {
    flex-direction: row;
    gap: var(--spacing-md);
    max-width: 95%;
  }
  
  .video-modal__container {
    flex: 1;
  }
  
  .video-modal__video {
    max-height: 80vh;
  }
  
  .video-modal__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
  
  .video-modal__close svg {
    width: 18px;
    height: 18px;
  }
  
  .video-modal__controls {
    flex-direction: column;
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
  }
}

/* Touch Devices for Video Modal */
@media (hover: none) and (pointer: coarse) {
  .video-modal__close {
    min-width: 44px;
    min-height: 44px;
  }
  
  .video-modal__close:active {
    transform: rotate(90deg) scale(0.95);
    background-color: rgba(255, 255, 255, 0.3);
  }
}

/* ========================================
   Video Modal - Play Overlay & Controls
   ======================================== */

/* Video Content Wrapper */
.video-modal__content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Play Overlay - Başlangıç Ekranı */
.video-modal__play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  border-radius: var(--radius-lg);
  z-index: 5;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.video-modal__play-overlay:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.video-modal__play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Play Butonu */
.video-modal__play-btn {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: 0 10px 40px rgba(139, 94, 60, 0.5);
}

.video-modal__play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 50px rgba(139, 94, 60, 0.7);
}

.video-modal__play-btn svg {
  width: 40px;
  height: 40px;
  color: white;
  margin-left: 5px;
}

.video-modal__play-text {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  text-align: center;
  line-height: 1.5;
  max-width: 90%;
}

/* Video Kontrolleri - Video dışında alt kısımda */
.video-modal__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.video-modal__controls.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kontrol Butonları */
.video-modal__control-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.video-modal__control-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.video-modal__control-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Ses Kontrolü Container */
.video-modal__volume-control {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-left: auto;
}

/* Ses Slider */
.video-modal__volume-slider {
  width: 100px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-modal__volume-slider:hover {
  background: rgba(255, 255, 255, 0.4);
}

.video-modal__volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-modal__volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--color-secondary);
}

.video-modal__volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-modal__volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--color-secondary);
}

/* Video Kontrolleri Responsive - Mobil */
@media (max-width: 479px) {
  .video-modal__play-btn {
    width: 80px;
    height: 80px;
  }
  
  .video-modal__play-btn svg {
    width: 32px;
    height: 32px;
  }
  
  .video-modal__play-text {
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    letter-spacing: 1.5px;
    padding: 0 var(--spacing-sm);
  }
  
  .video-modal__controls {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }
  
  .video-modal__control-btn {
    width: 36px;
    height: 36px;
  }
  
  .video-modal__control-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .video-modal__volume-slider {
    width: 70px;
    height: 5px;
  }
  
  .video-modal__volume-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }
}

/* Video Kontrolleri Responsive - Tablet */
@media (min-width: 480px) and (max-width: 767px) {
  .video-modal__play-btn {
    width: 90px;
    height: 90px;
  }
  
  .video-modal__controls {
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  
  .video-modal__volume-slider {
    width: 80px;
  }
}

/* Landscape Mode */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  .video-modal__play-btn {
    width: 70px;
    height: 70px;
  }
  
  .video-modal__play-btn svg {
    width: 28px;
    height: 28px;
  }
  
  .video-modal__play-text {
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    letter-spacing: 1px;
  }
  
  .video-modal__controls {
    padding: var(--spacing-xs) var(--spacing-md);
  }
  
  .video-modal__control-btn {
    width: 32px;
    height: 32px;
  }
  
  .video-modal__volume-slider {
    width: 60px;
  }
}

