/* ==========================================================================
base.css — Global Styles & Variables
Description: Defines root variables, resets, base styles, and utilities.
Author: Sai Manas Pandrangi (Research Assistant)

University: University of British Columbia
Lab: Collaborative Digital Heritage Studio (CoDHerS)
Team: CoDHerS Research Assistant Team
Created: 2025-06-08
Updated: 2025-06-29
========================================================================== */

/* ==========================================================================
Root Variables
========================================================================== */

:root {
    --color-primary-1: #121212;  /* Light charcoal */
    --color-primary-2: #fbf0de;  /* Background beige */
    --color-primary-3: #a3bad4;  /* Soft blue */
    --color-primary-4: #df6732;  /* Accent orange */
    --color-primary-5: #6d7f33;  /* Olive green */
  
    --color-secondary-1: #446a7c;  /* Blue-grey */
    --color-secondary-2: #5a6391;  /* Slate blue */
    --color-secondary-3: #b9bbc1;  /* Light grey */
    --color-secondary-4: #c23d37;  /* Red-orange */
    --color-secondary-5: #ef9606;  /* Amber */
    --color-secondary-6: #52593a;  /* Olive green */
    --color-secondary-7: #dde4b9;  /* Light green */
  
    --font-base: 'Comfortaa', sans-serif;
    --font-color-base: #ffffff;  /* white */
    --font-color-footer: #888888; /* grey */
    --font-size-base: 16px;
    --border-radius: 0.25rem;
  }
  
  /* ==========================================================================
  Reset & Box Sizing
  ========================================================================== */
  
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* ==========================================================================
  Base Styles
  ========================================================================== */
  
  body {
    background-color: var(--color-primary-1);
    padding: 1rem;
  
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    color: var(--font-color-base);
    line-height: 1.5;

    overflow-y: hidden;
  }
  
  /* ==========================================================================
  Typography Styles
  ========================================================================== */
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  a {
    color: var(--color-primary-4);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* ==========================================================================
  Component Classes
  ========================================================================== */
  
  /* Buttons */
  button, .btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
  
    background: linear-gradient(135deg, var(--color-primary-4), #e66a2b);
    color: var(--font-color-base);
  
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-align: center;
    text-decoration: none;
  
    box-shadow: 0 4px 8px rgba(223, 103, 50, 0.4);
  
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
    user-select: none;
  }
  
  button:hover, .btn:hover,
  button:focus-visible, .btn:focus-visible {
    background: linear-gradient(135deg, #e66a2b, var(--color-primary-4));
    transform: scale(1.05);
    outline: none;
  }
  
    
  
  /* Forms */
    input, select, textarea {
    font: inherit;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-primary-1);
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  /* Labels */
  label {
    margin-bottom: 6px;
    font-weight: bold;
    display: block;
    text-align: left;
  }
  
  /* Responsive container */
  .container {
    background-color: #1e1e1e;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
    
    width: 100%;
    max-width: 500px;
    margin: 0 1rem 20px;
    box-sizing: border-box;
    text-align: center;
  }
  
  .container h1 {
    text-align: center;
  }
  
  
  /* Footer text */
  .footer-text {
    text-align: center;
    font-size: 12px;
    margin-top: 30px;
    color: var(--font-color-footer);
    display: block;
    width: 100%;
    clear: both;
  }

  /* Error text */
  .error-text {
    list-style-type: disc;
    color: var(--color-secondary-4);
    font-size: 0.75rem;
    font-style: italic;
    text-align: left;
  }
  
  /* ==========================================================================
  Utility Classes
  ========================================================================== */
  
  /* Text alignment */
  .text-center {
    text-align: center;
  }
  
  /* Margin-top */
  .mt-1 { margin-top: 0.25rem; }  /* 4px */
  .mt-2 { margin-top: 0.5rem; }   /* 8px */
  .mt-3 { margin-top: 1rem; }     /* 16px */
  
  /* Centered elements */
  .centered-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
