@import url("https://fonts.googleapis.com/css2?family=Balthazar&family=Cinzel:wght@700&display=swap");

/* Global Custom Scrollbar */
::-webkit-scrollbar {
  width: 17px;
  height: 17px;
}

::-webkit-scrollbar-track {
  background: #111214;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 155, 60, 0.4);
  border-radius: 10px;
  border: 2px solid #111214;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 155, 60, 0.6);
}

/* Firefox support */
* {
  scrollbar-width: auto;
  scrollbar-color: rgba(200, 155, 60, 0.4) #111214;
}

/* macOS-style Dark Menu with Enhanced Dropdown */
.top-menu {
  display: flex;
  align-items: center;
  background-color: rgba(28, 28, 28, 0.8);
  backdrop-filter: blur(20px);
  color: #ffffff;
  padding: 0.5rem 1rem;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  font-family: "Balthazar", serif;
}

.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.top-menu li {
  display: inline-block;
  position: relative;
}

.top-menu>ul>li>a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 0;
  display: inline-block;
  transition: opacity 0.2s;
}

.top-menu>ul>li>a:hover {
  opacity: 0.7;
}

/* Enhanced Dropdown styles */
.top-menu .dropdown-content {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background: linear-gradient(180deg,
      rgba(45, 42, 38, 0.97) 0%,
      rgba(30, 30, 30, 0.97) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  min-width: 280px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(200, 155, 60, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 2001;
  border-radius: 12px;
  top: 100%;
  left: -10px;
  padding: 6px;
  border: 1px solid rgba(200, 155, 60, 0.1);
  overflow: hidden;
}

/* Invisible bridge to prevent hover-loss flickering */
.top-menu li.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  display: block;
  z-index: 1;
}

.top-menu li.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
}

.top-menu .dropdown-content a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  color: #d0d0d0;
  text-decoration: none;
  font-size: 1.15rem;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 1px 0;
}

.dropdown-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 5px;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s ease;
}

.top-menu .dropdown-content a:hover .dropdown-icon {
  opacity: 1;
}

.top-menu .dropdown-content a:hover {
  background: rgba(200, 155, 60, 0.1);
  color: #f0e6d2;
}

.top-menu .dropdown-description {
  display: block;
  font-size: 0.72rem;
  color: #707070;
  padding-top: 3px;
  transition: color 0.2s;
}

.top-menu .dropdown-content a:hover .dropdown-description {
  color: #9a8a6a;
}

/* Refined Dropdown indicator */
.top-menu .dropdown>a::after {
  content: "▾";
  margin-left: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.top-menu .dropdown:hover>a::after {
  opacity: 0.9;
}

/* Remove old separator — using padding/border-radius gap now */
.top-menu .dropdown-content a:not(:last-child) {
  border-bottom: none;
}

/* Ensure full hover coverage for the first item */
.top-menu .dropdown-content a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.top-menu .dropdown-content a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* League of Legends inspired Teemo.uk logo style */
.top-menu ul li:first-child a {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #c89b3c;
  text-shadow: 0 0 4px rgba(200, 155, 60, 0.3);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(to bottom,
      rgba(200, 155, 60, 0.1),
      rgba(200, 155, 60, 0));
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 3px;
}

.top-menu ul li:first-child a .domain-extension {
  font-size: 1rem;
  /* Make it slightly smaller */
  color: #f0e6d2;
  /* Different color for visibility */
  text-shadow: none;
  /* Remove text shadow for clarity */
  font-weight: 400;
  /* Lighter weight for contrast */
}

.top-menu ul li:first-child a:hover {
  color: #f0e6d2;
  text-shadow: 0 0 6px rgba(240, 230, 210, 0.5);
  background: linear-gradient(to bottom,
      rgba(200, 155, 60, 0.2),
      rgba(200, 155, 60, 0.1));
  border-color: rgba(200, 155, 60, 0.5);
}

.top-menu ul li:first-child a:hover .domain-extension {
  color: #c89b3c;
  /* Invert color on hover */
}

/* Responsive styles for the menu */
@media (max-width: 768px) {
  .top-menu {
    padding: 0.3rem 0.5rem;
  }

  .top-menu>ul>li>a {
    font-size: 1rem;
    /* Adjust font size for larger mobile devices */
  }

  .top-menu ul {
    gap: 1.5rem;
  }

  .top-menu ul li:first-child a {
    font-size: 1rem;
  }

  .top-menu ul li:first-child a .domain-extension {
    font-size: 0.9rem;
  }

  .top-menu .dropdown-content {
    min-width: 180px;
  }

  .top-menu .dropdown-content a {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .top-menu .dropdown-description {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .top-menu {
    padding: 0.2rem 0.3rem;
  }

  .top-menu>ul>li>a {
    font-size: 0.85rem;
    /* Further adjust font size for smaller screens */
  }

  .top-menu .dropdown-content a {
    font-size: 0.7rem;
    /* Adjust font size for dropdown items */
  }

  .top-menu ul {
    gap: 1rem;
  }

  .top-menu ul li:first-child a {
    font-size: 0.9rem;
  }

  .top-menu ul li:first-child a .domain-extension {
    font-size: 0.8rem;
  }

  .top-menu .dropdown-content {
    min-width: 150px;
    left: -50px;
    /* Adjust dropdown position */
  }

  .top-menu .dropdown-content a {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .top-menu .dropdown-description {
    font-size: 0.65rem;
  }

  /* Hide dropdown indicators on very small screens */
  .top-menu .dropdown>a::after {
    display: none;
  }
}

/* 
  Minimal Modern Contact Modal Styles
*/

/* Contact Form Modal */
.contact-modal-overlay {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

/* This is a helper to ensure the modal shows, as the script uses inline styles */
.contact-modal-overlay[style*="display: flex"] {
  display: flex !important;
}

.contact-modal-content {
  background: rgba(26, 27, 30, 0.9);
  backdrop-filter: blur(20px);
  padding: 1.75rem 2rem;
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  border: 1px solid rgba(200, 155, 60, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.contact-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  color: rgba(220, 221, 222, 0.4);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: Arial, sans-serif;
  line-height: 1;
  padding: 0;
}

.contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #dcddde;
}

.contact-modal-content h2 {
  font-size: 1.25rem;
  color: #f0e6d2;
  margin: 0 0 1.5rem 0;
  font-family: "Balthazar", serif;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.contact-form-group {
  margin-bottom: 1rem;
}

.contact-form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(185, 187, 190, 0.7);
  font-size: 0.75rem;
  font-family: "Balthazar", serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 0.7rem 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(200, 155, 60, 0.25);
  background-color: transparent;
  color: #f0e6d2;
  font-size: 0.95rem;
  font-family: "Balthazar", serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-bottom-color: #c89b3c;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: rgba(185, 187, 190, 0.3);
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 70px;
  margin-top: 0.15rem;
}

.contact-btn-primary {
  background-color: #c89b3c;
  color: #1a1b1e;
  border: none;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: "Balthazar", serif;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  letter-spacing: 0.3px;
}

.contact-btn-primary:hover {
  background-color: #f0e6d2;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 155, 60, 0.35);
}

.contact-btn-primary:active {
  transform: translateY(0);
}

.contact-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* macOS-style Notifications */
.contact-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(44, 44, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  min-width: 320px;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.contact-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.contact-notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.contact-notification.success .contact-notification-icon {
  background: #c89b3c;
  color: #1a1b1e;
}

.contact-notification.error .contact-notification-icon {
  background: #dc3545;
  color: #ffffff;
}

.contact-notification-content {
  flex: 1;
}

.contact-notification-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #dcddde;
  margin-bottom: 0.35rem;
  font-family: "Balthazar", serif;
}

.contact-notification-message {
  font-size: 0.95rem;
  color: #b9bbbe;
  font-family: "Balthazar", serif;
  line-height: 1.4;
}

/* Responsive styles */
@media (max-width: 768px) {
  .contact-modal-overlay {
    padding: 1.5rem;
  }

  .contact-modal-content {
    max-width: 380px;
    padding: 2rem;
  }

  .contact-modal-content h2 {
    font-size: 1.25rem;
  }

  .contact-notification {
    top: 70px;
    right: 15px;
    left: 15px;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .contact-modal-overlay {
    padding: 1rem;
  }

  .contact-modal-content {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    max-height: 80vh;
  }

  .contact-modal-close {
    width: 24px;
    height: 24px;
    font-size: 1.15rem;
    right: 1rem;
    top: 1rem;
  }

  .contact-modal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .contact-form-group {
    margin-bottom: 1rem;
  }

  .contact-form-group label {
    font-size: 0.75rem;
  }

  .contact-form-group input,
  .contact-form-group textarea {
    font-size: 0.95rem;
    padding: 0.75rem 0;
  }

  .contact-form-group textarea {
    min-height: 70px;
  }

  .contact-btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .contact-notification {
    top: 60px;
    right: 10px;
    left: 10px;
    padding: 0.85rem 1rem;
  }

  .contact-notification-icon {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .contact-notification-title {
    font-size: 0.95rem;
  }

  .contact-notification-message {
    font-size: 0.85rem;
  }
}
