/*
 * Crownless game website styles
 *
 * This stylesheet defines a dark, moody aesthetic with warm accent colours
 * inspired by the game's logo. It sets up a responsive layout with
 * sections for the hero header, features and call‑to‑action.
 */

/* CSS reset and defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #f5f5f5;
  background-color: #0a0a0a;
  overflow-x: hidden;
}

/* Colour palette */
:root {
  --primary-color: #d2b166; /* warm gold to reflect the game logo */
  --secondary-color: #92836e;
  --background-dark: #0a0a0a;
  --panel-dark: #111111;
  --form-bg: #1a1a1a;
  --input-bg: #222222;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Use the provided backdrop as the hero background */
  background-image: url('assets/hero-background.png');
  background-size: cover;
  background-position: center;
}

/* Dark overlay to ensure text contrasts on the background image */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Navigation bar */
.navbar {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.navbar a {
  color: var(--primary-color);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #e1c78c;
  text-decoration: underline;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.logo {
  max-width: 60%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.tagline {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.05rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--primary-color);
  color: #222;
  border: none;
  border-radius: 0.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: #e1c78c;
  outline: none;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

section h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: 0.05rem;
}

section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #dddddd;
}

/* Features grid */
#features .feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

#features .feature {
  flex: 1 1 280px;
  background-color: var(--panel-dark);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

#features .feature:hover {
  transform: translateY(-5px);
}

#features .feature img {
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  margin-bottom: 1rem;
}

#features .feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-family: 'Cinzel', serif;
}

#features .feature p {
  font-size: 0.95rem;
  color: #cccccc;
}

/* Call to action */
#cta {
  background-color: var(--panel-dark);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

#cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: 'Cinzel', serif;
}

#cta p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

#cta .social-links a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 600;
}

#cta .social-links a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--background-dark);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #777777;
}

/* Support page styles */
.support-hero {
  background-color: var(--panel-dark);
  padding: 6rem 2rem 3rem;
  text-align: center;
}

.support-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.support-hero p {
  font-size: 1rem;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
}

/* Support form */
#support-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

#support-form form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  background-color: var(--input-bg);
  color: #dddddd;
  border: 1px solid #333333;
  border-radius: 0.3rem;
  padding: 0.75rem;
  font-size: 1rem;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Button style reuse */
button.btn {
  align-self: flex-start;
  cursor: pointer;
}

/* Social links in CTA - adjust spacing */
#cta .social-links {
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo {
    max-width: 80%;
  }
  .tagline {
    font-size: 1.3rem;
  }
  #features .feature-list {
    flex-direction: column;
  }
}