/* 
Akyazı Belediyesi Müzesi - Ana Sayfa Stilleri
Modern, premium, responsive tasarım
*/

/* CSS Variables */
:root {
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #81c784;
  --secondary-color: #4db6ac;
  --accent-color: #00897b;
  --background-dark: #0a100c;
  --background-darker: #060a08;
  --background-card: #0f1812;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(46, 125, 50, 0.12);
  --card-border-hover: rgba(46, 125, 50, 0.3);
  --shadow-light: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-green: 0 4px 30px rgba(46, 125, 50, 0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-sm: 500px;
  --border-radius-lg: 20px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--background-dark);
  min-height: 100vh;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(46, 125, 50, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      rgba(77, 182, 172, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(46, 125, 50, 0.03) 0%,
      transparent 80%
    );
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
.main-header {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 12, 0.95) 0%,
    rgba(10, 16, 12, 0.7) 100%
  );
  border-bottom: 1px solid rgba(46, 125, 50, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 50px 20px 40px;
  text-align: center;
  z-index: 10;
  overflow: hidden;
}

.main-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  opacity: 0.5;
}

.main-header::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(46, 125, 50, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.header-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 15px rgba(46, 125, 50, 0.3));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.header-title {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    #a5d6a7 40%,
    var(--primary-light) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.header-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== HERO PANORAMA ===== */
.hero-panorama {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 8s ease;
}

.hero-panorama:hover img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 12, 0.3) 0%,
    rgba(10, 16, 12, 0.1) 40%,
    rgba(10, 16, 12, 0.6) 80%,
    rgba(10, 16, 12, 1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  padding: 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: var(--primary-light);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  letter-spacing: 1px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  border-radius: 2px;
}

/* ===== MUSEUM TOUR SECTION ===== */
.museum-section {
  margin-bottom: 70px;
}

.museum-card.apartment-card {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  background: linear-gradient(
    135deg,
    rgba(46, 125, 50, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.museum-card .card-image {
  flex: 1.2;
  min-height: 400px;
}

.museum-card .card-image img {
  height: 100% !important;
  min-height: 400px;
}

.museum-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

/* ===== APARTMENT CARD ===== */
.apartment-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-normal);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
}

.apartment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(46, 125, 50, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.apartment-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-heavy), var(--shadow-green);
}

.apartment-card:hover::before {
  opacity: 1;
}

/* ===== CARD IMAGE ===== */
.card-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.apartment-card:hover .card-image img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 15px;
}

.card-badge {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.card-image::after {
  content: "🔍 Büyütmek için tıklayın";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  text-align: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  letter-spacing: 0.5px;
}

.card-image:hover::after {
  opacity: 1;
}

/* ===== CARD CONTENT ===== */
.card-content {
  padding: 24px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ===== CARD FEATURES ===== */
.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.feature {
  background: rgba(46, 125, 50, 0.08);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid rgba(46, 125, 50, 0.1);
  transition: all var(--transition-fast);
}

.feature:hover {
  background: rgba(46, 125, 50, 0.15);
  border-color: rgba(46, 125, 50, 0.2);
}

/* ===== CARD BUTTONS ===== */
.card-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* Tour Button */
.btn-tour {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
  animation: tourPulse 3s ease-in-out infinite;
}

@keyframes tourPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(46, 125, 50, 0.5);
  }
}

.btn-tour:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.5);
  animation: none;
}

/* ===== RENDER GALLERY ===== */
.render-gallery {
  margin-top: 80px;
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 35px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.02);
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border: 3px solid rgba(46, 125, 50, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: gallerySpinner 1s linear infinite;
  z-index: 0;
}

@keyframes gallerySpinner {
  to {
    transform: rotate(360deg);
  }
}

.gallery-item:hover {
  border-color: rgba(46, 125, 50, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.gallery-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition-normal);
  letter-spacing: 0.3px;
  z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxZoom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.5px;
}

.lightbox-close {
  position: absolute;
  top: -52px;
  right: 0;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
  border-color: rgba(46, 125, 50, 0.3);
}

/* ===== FOOTER ===== */
.main-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(46, 125, 50, 0.08);
  margin-top: 60px;
  position: relative;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  opacity: 0.3;
}

.scroll-reveal-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-mini {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.footer-mini a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-mini a:hover {
  color: #a5d6a7;
}

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

.apartment-card {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.apartment-card:nth-child(1) {
  animation-delay: 0.1s;
}
.apartment-card:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.05s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.1s;
}

/* ===== LOADING SHIMMER ===== */
.card-image img {
  background: linear-gradient(
    90deg,
    rgba(46, 125, 50, 0.05) 25%,
    rgba(46, 125, 50, 0.1) 50%,
    rgba(46, 125, 50, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.card-image img[src] {
  animation: none;
  background: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.apartment-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */

/* Mobile */
@media (max-width: 768px) {
  .main-header {
    padding: 30px 15px 25px;
  }

  .header-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .header-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .header-logo {
    width: 90px;
  }

  .hero-panorama {
    height: 300px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .main-content {
    padding: 30px 15px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .museum-card.apartment-card {
    flex-direction: column;
  }

  .museum-card .card-image {
    min-height: 220px;
  }

  .museum-card .card-image img {
    min-height: 220px;
  }

  .museum-card .card-content {
    padding: 24px;
  }

  .card-image img {
    height: 200px;
  }

  .card-buttons {
    flex-direction: column;
  }

  .btn {
    padding: 14px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item {
    aspect-ratio: 4/3;
  }

  .main-footer {
    padding: 15px;
  }

  .footer-mini {
    font-size: 0.65rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .header-title {
    font-size: 1.3rem;
  }

  .header-subtitle {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .btn {
    border: 1px solid black;
  }

  body::before {
    display: none;
  }
}
