@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --background: #121212;            
  --foreground: #ffffff;           
  --card: #1a1a1a;             
  --card-foreground: #ffffff;
  --primary: #ff6b00;              
  --primary-foreground: #ffffff;
  --secondary: #1e1e1e;          
  --secondary-foreground: #e0e0e0;  
  --muted: #1a1a1a;                
  --muted-foreground: #aaaaaa;   
  --border: #2a2a2a;       
  --input: #1e1e1e;       
  --radius: 0.5rem;
}


::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background-color: #ff6b00;
  border-radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--background);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  width: 100%;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.logo-icon img {
  width: 30px;
  height: 30px;
}

.logo-icon:hover {
  transform: scale(1.05);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-text {
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  white-space: nowrap;
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: var(--foreground);
  transform: scale(1.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: flex-end;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--input);
    max-width: 500px;
    width: 100%;
    margin: 0 1rem;
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: color 0.2s ease;
}

.search-icon-btn:hover {
  color: var(--foreground);
}

.search-icon {
  width: 20px;
  height: 20px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  background: var(--card);
  border: none;
  color: var(--foreground);
  font-size: 0.9rem;
  position: relative;
  z-index: 9999;
}

.search-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.search-input:focus {
  outline: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-result {
  padding: 5px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background-color: rgba(255, 95, 31, 0.1);
}

.search-avatar {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.search-result strong {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  max-width: 150px;
}

.search-result-info {
  margin-left: 15px;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.player-stats {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* Role tags */
.role-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--border);
  color: var(--foreground);
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Special role colors */
.role-tag.admin {
  background-color: rgba(255, 50, 50, 0.2);
  color: #ff3232;
}

.role-tag.moderator {
  background-color: rgba(50, 150, 255, 0.2);
  color: #3296ff;
}

.streak {
  color: var(--primary);
  font-weight: 600;
}

.search-dropdown.loading,
.search-dropdown.empty,
.search-dropdown.error,
.search-dropdown.no-results {
  padding: 1rem;
  text-align: center;
  color: var(--muted-foreground);
}

.search-dropdown.loading {
  font-style: italic;
}

.search-dropdown.error {
  color: #ff5f1f;
}

.login-btn {
  background: linear-gradient(135deg, var(--primary), hsl(14, 90%, 55%));
  color: var(--primary-foreground);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.login-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--background) 0%, var(--card) 100%);
}

.hero-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 4s ease-in-out infinite;
}

.hero-blur-1 {
  right: 40px;
  width: 256px;
  height: 256px;
  background-color: rgba(255, 95, 31, 0.1);
}

.hero-blur-2 {
  bottom: 80px;
  left: 40px;
  width: 384px;
  height: 384px;
  background-color: rgba(255, 95, 31, 0.05);
  animation-delay: 1s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  transition: all 0.5s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: manual;
  display: block;
  width: 100%;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--primary), hsl(14, 90%, 55%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
  min-width: min-content;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), hsl(14, 90%, 55%));
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 8px 25px rgba(255, 95, 31, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(255, 95, 31, 0.3);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background-color: rgba(255, 95, 31, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.floating-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dot {
  position: absolute;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.dot-1 {
  top: 25%;
  left: 25%;
  width: 8px;
  height: 8px;
}

.dot-2 {
  top: 33%;
  right: 33%;
  width: 4px;
  height: 4px;
  opacity: 0.6;
  animation-delay: 0.5s;
}

.dot-3 {
  bottom: 33%;
  left: 33%;
  width: 6px;
  height: 6px;
  opacity: 0.8;
  animation-delay: 1s;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 95, 31, 0.5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

/* Features Section */
.features {
  padding: 7rem 0;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-divider {
  width: 64px;
  height: 4px;
  background-color: var(--primary);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: rgba(39, 39, 42, 0.5);
  border: 1px solid rgba(39, 39, 42, 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
  border-color: rgba(255, 95, 31, 0.5);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: rgba(255, 95, 31, 0.1);
  border-radius: var(--radius);
  width: fit-content;
  transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: rgba(255, 95, 31, 0.2);
}

.feature-icon svg {
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Styling for the Purchase Tokens Section */
.purchase-tokens {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.purchase-tokens h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

#tokenSelect {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.857);
  color: #000000;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

#tokenSelect:focus {
  outline: none;
  border-color: #ff6200;
}

.buy-tokens-button {
  background: linear-gradient(135deg, #ff6200, #e55700);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.buy-tokens-button:hover {
  background: #e55700;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.buy-tokens-button:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  background-color: rgba(39, 39, 42, 0.3);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 384px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-heading {
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 1rem;
  font-weight: 400;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links {
  flex: 1 1 150px;
  min-width: 140px;
}

.social-link {
  color: var(--muted-foreground);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted-foreground);
}

.footer-links-container {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #131316;
  padding: 30px;
  border-radius: 10px;
  max-width: 700px;
  text-align: center;
  color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 15px;
  color: white;
}

.modal-text {
  line-height: 1.5;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bolder;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.modal-button {
  padding: 10px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bolder;
  transition: all 0.3s;
  min-width: 180px;
}

.confirm-button {
  background-color: #30d30fc7;
  color: white;
  border: none;
}

.confirm-button:hover {
  background-color: #4bff27e1;
}

.decline-button {
  background-color: transparent;
  color: white;
  border: 3px solid #ff0000;
}

.decline-button:hover {
  background-color: rgba(247, 37, 133, 0.1);
}

.terms-link {
  color: #ff6200;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

#headerProfile {
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 500;
}

#headerProfile .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

#headerProfile .username {
  white-space: nowrap;
  overflow: hidden;
  max-width: 300px; 
  flex-shrink: 1;
}

#headerProfile .membership {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--secondary);
  color: var(--primary-foreground);
  text-transform: capitalize;
}

#headerProfile .membership.free {
  background: rgba(255, 255, 255, 0.05);
  color: #bbb;
}

#headerProfile .balance {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* Mobile Navigation Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .search-input {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .nav-content {
    padding: 0 1rem;
    height: 60px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--card);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid var(--border);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 90vh;
    padding-top: 60px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 1;
    text-align: center;
    margin: 0 auto;
  }

  .footer-links-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
  
  .search-container {
    max-width: 200px;
  }
  
  .search-dropdown {
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    margin: auto;
    width: 95%;
    max-height: 400px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .search-result strong {
    max-width: 120px;
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .search-result {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  
  .search-result-info {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .player-stats {
    justify-content: center;
  }
}
@media (max-width: 506px) {
  .nav-links {
      display: none !important;
  }

  .search-input {
      display: none;
      width: 0;
      padding: 0.5rem 0;
      opacity: 0;
      transition: all 0.3s ease;
  }
}
@media (max-width: 480px) {
  .nav-content {
    padding: 0 0.75rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .nav-links {
      display: none !important;
  }
  
  .search-container {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    padding: 0 0.5rem;
  }

  .hero-description {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-buttons {
    padding: 0 1rem;
  }

  .modal-content {
    padding: 20px;
    margin: 0 1rem;
  }

  .modal-button {
    width: 100%;
    padding: 12px;
  }

  .footer-content {
    text-align: center;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
  
  .modal-button {
    width: 100%;
  }
}

/* Prevent horizontal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Touch-friendly button sizing */
@media (max-width: 768px) {
  .btn, .login-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-link {
    padding: 0.5rem;
    display: block;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.search-container.expanded {
    max-width: 300px;
}

.search-container.expanded .search-input {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    opacity: 1;
}
.search-container.expanded ~ .logo,
.search-container.expanded ~ #headerProfile {
  display: none !important;
}

.search-icon-btn {
    display: flex;
}

/* Medium screen styles (less than 1800px) */
@media (max-width: 1800px) {
    .nav-links {
        display: none !important;
    }

    .search-container {
        max-width: 40px; /* Initially collapsed */
        transition: max-width 0.3s ease;
    }

    .search-input {
        display: none;
        width: 0;
        padding: 0.5rem 0;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .search-icon-btn {
        display: flex; /* Always visible on medium screens */
    }

    .search-container.expanded {
        max-width: 300px;
    }
    
    .search-container.expanded .search-input {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        opacity: 1;
    }
    
    /* Ensure other elements are hidden when expanded */
    .search-container.expanded ~ .logo,
    .search-container.expanded ~ #headerProfile {
        display: none;
    }
}

/* For larger screens */
@media (min-width: 1801px) {
    .search-icon-btn {
        display: none;
    }
}