* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  margin: 0;
  background: #0f0f11;
  color: #e6e6eb;
}

/* Header container */
header {
  background: #0c0c0e;
  padding: 14px 20px; /* spacing from edges */
  border-bottom: 1px solid #232326;
  display: flex;
  align-items: center;
  justify-content: space-between; /* pushes left and right apart */
}

/* Left side: logo + title immediately next to each other */
.header-left {
  display: flex;
  align-items: center;
  gap: 8px; /* space between logo and text */
}

/* Logo */
.logo {
  width: 40px;
  height: auto;
}

/* Title next to logo */
.title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Right side: Twitch login button */
.header-right {
  display: flex;
  align-items: center;
}

/* Twitch login button */
#login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #9147ff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

#login-btn:hover {
  background: #772ce8;
}

.twitch-btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Dropdown for logged-in user */
.user-dropdown {
  position: absolute;
  top: 40px;
  right: 20px; /* spacing from right edge */
  background: #1f1f23;
  border: 1px solid #3a3a3f;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  z-index: 10;
  display: none;
}

.user-pfp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 6px;
}

#username {
  font-size: 14px;
  color: #e6e6eb;
  margin-bottom: 6px;
}

#logout-btn {
  background: #e05d5d;
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

#logout-btn:hover {
  background: #ff7676;
}

.title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

main {
  padding: 18px 24px;
  max-width: 1000px;
  margin: auto;
  flex: 1;
}

/* Search */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.search-bar input {
  background: #151517;
  border: 1px solid #2a2a2e;
  color: #e6e6eb;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.search-bar input::placeholder {
  color: #8a8a91;
}

.search-bar button {
  background: #1f1f23;
  border: 1px solid #2a2a2e;
  color: #e6e6eb;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.search-bar button:hover {
  background: #26262b;
}

/* Logs list */
#results {
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
  background: #111215;
  border: 1px solid #26262b;
  border-radius: 6px;
  padding: 14px;
  max-height: 600px;
  overflow-y: auto;
}

/* Individual entries */
.log-entry {
  padding: 4px 0;
  border-bottom: 1px solid #1a1a1f;
}

.log-entry:last-child {
  border-bottom: none;
}

.error {
  color: #e05d5d;
  padding-top: 8px;
  font-size: 14px;
}

.logo {
  width: 40px;
  height: auto;
  margin-right: 8px; /* space between logo and header text */
  vertical-align: middle;
}

/* Container for multiple buttons */
.button-container {
  display: flex;
  gap: 12px; /* space between buttons */
  margin-bottom: 12px;
}

/* Buttons with icons */
.redirect-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #1f1f23;
  color: #e6e6eb;
  border: 1px solid #3a3a3f;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.redirect-button:hover {
  background: #26262b;
  border-color: #555;
  color: #fff;
}

.button-icon {
  width: 20px;   /* icon size */
  height: 20px;
  object-fit: contain;
}

footer {
  text-align: center;
  padding: 12px 0;
  color: #8a8a91;
  font-size: 13px;
  border-top: 1px solid #232326;
  margin-top: 24px;
}

footer .heart {
  display: inline-block;
  color: #ff5b94;  /* pink heart */
  margin: 0 4px;
}

footer a {
  color: #e6e6eb;
  text-decoration: underline;
}

footer a:hover {
  color: #fff;
}

html, body {
  height: 100%;
  margin: 0;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* API Credits page styling */
.api-page ul {
  list-style: none;
  padding-left: 0;
  line-height: 2;
  font-size: 18px;
  text-align: center;
}

.api-page ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* space between icon and link */
}

.api-page ul li a {
  color: #1db954;        /* bright green links */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
  font-size: 18px;
}

.api-page ul li a:hover {
  color: #1fff75;        /* brighter green on hover */
}

.api-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
