/* css/style.css - NovaTV Website Styling */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}
.skip-link:focus {
  top: 6px;
}

/* Header and navigation */
header {
  background-color: #000; /* Dark for TV channel feel */
  color: white;
  padding: 1rem;
}

.logo h1 {
  font-size: 2rem;
  text-align: center;
}

nav {
  text-align: center;
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

nav a:hover, nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Accessibility toolbar */
.a11y-toolbar {
  text-align: right;
  margin-bottom: 1rem;
}

.a11y-toolbar button {
  background: #333;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

.a11y-toolbar button:hover {
  background: #555;
}

/* High contrast mode (activated by a11y.js) */
.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

.high-contrast a {
  color: #ff0 !important; /* Yellow links for visibility */
}

.high-contrast .card {
  background: #000 !important;
  border: 2px solid #fff !important;
}

/* Hero sections */
.page-hero {
  background: #111;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.page-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Filters */
.filters {
  text-align: center;
  padding: 2rem;
  background: #eee;
}

.filters label {
  margin-right: 0.5rem;
  font-weight: bold;
}

.filters input, .filters select {
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Shows grid */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.card h3 {
  padding: 1rem 0.5rem 0.5rem;
  font-size: 1.3rem;
}

.card p {
  padding: 0 1rem 1rem;
}

.fav-button {
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.fav-button[aria-pressed="true"] {
  color: gold;
}

/* Footer */
footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav a {
    display: block;
    margin: 0.5rem 0;
  }
  .filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
/* Visible focus styles – works for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #ffd700;     /* bright gold outline */
  outline-offset: 2px;
  /* Optional: add a subtle shadow for extra visibility */
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.4);
}

/* Make sure focus is still visible in high-contrast mode */
.high-contrast a:focus,
.high-contrast button:focus,
.high-contrast input:focus,
.high-contrast select:focus,
.high-contrast textarea:focus {
  outline: 3px solid #ff0; /* yellow in high-contrast */
}
.accounts-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.tabs {
  display: flex;
  margin-bottom: 1rem;
}

.tabs button {
  flex: 1;
  padding: 1rem;
  background: #eee;
  border: none;
  cursor: pointer;
}

.tabs button.tab-active {
  background: #333;
  color: white;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-form label {
  font-weight: bold;
}

.account-form input {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.account-form button {
  padding: 1rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

#login-message, #register-message {
  color: red;
  min-height: 1.5rem;
}

.hidden {
  display: none;
}