body {
    background-color: black;
    color: white;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: white;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #FFD700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 80%;
}

.nav-link:hover {
    color: #FFD700;
}

.studio-name {
    color: #FFD700;
    font-weight: bold;
    transition: color 0.3s ease;
}

.studio-name:hover {
    color: #FFC800;
}

.themes-nav {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 0.5rem 0;
}

.theme-link {
    display: inline-block;
    color: white;
    padding: 1rem 1.5rem; 
    margin: 0.5rem;
    border: 2px solid transparent;
    border-radius: 8px; 
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem; 
    white-space: nowrap;
    min-width: max-content;
}

.theme-link:hover,
.theme-link.active {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.themes-nav ul {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 rgba(0, 0, 0, 0.2);
    padding-bottom: 1rem; 
}

.themes-nav ul::-webkit-scrollbar {
    height: 6px; 
}

.themes-nav ul::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.themes-nav ul::-webkit-scrollbar-thumb {
    background-color: #FFD700;
    border-radius: 3px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

@media (max-width: 768px) {
    .theme-link {
        padding: 1.2rem 2rem; 
        font-size: 1.2rem;
        margin: 0.25rem;
    }

    .themes-nav {
        padding: 1rem 0;
    }

    .themes-nav ul {
        gap: 1rem;
        padding: 0.5rem 1rem;
    }
}

.search-theme-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 1rem;
}

.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFD700;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.theme-dropdown {
    position: relative;
    min-width: 200px;
}

.theme-trigger {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFD700;
    border-radius: 8px;
    color: #FFD700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #FFD700;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    transform-origin: top;
    transition: all 0.3s ease;
}

.theme-option {
    padding: 0.75rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-option:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.theme-option.active {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

  #mobileNav {      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 70; 
      transform: translateX(100%);
      transition: transform 0.3s ease;
  }
  
    nav {
        position: fixed;
        width: 100%;
        z-index: 100;
        background: rgba(0, 0, 0, 0.95);
    }

    .themes-nav {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }

    nav,
    .themes-nav {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .gallery-content {
        padding-top: 150px; 
    }

  .search-theme-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
      width: 100%;
      padding: 0.5rem 1rem;
  }

  .nav-container,
  .themes-nav {
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
  }  
  .search-container {
      position: relative;
      max-width: 300px;
      width: 100%;
  }

@media (max-width: 768px) {
    .search-theme-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
    }

    .search-container {
        width: 100%;
        max-width: none;
        order: 2;
    }

    .theme-dropdown {
        width: 100%;
        order: 1;
    }

    .search-input {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .theme-trigger {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .theme-menu {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-height: 60vh;
        top: 20vh;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    .theme-option {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .gallery-content {
        padding-top: 160px;
    }
}

  [data-theme] {
      transition: opacity 0.3s ease;
  }

  .search-input {
      width: 100%;
      padding: 12px 20px 12px 40px;
      border: 2px solid #FFD700;
      border-radius: 25px;
      background: rgba(0, 0, 0, 0.6);
      color: white;
      font-size: 1rem;
      transition: all 0.3s ease;
  }

  .search-input:focus {
      outline: none;
      background: rgba(0, 0, 0, 0.8);
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  }
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}


.search-container::before {
    content: '🔍';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
    pointer-events: none;
}

.gallery-image-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border: 2px solid #FFD700;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}
  .hamburger span {
      display: block;
      position: absolute;
      height: 2px;
      width: 100%;
      background: white; 
      transition: all 0.3s ease;
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 9px; }
  .hamburger span:nth-child(3) { top: 18px; }

  .hamburger.active span:nth-child(1) {
      transform: rotate(45deg);
      top: 9px;
  }

  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg);
      top: 9px;
  }

  .mobile-menu {
      position: fixed;
      top: 60px;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.95);
      padding: 2rem;
      transform: translateY(-150%);
      transition: transform 0.3s ease;
      z-index: 40;
  }

  .mobile-menu.active {
      transform: translateY(0);
  }

  .mobile-menu .nav-link {
      display: block;
      text-align: center;
      font-size: 1.2rem;
      margin: 1rem 0;
      color: white;
      transition: color 0.3s ease;
  }

  .modal {
      background: rgba(0, 0, 0, 0.95);
  }
.carousel-button {
    background-color: #FFD700;
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background-color: black;
    color: #FFD700;
    border: 1px solid #FFD700;
}

.button-gold {
    background-color: #FFD700;
    color: black;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.button-gold:hover {
    background-color: black;
    color: #FFD700;
    border: 1px solid #FFD700;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: #FFC800;
    border: 2px solid rgba(0, 0, 0, 0.9);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #FFD700 rgba(0, 0, 0, 0.8);
}

.modal-open .themes-nav,
.modal-open .nav-search-container {
    display: none;
}

.delete-btn {
    background-color: #ff4444;
    color: white;
}

.delete-btn:hover {
    background-color: #cc0000;
}
