/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #000000;
  position: relative;
  overflow-x: hidden;
}

/* Header */
header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: lowercase;
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #00ca00;
}

.heart {
  color: #00ca00;
  margin-right: 0.4rem;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.logo:hover .heart {
  transform: scale(1.2);
}

.tui-member {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.2rem;
  font-weight: 400;
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 500px;
  margin: 0 1rem;
}

.header-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header-search input:focus {
  outline: none;
  border-color: #00ca00;
  box-shadow: 0 0 8px rgba(0, 202, 0, 0.2);
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: #00ca00;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.search-btn:hover {
  background: #00cc00;
  transform: translateY(-50%) scale(1.1);
}

.search-btn svg {
  color: #fff;
  stroke-width: 2.5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #000000;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #00ca00;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #00ca00;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.cta {
  background: #00ca00;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-link.cta:hover {
  background: #00cc00;
  transform: translateY(-2px);
  color: #fff;
}

.nav-link.cta::after {
  display: none;
}

/* Spinning Wheel Section */
.wheel-section {
  background: #fff;
  padding: 4rem 0;
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.wheel-container {
  text-align: center;
  z-index: 10;
}

.wheel-container h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 2rem;
}

.wheel-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 4s ease-out;
}

.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.wheel-segment:nth-child(1) { transform: rotate(0deg); }
.wheel-segment:nth-child(2) { transform: rotate(45deg); }
.wheel-segment:nth-child(3) { transform: rotate(90deg); }
.wheel-segment:nth-child(4) { transform: rotate(135deg); }
.wheel-segment:nth-child(5) { transform: rotate(180deg); }
.wheel-segment:nth-child(6) { transform: rotate(225deg); }
.wheel-segment:nth-child(7) { transform: rotate(270deg); }
.wheel-segment:nth-child(8) { transform: rotate(315deg); }

.wheel-segment span {
  transform: rotate(45deg);
  display: block;
  text-align: center;
  margin-top: -20px;
  margin-left: 20px;
  max-width: 80px;
  line-height: 1.2;
}

.wheel-pointer {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 30px solid #666;
  transform: translateY(-50%);
  z-index: 10;
}

.spin-btn {
  background: #00ca00;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.spin-btn:hover {
  background: #00cc00;
  transform: translateY(-2px);
}

.result-box {
  margin-top: 2rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.result-box.show {
  opacity: 1;
  transform: translateY(0);
}

.result-box p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
}

.result-box span {
  color: #00ca00;
}

/* Celebration Overlay */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.celebration-overlay.show {
  opacity: 1;
}

/* Confetti/Flowers Animation */
.celebration-overlay::before,
.celebration-overlay::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/confetti.png') repeat;
  opacity: 0;
  animation: confetti-fall 5s infinite;
}

.celebration-overlay::after {
  animation-delay: 2.5s;
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(-100vh);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh);
  }
}

/* Footer Section */
.footer {
  background: #fff;
  padding: 2rem 0;
  border-top: 1px solid #ddd;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-social, .footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social p, .footer-contact p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
}

.contact-icons, .social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icon, .contact-icon {
  font-size: 1.2rem;
  color: #666;
  text-decoration: none;
}

.social-icon:hover, .contact-icon:hover {
  color: #00cc00;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 150px;
  margin-bottom: 1rem;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.3rem;
}

.footer-column ul li a {
  font-size: 0.8rem;
  color: #666;
  text-decoration: none;
}

.footer-column ul li a:hover {
  color: #00cc00;
}

.footer-column.preferences select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #000000;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #666;
}

.footer-legal {
  flex: 1;
}

.footer-affiliations {
  display: flex;
  gap: 1rem;
}

.footer-affiliations span {
  font-size: 0.8rem;
  color: #666;
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-made p {
  font-size: 0.8rem;
  color: #666;
}

.footer-made .heart {
  color: #00ca00;
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: #666;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #00cc00;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-search {
    order: 3;
    width: 100%;
    margin: 0.5rem 0;
  }

  .nav-links {
    order: 2;
    gap: 1rem;
  }

  .logo-container {
    order: 1;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .nav-link.cta {
    padding: 0.4rem 0.8rem;
  }

  .wheel-wrapper {
    width: 250px;
    height: 250px;
  }

  .wheel-segment {
    font-size: 0.8rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .tui-member {
    font-size: 0.65rem;
  }

  .wheel-wrapper {
    width: 200px;
    height: 200px;
  }

  .wheel-segment {
    font-size: 0.7rem;
  }

  .wheel-container h2 {
    font-size: 1.5rem;
  }

  .spin-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .result-box p {
    font-size: 1rem;
  }
}