/* Ana renkler ve genel */
:root {
  --main-red: #d32f2f;
  --main-dark: #222;
  --main-light: #fff8f8;
}
body { background: var(--main-light); color: #222; font-family: 'Segoe UI', Arial, sans-serif; }

/* Slider caption gölge */
.text-shadow { text-shadow: 0 2px 16px #000a, 0 1px 0 #fff2; }

/* Kartlar ve hover */
.card { border-radius: 18px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 32px #d32f2f33; transform: scale(1.04); }

/* Footer */
footer.bg-dark { background: #18191a !important; }
footer h5 { color: #fff; }
footer a, footer .text-white-50 { color: #bbb !important; }
footer a:hover { color: #ffe082 !important; }
footer .form-control { background: #232323; color: #fff; border: none; }
footer .form-control:focus { background: #232323; color: #fff; border: 1px solid #ffe082; }
footer .btn-warning { background: #ffe082; color: #222; border: none; font-weight: bold; }
footer .btn-warning:hover { background: #ffd54f; }

/* Sosyal ikonlar */
footer .fs-4 { transition: color 0.2s; }
footer .fs-4:hover { color: #ffe082 !important; }

/* Responsive düzenlemeler */
@media (max-width: 991px) {
  .admin-sidebar { min-height: auto; padding: 1rem; }
  .admin-content { padding: 1rem; }
  footer .row > div { margin-bottom: 2rem; }
}

/* Banner ve slider boyutlandırma - zoom sorunlarını önler */
.carousel-item img {
  width: 100% !important;
  height: 80vh !important;
  object-fit: cover !important;
  object-position: center !important;
  max-width: none !important;
  max-height: none !important;
}

/* Hero carousel için özel boyutlandırma */
#heroCarousel .carousel-item img,
.hero-slider-img {
  height: 80vh !important;
  min-height: 500px;
  max-height: 800px;
  object-fit: cover !important;
  object-position: center !important;
}

/* Instagram galeri için responsive boyutlandırma */
.instagram-gallery .instagram-img {
  width: 160px !important;
  height: 160px !important;
  min-width: 160px;
  min-height: 160px;
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  object-position: center;
}

/* Zoom yapıldığında boyutların korunması için */
@media screen and (min-resolution: 120dpi) {
  .carousel-item img {
    height: 80vh !important;
  }
  
  .instagram-gallery .instagram-img {
    width: 160px !important;
    height: 160px !important;
  }
}

/* Container genişliklerini koruma */
.container {
  max-width: 1200px !important;
  width: 100% !important;
}

/* Responsive breakpoint'lerde boyutları koruma */
@media (max-width: 768px) {
  #heroCarousel .carousel-item img {
    height: 60vh !important;
    min-height: 400px;
  }
  
  .instagram-gallery .instagram-img {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px;
    min-height: 140px;
    max-width: 140px;
    max-height: 140px;
  }
}

/* Animasyonlar */
.fade-in-up { opacity: 0; transform: translateY(40px); animation: fadeInUp 1s forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { 
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0,0,0,0.9); 
    align-items: center; 
    justify-content: center; 
}

.lightbox.active { 
    display: flex; 
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox img { 
    max-width: 90vw; 
    max-height: 80vh; 
    border-radius: 18px; 
    box-shadow: 0 8px 32px #0008;
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    z-index: 10000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-counter {
        bottom: 15px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* --- Modern Footer --- */
.footer-social-icon {
  color: #fff;
  font-size: 2rem;
  background: #d32f2f;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px #d32f2f33;
}
.footer-social-icon:hover {
  background: #ffe082;
  color: #d32f2f !important;
  transform: scale(1.12) rotate(-8deg);
}
.footer-form .form-control,
.footer-form textarea {
  background: #232323;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
}
.footer-form .form-control:focus,
.footer-form textarea:focus {
  background: #232323;
  color: #fff;
  border: 1px solid #ffe082;
  box-shadow: 0 0 0 2px #ffe08244;
}
.footer-form .btn-warning {
  background: #ffe082;
  color: #222;
  border: none;
  font-weight: bold;
  border-radius: 8px;
}
.footer-form .btn-warning:hover {
  background: #ffd54f;
}
@media (max-width: 991px) {
  .footer-social-icon { font-size: 1.5rem; width: 38px; height: 38px; }
  .footer-form .btn-warning { width: 100%; }
}

/* --- Ana Sayfa Modernleştirme --- */
.animate__animated {
  animation-duration: 1s;
}
.animate__fadeInUp {
  animation-name: fadeInUp;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.animate__zoomIn {
  animation-name: zoomIn;
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}
.animate__delay-1s {
  animation-delay: 1s;
}
.animate__delay-2s {
  animation-delay: 2s;
}
.animate__delay-3s {
  animation-delay: 3s;
}
.animate__delay-4s {
  animation-delay: 4s;
} 