/* ========================================
   CELEBRITIES WITH PETS - LANDING PAGE STYLES
   Based on PDF mockups
   ======================================== */

/* CSS Variables */
:root {
  --color-green: #9ae43c;
  --color-pink: #ec297b;
  --color-purple: #77449a;
  --color-gray-text: #333333;
  --color-white: #ffffff;
  --font-raleway: 'Raleway', sans-serif;
}

/*===================NAVIGATION STYLES====================*/
:focus:not(.gallery) {
   outline: 2px dashed var(--gray-dark) !important;
   outline-offset: -2px !important;
   box-shadow: 0 0 0 2px var(--white) inset !important;
}
.visually-hidden {
   position: absolute !important;
   width: 1px !important;
   height: 1px !important;
   padding: 0 !important;
   margin: -1px !important;
   overflow: hidden !important;
   clip: rect(0, 0, 0, 0) !important;
   white-space: nowrap !important;
   border: 0 !important;
}
header {
   position: relative;
}
nav {
   background-color: transparent;
   box-shadow: 0px 1px 2px var(--gray-dark);
   color: var(--gray-dark);
   position: relative;
   height: 7vw;
   margin: 0;
   max-height: 100px;
   min-height: 50px;
   z-index: 10001;
}

.logo-link {
   display: block;
   left: 18px;
   min-width: 110px;
   max-width: 250px;
   position: absolute;
   top: 4px;
   width: 17vw;
   z-index: 10003;
}
nav > ul {
   display: none;
   flex-direction: column;
}
nav > ul.show {
   display: flex;
}
@media screen and (min-width: 960px) {
   nav > ul {
      align-items: center;
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
   }

}
nav > button {
   display: block;
   border: 0;
   background-color: var(--white);
   cursor: pointer;
   padding: 0.5rem 2rem;
   font-size: 3.5vw;
   margin-left: auto;
}
@media screen and (max-width: 599px) {
   nav > button {
      font-size: 24px;
   }
}
nav ul {
   list-style: none;
   background-color: var(--white);
   box-shadow: 0px 2px 2px var(gray-dark);
   color: var(--gray-dark);
   margin: 0;
   padding: 0;
}
@media screen and (min-width: 960px) {
   nav > button {
      display: none;
   }
   nav ul {
      height: 7vw;
      max-height: 100px;
   }
}
nav ul.dropdown {
   display: none;
   flex-direction: column;
   min-width: 240px;
}
nav ul.dropdown.show {
   display: flex;
}
@media screen and (max-width: 959px) {
   nav ul.dropdown {
      padding-left: 20px;
   }
}
@media screen and (min-width: 960px) {
   nav ul.dropdown {
      position: absolute;
      top: 100%;
      left: 0;
   }
   nav ul.dropdown ul {
      top: 0;
      left: 100%;
   }
}
nav ul li {
   list-style: none;
   position: relative;
   margin: 0;
   padding: 0;
}
@media screen and (min-width: 960px) {
   nav ul li button {
      margin: 0 25px;
   }
}
nav ul li.dropdown > a::after {
   content: "▼";
   margin-left: 0.5rem;
   display: inline-block;
}
nav ul li a {
   display: flex;
   font-family: var(--noto-serif);
   font-weight: 500;
   font-size: clamp(1rem, 2vw, 1.5rem);
   justify-content: space-between;
   margin: 0;
   padding: 10px 20px;
   color: var(--gray-dark);
   text-decoration: none;
}
@media screen and (min-width: 960px) {
   nav ul li a {
      padding: 26px 20px;
   }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}



/* Pink Wavy Border - Top and Bottom */
.wavy-border-top,
.wavy-border-bottom,
#quiz-container,
.quiz-wrap,
main#content {
  position: relative;
}

/* Wavy border using radial gradients */
.wavy-border-top::before,
.wavy-border-bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 21px;
  background-color: var(--color-pink);
  --mask:
    radial-gradient(25.12px at 50% calc(100% + 15.3px), #0000 calc(99% - 3px), #000 calc(101% - 3px) 99%, #0000 101%) calc(50% - 36px) calc(50% - 10.5px + .5px)/72px 21px repeat-x,
    radial-gradient(25.12px at 50% -15.3px, #0000 calc(99% - 3px), #000 calc(101% - 3px) 99%, #0000 101%) 50% calc(50% + 10.5px)/72px 21px repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
}

.wavy-border-top::before {
  top: 0;
}

.wavy-border-bottom::after {
  bottom: 0;
}

/* Main content container */
main#content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* Quiz Container */
#quiz-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px 20px;
  background: var(--color-white);
}

/* Paw Status Indicators */
#paw-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

#quiz-count {
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-purple);
  margin-right: 10px;
}

#paw-status img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

#paw-status img:hover {
  transform: scale(1.1);
}

/* Quiz Wrap - Individual Quiz */
.quiz-wrap {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Celebrity Image Container */
.celebrity-image-wrap {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  margin: 0 auto 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(236, 41, 123, 0.1) 0%, rgba(119, 68, 154, 0.1) 100%);
}

.celebrity-image-wrap img.celebrity-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Image Descriptions */
.celebrity-image-description,
.pet-image-description {
  font-size: 0.85em;
  font-style: italic;
  margin: 10px auto 20px;
  padding: 0 10px;
  color: #666;
  max-width: 500px;
  line-height: 1.4;
}

/* Quiz Form */
.quiz-wrap form {
  margin-top: 25px;
}

.quiz-wrap h2 {
  font-family: var(--font-raleway);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Radio Button Options */
.quiz-wrap form > div {
  margin: 12px auto;
  max-width: 400px;
}

.quiz-wrap label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 20px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-raleway);
  font-size: 16px;
  color: var(--color-gray-text);
}

.quiz-wrap label:hover {
  background: #fff;
  border-color: var(--color-pink);
  box-shadow: 0 2px 8px rgba(236, 41, 123, 0.2);
}

.quiz-wrap input[type="radio"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-pink);
}

.quiz-wrap input[type="radio"]:checked + label,
.quiz-wrap label:has(input[type="radio"]:checked) {
  background: #fff;
  border-color: var(--color-pink);
  font-weight: 600;
}

/* Quiz Feedback Messages */
.quiz-feedback {
  font-family: var(--font-raleway);
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  background: #f0f0f0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-feedback:empty {
  display: none;
}

/* Pet Image Reveal */
.pet-image-wrap {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  margin: 25px auto 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, rgba(154, 228, 60, 0.1) 0%, rgba(236, 41, 123, 0.1) 100%);
}

.pet-image-wrap img.pet-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Next Question Button */
.next-question-btn {
  position: relative;
  display: inline-block;
  width: 250px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-raleway);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-green);
  border: 2px solid var(--color-green);
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.next-question-btn:hover {
  background: #8ad12a;
  border-color: #8ad12a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(154, 228, 60, 0.4);
}

.next-question-btn:active {
  transform: translateY(0);
}

/* Game Complete Message */
#game-complete {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#game-complete p {
  font-family: var(--font-raleway);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: 25px;
  line-height: 1.5;
}

#game-complete ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

#game-complete li {
  margin: 12px 0;
}

#game-complete a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-pink);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

#game-complete a:hover {
  background: var(--color-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(119, 68, 154, 0.4);
}

/* Social Media Icons (if added) */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--color-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--color-purple);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(119, 68, 154, 0.4);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Mobile Styles (up to 599px) */
@media screen and (max-width: 599px) {
  main#content {
    padding: 15px;
  }

  #quiz-container {
    padding: 20px 15px;
    margin: 20px auto;
  }

  #paw-status {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  #quiz-count {
    font-size: 16px;
    margin-right: 0;
    margin-bottom: 5px;
  }

  #paw-status img {
    width: 25px;
    height: 25px;
  }

  .celebrity-image-wrap {
    max-width: 250px;
  }

  .quiz-wrap h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .quiz-wrap label {
    padding: 10px 15px;
    font-size: 14px;
  }

  .celeb-btn,
  .next-question-btn {
    width: 100%;
    max-width: 280px;
    height: 60px;
    line-height: 60px;
    font-size: 16px;
  }

  .pet-image-wrap {
    max-width: 200px;
  }

  #game-complete {
    padding: 30px 15px;
  }

  #game-complete p {
    font-size: 18px;
  }

  #game-complete a {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Tablet Styles (600px to 959px) */
@media screen and (min-width: 600px) and (max-width: 959px) {
  main#content {
    padding: 25px;
  }

  #quiz-container {
    padding: 30px 25px;
  }

  .celebrity-image-wrap {
    max-width: 350px;
  }

  .quiz-wrap h2 {
    font-size: 24px;
  }

  .quiz-wrap label {
    font-size: 17px;
  }
}

/* Desktop Styles (960px and up) */
@media screen and (min-width: 960px) {
  main#content {
    padding: 40px;
  }

  #quiz-container {
    padding: 40px 30px;
  }

  .celebrity-image-wrap {
    max-width: 400px;
  }

  .quiz-wrap h2 {
    font-size: 26px;
  }

  .pet-image-wrap {
    max-width: 300px;
  }

  /* Hover effects only on desktop */
  .celebrity-image-wrap:hover img,
  .pet-image-wrap:hover img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus styles for keyboard navigation */
.quiz-wrap label:focus-within {
  outline: 3px solid var(--color-purple);
  outline-offset: 2px;
}

.celeb-btn:focus,
.next-question-btn:focus,
#game-complete a:focus {
  outline: 3px solid var(--color-purple);
  outline-offset: 3px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}