/* css/style.css */

/* ----------------- */
/*  COLOR VARIABLES  */
/* ----------------- */
:root {
  --color-bg: #1A1A2E;      /* Midnight Navy */
  --color-header: #000000;  /* Deep Black */
  --color-text: #ffffff;    /* White */
  --color-link: #FF6600;    /* Electric Orange */
  --color-accent: #00A3FF;  /* Cyber Blue */
  --color-stealth: #0074D9; /* Stealth Blue */
  --color-secondary: #2C3E50;/* Gunmetal Grey */
  --color-highlight: #C0C0C0;/* Cool Silver */
  --color-slate: #374151;    /* Slate Grey */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ---------- */
/*  HEADERS   */
/* ---------- */
header {
  background-color: var(--color-header);
  padding: 0.5rem 1rem;
  position: sticky; /* Sticks to top on scroll */
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar h1 {
  color: var(--color-accent);
  font-size: 1.5rem;
}

/* Navigation links container */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* Individual nav links */
.nav-links a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* -------------- */
/*  HAMBURGER     */
/* -------------- */
.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-link);
}

/* When we go below 768px, show hamburger, hide normal nav */
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--color-header);
    flex-direction: column;
    width: 200px;
    gap: 1rem;
    padding: 1rem;
    transform: translateX(100%); /* Hide off-screen by default */
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.show {
    transform: translateX(0); /* Slide in when menu is open */
  }

  .menu-icon {
    display: block;
  }
}

/* ---------------- */
/*  MAIN CONTAINER  */
/* ---------------- */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 1rem auto;
  padding: 1rem;
}

/* ---------------- */
/*   HEADINGS       */
/* ---------------- */
h2, h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* -------------- */
/*   LINKS, ETC   */
/* -------------- */
a {
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--color-accent);
}

/* -------------- */
/*   BUTTONS      */
/* -------------- */
.button {
  background-color: var(--color-stealth);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.button:hover {
  background-color: var(--color-accent);
}

/* -------------- */
/*   NEWS/ITEMS   */
/* -------------- */
.news-item, .blog-post, .youtube-video {
  background-color: var(--color-secondary);
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.news-item:hover, .blog-post:hover, .youtube-video:hover {
  background-color: var(--color-slate);
}

/* -------------- */
/*   FOOTER       */
/* -------------- */
footer {
  background-color: var(--color-header);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ------------- */
/*  RESPONSIVE   */
/* ------------- */
@media screen and (max-width: 768px) {
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}
/* At the bottom of style.css or within a dedicated "forms" section */

/* Container wrapping the entire form page */
.form-container {
  background-color: var(--color-secondary);
  /* Gunmetal Grey or your choice */
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  margin: 2rem auto; /* centers horizontally, adds vertical spacing */
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* Heading inside the form container */
.form-container h1 {
  margin-bottom: 1rem;
  color: var(--color-accent);
  text-align: center;
}

/* Each label + input block */
.form-group {
  margin-bottom: 1rem;
}

/* Label styling */
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--color-link);
}

/* Text inputs, email inputs, password inputs, etc. */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-slate);
  border-radius: 4px;
  background-color: #fff; /* or a lighter grey if you prefer */
  color: #000; /* black text on white field */
  outline: none;
  font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 3px var(--color-accent);
}

/* The submit button */
.form-container button[type="submit"] {
  background-color: var(--color-stealth);
  /* e.g. #0074D9 */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease-in-out;
}

/* Hover effect for the submit button */
.form-container button[type="submit"]:hover {
  background-color: var(--color-accent);
  /* e.g. #00A3FF */
}

/* Error or success message styling */
.form-message {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
}

.form-message.error {
  background-color: #FF4C4C;
  /* or a darker red if you prefer */
  color: #fff;
}

.form-message.success {
  background-color: #4CAF50; 
  /* a green shade */
  color: #fff;
}

/* Example link styling within the form container (e.g. "Go to Login") */
.form-container a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: bold;
}

.form-container a:hover {
  color: var(--color-accent);
}

/* -----------
   IMAGE RADIO
   ---------- */
.image-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hide the actual radio inputs */
.image-radio-group input[type="radio"] {
  display: none;
}

/* Style the label which contains the image */
.image-radio-group label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
  text-align: center;
}

/* The thumbnail images themselves */
.image-radio-group label img {
  width: 70px; /* adjust to taste */
  height: auto; 
  border: 2px solid transparent; /* or none initially */
  border-radius: 4px; /* subtle rounding */
  transition: transform 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* The label text (span) if you want to style it further */
.image-radio-group label span {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text); /* or your brand color */
}

/* Hover effect to slightly enlarge the image */
.image-radio-group label:hover img {
  transform: scale(1.05);
  border-color: var(--color-accent); /* e.g. #00A3FF */
}

/* The magic: highlight the selected radio's label image */
.image-radio-group input[type="radio"]:checked + label img {
  border-color: var(--color-accent); /* highlight color */
}

/* Optionally, highlight the label text too when selected */
.image-radio-group input[type="radio"]:checked + label span {
  color: var(--color-accent);
  font-weight: bold;
}
