/* Main CSS - Core shared styles for all pages */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #000000;
  background-image:
    radial-gradient(white, rgba(255, 255, 255, 0.2) 2px, transparent 40px),
    radial-gradient(white, rgba(255, 255, 255, 0.15) 1px, transparent 30px),
    radial-gradient(white, rgba(255, 255, 255, 0.1) 2px, transparent 40px),
    radial-gradient(
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.1) 2px,
      transparent 30px
    );
  background-size:
    550px 550px,
    350px 350px,
    250px 250px,
    150px 150px;
  background-position:
    0 0,
    40px 60px,
    130px 270px,
    70px 100px;
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* Header and navigation */
header {
  background: linear-gradient(135deg, #000000, #1a1a1a, #000000);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: white;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-text h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-text .tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
  min-height: 44px; /* Touch target */
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container h1 a {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 3rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(white, rgba(255, 255, 255, 0.15) 2px, transparent 40px),
    radial-gradient(white, rgba(255, 255, 255, 0.1) 1px, transparent 30px),
    radial-gradient(white, rgba(255, 255, 255, 0.07) 2px, transparent 40px),
    radial-gradient(
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.07) 2px,
      transparent 30px
    );
  background-size:
    550px 550px,
    350px 350px,
    250px 250px,
    150px 150px;
  background-position:
    60px 60px,
    100px 120px,
    190px 330px,
    130px 160px;
  animation: twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
}

/* Shared animations and keyframes */
@keyframes twinkle {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Shared button styles */
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-view {
  background: #2196f3;
  color: white;
}

.btn-shop {
  background: #4caf50;
  color: white;
}

.btn-primary {
  background: #9c27b0;
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Shared utility classes */
.instagram-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.instagram-link:hover {
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Credits styling */
.credits {
  max-width: 600px;
  margin: 0 auto;
  color: #cccccc;
  line-height: 1.8;
  font-style: italic;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design Base */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .navbar {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    position: relative;
  }

  .nav-brand .nav-text h1 {
    font-size: 1.4rem;
  }

  .nav-text .tagline {
    font-size: 0.7rem;
  }

  .nav-logo {
    width: 35px;
    height: 35px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000, #1a1a1a, #000000);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .navbar {
    padding: 0 0.75rem;
  }

  .nav-brand .nav-text h1 {
    font-size: 1.2rem;
  }

  .nav-text .tagline {
    display: none;
  }

  .nav-logo {
    width: 30px;
    height: 30px;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
}
