/* ======================================================
   common.css — Shared styling across Hollowverse apps
   ====================================================== */

/* 🎨 Theme Variables */
:root {
  --color-bg-primary: #0d1117;
  --color-bg-secondary: #161b22;
  --color-bg-tertiary: #1c2128;
  --color-text-primary: #c9d1d9;
  --color-text-secondary: #8b949e;
  --color-accent: #58a6ff;
  --color-success: #3fb950;
  --color-danger: #f85149;
  --color-border: #30363d;

  --radius: 6px;
  --font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

/* 🧱 Base */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  height: 100%;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* 🔘 Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: #3b8ae0;
}

/* 🔍 Inputs */
input[type="text"],
input[type="search"] {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  color: var(--color-text-primary);
  width: 100%;
}

input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* 💬 Status Text */
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-accent { color: var(--color-accent); }

/* ==========================
   Header (shared)
   ========================== */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 5%;
  background: linear-gradient(90deg, #1b1f3b, #283593);
  border-bottom: 1px solid var(--color-border);
  color: #fff;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 50%;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  white-space: nowrap;
}

.header-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 40%;
  gap: 0.5rem;
}

.header-search input {
  width: 250px;
  max-width: 340px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 📱 Responsive Header */
@media (max-width: 991px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .header-logo,
  .header-search,
  .header-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .header-search input {
    width: 100%;
  }
}
