/* ============================================= */
/* BASE STYLES - MOBILE FIRST                    */
/* ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Ensures padding doesn't affect element dimensions */
}

html {
  scroll-behavior: smooth;
}

/* Skip to Content Link (Accessibility Feature) */
.skip {
  position: absolute;
  height: 25px;
  background-color: #ffffff;
  top: -45px;
  /* Hidden by default, visible when focused */
}

.skip:focus {
  top: 25px;
  /* Becomes visible when focused for keyboard navigation */
}

/* Body Styles */
body {
  font-family: 'Inter', sans-serif;
  /* gradient background with texture overlay */
  background: radial-gradient(circle at 20% 30%, rgba(221, 153, 153, 0.05), transparent 60%), 
              radial-gradient(circle at 80% 70%, rgba(255, 153, 153, 0.05), transparent 60%), 
              radial-gradient(circle at 50% 50%, rgba(222, 204, 204, 0.1), transparent 70%), 
              linear-gradient(135deg, #121212, #232323), 
              url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  background-size: cover;
  color: #E0E0E0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ============================================= */
/* NAVIGATION - MOBILE STYLES                    */
/* ============================================= */
.navbar {
  background-color: #1A1A1A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 0;
  border-bottom: 1px solid #2E2E2E;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #B8B8B8;
  font-weight: 500;
  transition: all 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

/* Navigation hover/active states */
.nav-links a:hover,
.nav-links .active {
  color: #D7A3B8;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #D7A3B8;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links .active::after {
  width: 100%;
}

/* ============================================= */
/* HERO SECTION                */
/* ============================================= */
.hero {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 120px);
  text-align: left;
}


.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: #cc8484;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h2 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: #C8C8C8;
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 600px;
}

/* Quiz Button Styles */
.quiz-button-container {
  margin-top: 2rem;
}

.quiz-button {
  display: inline-block;
  background: linear-gradient(to right, #D7A3B8, #A85E51);
  color: black;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(183, 119, 107, 0.4);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.quiz-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(168, 94, 81, 0.6);
}

/* ============================================= */
/* FOOTER                       */
/* ============================================= */
.footer {
  background-color: #1A1A1A;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid #2E2E2E;
}

.footer-email {
  color: #B8B8B8;
  margin-bottom: 1rem;
}

.footer-copyright {
  color: #D7A3B8;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #D7A3B8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #FFC2C8; 
}

/* ============================================= */
/* QUIZ PAGE STYLES                  */
/* ============================================= */
.quiz-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #1E1E1E;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3D3D3D;
}

.quiz-container h1,
.quiz-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.quiz-container h1 {
  font-family: 'Playfair Display', serif;
  color: #D7A3B8;
  font-size: 2rem;
}

.quiz-container h2 {
  color: #B8B8B8;
  font-size: 1.25rem;
  font-weight: 400;
}

/* Question Card Styles */
.question-card {
  display: none;
  background-color: #1E1E1E;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3D3D3D;
}

.question-card.active {
  display: block;
}

.question-card p {
  font-weight: 600;
  color: #FFC2C8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.option {
  display: block;
  padding: 1rem;
  margin-bottom: 0.8rem;
  background-color: #2A2A2A;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.option:hover {
  background-color: #3D3D3D;
}

input[type="radio"] {
  margin-right: 0.8rem;
}

/* Quiz Navigation Buttons */
.quiz-nav {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-direction: column;
}

.prev-btn, .next-btn, .submit-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.prev-btn {
  background-color: #3D3D3D;
  color: #B8B8B8;
}

.next-btn, .submit-btn {
  background: linear-gradient(to right, #D7A3B8, #A85E51);
  color: white;
}

.next-btn:hover, .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 163, 184, 0.4);
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
  display: none;
}

/* Result Card Styles */
.result-card {
  background-color: #1E1E1E;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3D3D3D;
}

.result-card h2 {
  color: #FFC2C8;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

#score {
  color: #D7A3B8;
  font-size: 2.5rem;
}

#download-card {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(to right, #D7A3B8, #A85E51);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

#download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 163, 184, 0.4);
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: #D7A3B8;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: width 0.3s ease;
}

.hidden {
  display: none;
}

/* Animation for results */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/* FAVOURITES PAGE            */
/* ============================================= */
.favourites-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  color: #D7A3B8;
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  text-align: center;
}

/* Grid layout for the favourites section */
.favourites-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column for mobile */
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Favourite card container */
.favourite-card {
  background-color: #1e1e1e; /* Dark background for the card */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3d3d3d; /* Border for better definition */
}

/* Hover effect for cards */
.favourite-card:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* Card image container */
.card-image {
  width: 100%;
  height: 200px; /* Fixed height for images */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2a2a2a; /* Fallback background color */
}

/* Card image styling */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container */
  transition: transform 0.3s ease;
}

/* Image zoom effect on hover */
.favourite-card:hover .card-image img {
  transform: scale(1.1); /* Slight zoom on hover */
}

/* Card content container */
.card-content {
  padding: 1.5rem;
  text-align: center;
}

/* Card title */
.card-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #d7a3b8; /* Dusty pink */
  margin-bottom: 0.5rem;
}

/* Card description */
.card-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #b8b8b8; /* Light gray */
  margin-bottom: 0.5rem;
}

/* Card description for additional details */
.card-content .card-desc {
  font-size: 0.9rem;
  color: #e0e0e0; /* Slightly brighter text for emphasis */
  margin-top: 0.5rem;
}

/* ============================================= */
/* TABLET VIEW (min-width: 600px)                */
/* ============================================= */
@media screen and (min-width: 700px) {
  /* Quiz Navigation - Switch to horizontal layout */
  .quiz-nav {
    flex-direction: row; /* Side-by-side buttons on tablet+ */
  }

  /* Adjust quiz title size */
  .quiz-container h1 {
    font-size: 1.75rem;
  }

  /* Favourites grid - 2 columns */
  .favourites-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
  }

  .card-image {
    height: 250px; /* Slightly taller images for larger screens */
  }
}

/* ============================================= */
/* DESKTOP VIEW (min-width: 1024px)              */
/* ============================================= */
@media screen and (min-width: 1024px) {
  /* Favourites grid - 3 columns */
  .favourites-grid {
    grid-template-columns: repeat(3, 1fr); /* Three columns for desktops */
  }

  .card-image {
    height: 300px; /* Taller images for desktops */
  }
}


