/* Modal and Overlay Styles */

/* Contact Overlay */
#contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#contact-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.contact-modal {
  background: #1f2937;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Install Files Overlay */
#install-files-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#install-files-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.install-files-modal {
  background: #1f2937;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Modal Close Buttons - Simple X without background */
#contact-close,
#install-files-close {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  background: none !important;
  color: #9ca3af !important;
  border: none !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
  z-index: 1001 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  font-weight: normal !important;
  width: auto !important;
  height: auto !important;
}

#contact-close:hover,
#install-files-close:hover {
  color: #fbbf24 !important;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  border-bottom: 2px solid #374151;
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.tab-button.active,
.tab-button:hover {
  color: #ffffff;
  border-bottom-color: #fbbf24;
}

/* Tab Content */
.tab-content {
  display: block;
}

.tab-content.hidden {
  display: none;
}

/* Email Reveal */
#reveal-email {
  cursor: pointer;
  transition: all 0.2s ease;
}

#reveal-email:hover {
  color: #fbbf24;
}

#email-text {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #374151;
  border-radius: 0.375rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: #f3f4f6;
  user-select: all;
}

#email-text.hidden {
  display: none;
}

/* Overlay Content Spacing */
.overlay-content {
  padding: 2rem;
  padding-top: 3rem; /* Extra space for close button */
}

.overlay-header {
  margin-bottom: 1.5rem;
}

.overlay-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.overlay-section {
  margin-bottom: 1.5rem;
}

.overlay-section:last-child {
  margin-bottom: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .contact-modal,
  .install-files-modal {
    max-width: 95vw;
    max-height: 95vh;
    margin: 0.5rem;
  }

  .overlay-content {
    padding: 1.5rem;
    padding-top: 2.5rem;
  }

  .overlay-header h2 {
    font-size: 1.25rem;
  }

  .tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  #contact-close,
  #install-files-close {
    font-size: 1.75rem !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .tab-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .overlay-content {
    padding: 1rem;
    padding-top: 2rem;
  }
}
