/* Enhanced About Gallery Styles - Beautiful and Interactive */

/* Gallery Container */
.about-gallery {
  margin: 40px auto;
  padding: 0;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.about-gallery h2.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gallery Title */
.gallery-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg,
    #FFB6C1 0%,
    #ADD8E6 25%,
    #FFDAB9 50%,
    #DDA0DD 75%,
    #FFB6C1 100%);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: softGradientShift 8s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 182, 193, 0.3);
  position: relative;
  letter-spacing: 1.5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Gallery Grid */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.chips li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Gallery Items */
.about-trigger {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
}

.about-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 182, 193, 0.1) 0%,
    rgba(173, 216, 230, 0.1) 25%,
    rgba(255, 218, 185, 0.1) 50%,
    rgba(221, 160, 221, 0.1) 75%,
    rgba(255, 182, 193, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 22px;
}

.about-trigger:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow:
    0 20px 60px rgba(255, 182, 193, 0.3),
    0 0 0 2px rgba(255, 182, 193, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 40px rgba(255, 182, 193, 0.2);
  border-color: rgba(255, 182, 193, 0.5);
}

.about-trigger:hover::before {
  opacity: 1;
}

.about-trigger:focus {
  outline: none;
  border-color: rgba(255, 182, 193, 0.8);
  box-shadow:
    0 0 0 3px rgba(255, 182, 193, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.15);
}

.about-trigger:active {
  transform: translateY(-8px) scale(1.02);
}

/* Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(255, 182, 193, 0.9) 0%,
    rgba(173, 216, 230, 0.9) 100%);
  border: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 32px rgba(255, 182, 193, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.about-gallery:hover .gallery-nav {
  opacity: 1;
  visibility: visible;
}

.gallery-nav.prev {
  left: -25px;
}

.gallery-nav.next {
  right: -25px;
}

.gallery-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 12px 48px rgba(255, 182, 193, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 30px rgba(255, 182, 193, 0.3);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 182, 193, 0.5),
    0 8px 32px rgba(255, 182, 193, 0.3);
}

/* Gallery Indicators */
.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #FFB6C1, #ADD8E6);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.indicator.active::before,
.indicator:hover::before {
  opacity: 1;
}

.indicator.active {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
}

.indicator:hover {
  transform: scale(1.2);
}

.indicator:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 182, 193, 0.5);
}

/* Enhanced Modal Styles with Navigation and Scrolling */
.modal {
  border: none;
  border-radius: 28px;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.8) rotateY(15deg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modal[open] {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
}

.modal article {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 48px;
  min-width: 320px;
  max-width: 600px;
  width: 100%;
  height: auto;
  max-height: 90vh;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 182, 193, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.modal article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 182, 193, 0.03),
    rgba(173, 216, 230, 0.03),
    rgba(255, 218, 185, 0.03));
  pointer-events: none;
}

/* Modal Content Container */
.modal-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FFB6C1, #ADD8E6);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF91A4, #87CEEB);
}

/* Modal Navigation Arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(255, 182, 193, 0.9) 0%,
    rgba(173, 216, 230, 0.9) 100%);
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 32px rgba(255, 182, 193, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.modal-nav.prev {
  left: -25px;
}

.modal-nav.next {
  right: -25px;
}

.modal-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 12px 48px rgba(255, 182, 193, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 30px rgba(255, 182, 193, 0.3);
}

.modal-nav:active {
  transform: translateY(-50%) scale(1.05);
}

.modal-nav:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 182, 193, 0.5),
    0 8px 32px rgba(255, 182, 193, 0.3);
}

.modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.9);
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.modal h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg,
    #A8D8EA 0%,
    #7FB3D3 25%,
    #B8E6B8 50%,
    #87CEEB 75%,
    #A8D8EA 100%);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: softGradientShift 8s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  z-index: 1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  flex: 1;
}

/* Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.modal p {
  margin: 0 0 24px 0;
  font-size: 18px;
  line-height: 1.8;
  color: #E8F4FD;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal strong {
  background: linear-gradient(135deg, #B8E6B8, #87CEEB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Enhanced Likes & Dislikes Grid */
.likes-dislikes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.likes, .dislikes {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.likes::before, .dislikes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 182, 193, 0.05),
    rgba(173, 216, 230, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.likes:hover::before, .dislikes:hover::before {
  opacity: 1;
}

.likes:hover, .dislikes:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 182, 193, 0.3);
  box-shadow: 0 8px 32px rgba(255, 182, 193, 0.15);
}

.likes h3, .dislikes h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #A8D8EA, #7FB3D3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.likes ul, .dislikes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.likes li, .dislikes li {
  margin: 0 0 12px 0;
  padding: 8px 0;
  font-size: 16px;
  color: #D4E6F1;
  position: relative;
  padding-left: 24px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.likes li::before {
  content: "✨";
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 14px;
}

.dislikes li::before {
  content: "❌";
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 14px;
}

/* Close Button */
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.close:hover {
  background: rgba(255, 182, 193, 0.3);
  transform: scale(1.1) rotate(90deg);
  color: white;
}

.close:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 182, 193, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal {
    max-width: 95vw;
    max-height: 95vh;
  }

  .modal article {
    padding: 32px 24px;
    margin: 10px;
  }

  .modal h2 {
    font-size: 28px;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .modal-nav.prev {
    left: -20px;
  }

  .modal-nav.next {
    right: -20px;
  }

  .likes-dislikes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .modal {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal article {
    border-radius: 0;
    padding: 24px 16px;
    margin: 0;
    height: 100vh;
  }

  .modal h2 {
    font-size: 24px;
  }

  .modal p {
    font-size: 16px;
  }

  .modal-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .modal-nav.prev {
    left: -18px;
  }

  .modal-nav.next {
    right: -18px;
  }
}

/* Touch Support for Mobile */
@media (hover: none) and (pointer: coarse) {
  .modal-nav:hover {
    transform: translateY(-50%) scale(1.05);
  }

  .modal article {
    -webkit-overflow-scrolling: touch;
  }
}

/* Animation for gallery items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chips li {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.chips li:nth-child(1) { animation-delay: 0.1s; }
.chips li:nth-child(2) { animation-delay: 0.2s; }
.chips li:nth-child(3) { animation-delay: 0.3s; }
