/* css/style.css */

/* Define a comprehensive palette */
:root {
    /* Grey Scale */
    --grey-100: #f8f8f8; /* very light grey */
    --grey-200: #e0e0e0;
    --grey-300: #c2c2c2;
    --grey-400: #a4a4a4;
    --grey-500: #868686;
    --grey-600: #686868;
    --grey-700: #4a4a4a;
    --grey-800: #2c2c2c;
    --grey-900: #141414; /* very dark grey */
    
    /* Base Colors */
    --bg-color: var(--grey-100);   /* background: very light grey */
    --text-color: var(--grey-900); /* primary text: very dark grey */
    
    /* Primary interactive elements */
    --primary-color: var(--grey-800);
    --primary-hover: var(--grey-700);
    
    /* Brand Accent Color – use sparingly for highlights */
    --brand-color: #875954;
    
    /* Font */
    --font-family: 'Helvetica Neue', Arial, sans-serif;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-color);
    height: 100%;
  }
  
/* Progress Bar Container */
.progress-container {
    width: 100%;
    height: 10px;
    background: var(--grey-200);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
  }
  
  /* Progress Bar Indicator */
  .progress-bar {
    width: 0%;
    height: 100%;
    background: var(--grey-800);
    transition: width 0.5s ease-in-out;
  }
  
/* Loading Spinner */
.spinner {
    border: 4px solid var(--grey-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
    
/* CSS Animations for question transitions */
@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-10px);
    }
  }
  
  .animate-fade-in {
    animation: fadeIn 0.5s forwards;
  }
  
  .animate-fade-out {
    animation: fadeOut 0.5s forwards;
  }
    
/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 1s ease-out;
  }
    
  .splash-screen h1 {
    font-size: 1.5rem;
    color: var(--bg-color);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    margin-bottom: 20px;
  }

  .splash-screen p {
    font-size: 1rem;
    color: var(--bg-color);
  }
    
  /* Restaurant logo in splash screen */
  .splash-logo {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
  }
    
  /* Utility classes */
  .hidden {
    display: none;
  }
  
  .fade-out {
    opacity: 0;
  }
  
  /* Main App Container */
  #app {
    padding: 20px;
  }
  
/* Header for Questionnaire (Progress bar & back button) */
#questionnaire-header {
    width: 100%;
  }
    
/* Centralise Questionnaire */
#questionnaire {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
  }
  
  /* Questionnaire */
  .question {
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
    text-align: center;
  }
  
  .question h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  /* Two-column layout for options */
  .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .option-btn {
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
  }
  
  .option-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
  }
    
/* Back button styling */
.back-btn {
    margin-bottom: 10px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    align-self: flex-start;
    display: flex;
    align-items: center;
  }
  
  .back-btn:before {
    content: '←';
    margin-right: 5px;
  }
  
  /* Loading screen */
  .loading-screen {
    text-align: center;
    padding: 50px 20px;
  }
  
  /* Results */
  #wine, .wine {
    border: 1px solid var(--grey-300);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.4rem;
    background: var(--grey-100);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  }
  
  h2, h3 {
    margin-top: 0;
  }
  
  /* Restart button */
  .restart-btn {
    display: block;
    margin: 20px auto;
    padding: 15px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .restart-btn:hover {
    background-color: var(--primary-hover);
  }
  
  /* Responsive improvements */
  @media (max-width: 600px) {
    .option-btn {
      font-size: 0.9rem;
      padding: 12px;
    }
  }