/*
Theme Name: RIDIGITALLINK
Theme URI: https://ridigitallink.net
Author: Your Name
Description: Simple dark theme for the RIDIGITALLINK network site.
Version: 1.0
Text Domain: ridigitallink
*/

/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: #020617;
  color: #e5e7eb;
}

/* General layout */
.site-header {
  background: #020617;
  border-bottom: 1px solid #1e293b;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.header-logo img {
  display: block;
  height: 80px;
  width: auto;
}

.header-text {
  margin-left: 16px;
}

.site-title {
  font-size: 28px;
  margin-bottom: 4px;
}

.site-tagline {
  font-size: 14px;
  color: #9ca3af;
}

.main-content {
  padding: 24px 16px 32px;
}

.footer {
  background: #020617;
  border-top: 1px solid #1e293b;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

.footer-inner > div + div {
  margin-top: 4px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #f9fafb;
}

p {
  margin-bottom: 1em;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation bar */
nav.main-nav {
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  background: #020617;
}

.nav-inner {
  padding: 0 16px;
}

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

nav.main-nav li {
  margin: 0 6px 6px 0;
}

nav.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
}

nav.main-nav a:hover,
nav.main-nav .current-menu-item > a {
  background: #0f172a;
  border-color: #38bdf8;
  color: #ffffff;
}

/* Hero section on front page */
section.hero {
  padding: 32px 16px 24px;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 15px;
  color: #9ca3af;
  margin-bottom: 16px;
}

/* Hero badges row */
.hero-badges {
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 13px;
  color: #e5e7eb;
}

/* Hero buttons on the front page */
.hero-actions {
  margin-top: 4px;
  text-align: left;
}

/* Warning text under hero buttons */
.key-up-warning {
  margin-top: 0.75rem;
  text-align: center;
  font-weight: 700;
  color: #000;
  background-color: #ffeb3b;
  padding: 0.4rem 0.8rem;
  display: inline-block;
}

.hero-actions a.button-primary,
.hero-actions a.button-secondary {
  display: inline-block;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 4px;
  border-width: 1px;
  border-style: solid;
  text-decoration: none;
  margin-right: 8px;
}

/* Primary button (Network & Nodes) */
.hero-actions a.button-primary {
  background: #0f172a;
  border-color: #38bdf8;
  color: #f9fafb;
}

/* Secondary buttons (How-To, Nets & Events, Contact) */
.hero-actions a.button-secondary {
  background: #020617;
  border-color: #4b5563;
  color: #e5e7eb;
}

/* Hover states */
.hero-actions a.button-primary:hover {
  background: #1e293b;
  border-color: #7dd3fc;
  color: #ffffff;
}

.hero-actions a.button-secondary:hover {
  background: #111827;
  border-color: #9ca3af;
  color: #ffffff;
}

/* Generic sections */
section.section {
  padding: 24px 16px;
  border-top: 1px solid #111827;
}

/* Lists */
ul, ol {
  margin: 0 0 1em 1.2em;
}

/* Dashboard grid on Network & Nodes page */
.dashboard-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.dashboard-card {
  display: block;
  background-color: #020617;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: 1px solid #1e293b;
}

.dashboard-card h3 {
  margin-bottom: 0.5rem;
}

.dashboard-card p {
  margin-bottom: 0.75rem;
  color: #cbd5f5;
}

.btn-dashboard {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.55rem 1.2rem;
  background-color: #38bdf8;
  color: #020617;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid #0ea5e9;
}

.btn-dashboard:hover {
  background-color: #0ea5e9;
  color: #ffffff;
}

/* Back link bar (all non-front pages) */
.back-link-wrap {
  padding: 8px 16px;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  background: #020617;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: #38bdf8;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* WPForms on dark background */
.wpforms-container .wpforms-form,
.wpforms-container .wpforms-form .wpforms-field-label,
.wpforms-container .wpforms-form .wpforms-field-sublabel,
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form textarea {
  color: #ffffff !important;
}

/* WPForms field backgrounds and borders to match theme */
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form textarea {
  background-color: #020617 !important;
  border: 1px solid #4b5563 !important;
}

/* Placeholder text inside fields */
.wpforms-container .wpforms-form ::placeholder {
  color: #9ca3af !important;
}

/* WPForms submit button styled like theme buttons */
.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form .wpforms-submit {
  color: #ffffff !important;
  background-color: #38bdf8 !important;
  border: 1px solid #0ea5e9 !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
}

.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form .wpforms-submit:hover {
  background-color: #0ea5e9 !important;
}

/* Make WPForms error messages readable on dark background */
.wpforms-container .wpforms-form .wpforms-error-container,
.wpforms-container .wpforms-form .wpforms-field .wpforms-error {
  color: #f97373 !important;
}

/* Nets & Events layout */
.nets-events-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nets-panel {
  background: #020617;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #1e293b;
  color: #e5e7eb;
}

.nets-panel-table {
  overflow-x: auto;
}

.nets-heading {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #f9fafb;
}

.nets-panel label {
  color: #f9fafb;
}

.nets-form {
  max-width: 600px;
}

.nets-form-row {
  margin-bottom: 1rem;
}

.nets-form-row input[type="text"],
.nets-form-row textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #020617;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.nets-form-actions {
  text-align: right;
}

.nets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.nets-table th,
.nets-table td {
  border: 1px solid #1e293b;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.nets-table thead {
  background-color: #0f172a;
  font-weight: 600;
}

.nets-table tr:nth-child(even) {
  background-color: #020617;
}

/* How-To hero button labels (“Coming soon”) */
.howto-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-button-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-button-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

/* Equipment Gallery Grid */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gear-card {
  background: #111827;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gear-card .gear-thumb-link img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.gear-title {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.gear-title a {
  color: #e5e7eb;
  text-decoration: none;
}

.gear-title a:hover {
  text-decoration: underline;
}

/* Optional: tighten up section headers */
.section h2 {
  margin-bottom: 0.75rem;
}
