/* styles.css */

/*------------------*
  THEME: LIGHT MODE
 *------------------*/
 :root {
    --background: #ffffff;
    --text: #1a1a1a;
    --card-bg: #f3f3f3;
    --primary: #006699;
    --primary-dark: #004466;
    --text-light: #e0e0e0;
    --link-color: #006699;
    --link-hover: #004466;
  }
  
  /*------------------*
    THEME: DARK MODE
   *------------------*/
/* Dark mode overrides for body and text */
  .dark {
    --background: #121212;
    --text: #f3f3f3;
    --card-bg: #1e1e1e;
    --primary: #66ccff;
    --primary-dark: #3399cc;
    --text-light: #999999;
    --link-color: #66ccff;
    --link-hover: #99e6ff;
  }
  
  /*------------------*
    GLOBAL STYLES
   *------------------*/
/* Base styles for body including font, background, and transition */
  body {
    font-family: Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 1rem;
    transition: background-color 0.3s, color 0.3s;
  }
  
  nav {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  nav a {
    color: var(--link-color);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    color: var(--link-hover);
    text-decoration: underline;
  }

  nav a.active {
    text-decoration: underline;
    pointer-events: none;
  }
  
  
  /*------------------*
    SEARCH BAR
   *------------------*/
  .search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  #searchInput {
    padding: 0.5rem;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  
  #clearSearch {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  #clearSearch:hover {
    background-color: var(--primary-dark);
  }
  
/* Message styling for when no results match search */
  #noResults {
    text-align: center;
    font-style: italic;
    margin-top: 1rem;
    display: none;
    color: var(--text-light);
  }
  
/* Message styling for when no results match search */
  #noResults.visible {
    display: block;
  }
  
  /*------------------*
    DARK MODE TOGGLE
   *------------------*/
  #themeToggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.3s;
  }
  
  /*------------------*
    DOOR CARD STYLES
   *------------------*/
/* Container for each individual product spec */
  .door-spec {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
  }
  
/* Toggle button styling for opening/closing product details */
  .door-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    padding: 0;
  }
  
/* Toggle button styling for opening/closing product details */
  .door-toggle .arrow {
    transition: transform 0.3s ease;
  }
  
/* Toggle button styling for opening/closing product details */
  .door-toggle.open .arrow {
    transform: rotate(90deg);
  }
  
/* Styling for the detail/specification section */
  .specs {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
/* Styling for the detail/specification section */
  .specs.open {
    max-height: 1000px;
    opacity: 1;
    margin-top: 1rem;
  }
  
  /* Split spec list into 2 columns for better readability */
/* Styling for the detail/specification section */
  .specs ul {
    column-count: 2;
    column-gap: 2rem;
    padding-left: 1rem;
  }
  
  @media (max-width: 600px) {
/* Styling for the detail/specification section */
    .specs ul {
      column-count: 1;
    }
  }
  
  header h1 {
    font-size: 2rem;
    margin: 1rem 0 0.5rem;
    text-align: center;
    color: var(--text-color);
  }
  