/* ===================================
   About Modal
   =================================== */

.about-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  animation: fadeIn 0.2s ease;
}

.about-modal-overlay.fade-out {
  animation: fadeOut 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.about-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--snow-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, calc(-50% + 30px));
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Header */
.about-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.about-modal-title {
  font-size: var(--text-xlarge);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.about-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-xs);
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.about-modal-close:hover {
  background: var(--bg-overlay);
  color: var(--lake-blue);
}

.about-modal-close:active {
  transform: scale(0.95);
}

/* Content */
.about-modal-content {
  overflow-y: auto;
  padding: var(--space-lg);
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

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

.about-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.about-modal-content::-webkit-scrollbar-thumb {
  background: var(--stone-grey);
  border-radius: var(--radius-sm);
}

.about-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--lake-blue);
}

/* Logo Section */
.about-logo-section {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.about-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
}

.about-logo-section h3 {
  font-size: var(--text-xlarge);
  font-weight: var(--weight-bold);
  color: var(--lake-blue);
  margin: 0 0 var(--space-xs) 0;
}

.about-version {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 0;
}

/* Sections */
.about-section {
  margin-bottom: var(--space-xl);
}

.about-section:last-child {
  margin-bottom: var(--space-md);
}

.about-section h3 {
  font-size: var(--text-large);
  font-weight: var(--weight-semibold);
  color: var(--lake-blue);
  margin: 0 0 var(--space-sm) 0;
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-md) 0;
  text-align: justify;
}

.about-section ul {
  margin: 0;
  padding-left: var(--space-lg);
  list-style: disc;
}

.about-section ul li {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

/* Contact Links */
.about-contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.about-contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--lake-blue);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.about-contact-link svg {
  flex-shrink: 0;
}

.about-contact-link:hover {
  color: var(--sky-blue);
  text-decoration: underline;
}

/* Footer */
.about-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.about-footer p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 0;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .about-modal-overlay {
    padding: 0;
    align-items: flex-start;
  }

  .about-modal {
    max-height: 100vh;
    border-radius: 0;
    min-height: 100vh;
  }

  .about-modal-header {
    padding: var(--space-md);
  }

  .about-modal-content {
    padding: var(--space-md);
  }

  .about-modal-title {
    font-size: var(--text-large);
  }

  .about-logo {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .about-modal-header {
    padding: var(--space-sm) var(--space-md);
  }

  .about-modal-content {
    padding: var(--space-sm) var(--space-md);
  }

  .about-modal-close {
    font-size: 28px;
  }

  .about-logo-section h3 {
    font-size: var(--text-large);
  }

  .about-section h3 {
    font-size: var(--text-base);
  }

  .about-section p {
    font-size: var(--text-sm);
  }
}

/* Modal animations */
.about-modal.active {
  opacity: 1;
}
