/* Shared Site Theme CSS - Based on phpBB Forum Dark Theme */

/* Import Google Fonts (Open Sans) - same as forum */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* Base Colors from Forum */
:root {
  /* Background colors */
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --bg-tertiary: #222222;
  --bg-quaternary: #2a2a2a;
  
  /* Text colors */
  --text-primary: #e0e0e0;
  --text-secondary: #d0d0d0;
  --text-tertiary: #b0b0b0;
  --text-muted: #888888;
  
  /* Link colors */
  --link-primary: #4a9eff;
  --link-hover: #6ab7ff;
  --link-accent: #ff4081;
  
  /* Border colors */
  --border-primary: #3a3a3a;
  --border-secondary: #444444;
  
  /* Header gradient */
  --header-bg-start: #2a5080;
  --header-bg-mid: #1e3a5f;
  --header-bg-end: #1a3050;
}

/* Base Typography - matching forum */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  height: 100%;
}

body {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 1em;
  line-height: 1.5;
  min-height: 100vh;
  padding-top: 60px; /* Space for fixed header */
}

/* Headings - matching forum */
h1 {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 2em;
  margin: 0.8em 0 0.2em 0;
}

h2 {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  color: var(--text-primary);
  font-weight: normal;
  font-size: 1.5em;
  margin: 0.8em 0 0.2em 0;
}

h3 {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--link-primary);
  border-bottom: 1px solid var(--border-secondary);
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 20px;
  margin-bottom: 3px;
  padding-bottom: 2px;
}

/* Links */
a {
  color: var(--link-primary);
  text-decoration: none;
}

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

/* Paragraphs */
p {
  line-height: 1.5em;
  font-size: 1.1em;
  margin-bottom: 1em;
  color: var(--text-secondary);
}

/* Containers */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Content boxes */
.content-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.content-box h2 {
  color: var(--link-primary);
  border-bottom: 1px solid var(--border-secondary);
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* Buttons - matching forum style */
.button,
.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--bg-quaternary);
  background-image: linear-gradient(to bottom, #333333 0%, var(--bg-quaternary) 100%);
  border: 1px solid var(--border-primary);
  border-radius: 3px;
  color: var(--link-primary);
  font-size: 1em;
  font-weight: normal;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px var(--bg-secondary) inset;
}

.button:hover,
.btn:hover {
  border-color: var(--link-primary);
  background-color: #333333;
  background-image: linear-gradient(to bottom, var(--bg-quaternary) 0%, #333333 100%);
  color: var(--link-hover);
}

.button-primary,
.btn-primary {
  background-color: var(--header-bg-mid);
  background-image: linear-gradient(to bottom, var(--header-bg-start) 0%, var(--header-bg-mid) 100%);
  color: #FFFFFF;
  border-color: var(--header-bg-mid);
}

.button-primary:hover,
.btn-primary:hover {
  background-color: var(--header-bg-start);
  color: #FFFFFF;
}

/* Form inputs - matching forum style */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  background-color: var(--bg-quaternary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
textarea:hover,
select:hover {
  border-color: var(--link-primary);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--link-primary);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Horizontal rule */
hr {
  border: 0;
  border-top: 1px solid var(--border-primary);
  margin: 20px 0;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-primary);
  color: var(--text-muted);
  font-size: 0.9em;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 1.3em;
  }
}

