/* === Base Reset & Typography === */
:root {
  --primary: #ff7f00;
  --primary-hover: #ff9f00;
  --accent-blue: #007bff;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text-main: #222;
  --text-sub: #555;
  --danger: #dc3545;
  --success: #28a745;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
}

/* === Header === */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}

header h1 .brand-null {
  color: var(--primary);
}


nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* === Auth Area === */
.auth-area {
  margin-left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#userMenu {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-blue);
}

.btn-logout {
  font-size: 0.8rem;
  color: var(--danger);
  cursor: pointer;
  text-decoration: none;
}

/* === Main Container === */
main {
  max-width: 620px;
  margin: 3rem auto;
  background: var(--surface);
  padding: 2.2rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.hidden {
  display: none;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

/* === Form Elements === */
input,
select {
  width: 100%;
  padding: 0.85rem 0.9rem;
  margin-top: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 159, 0, 0.15);
}

input:disabled {
  background-color: #f1f3f5;
  cursor: not-allowed;
}

/* === Buttons === */
button {
  width: 100%;
  padding: 0.85rem;
  margin-top: 1rem;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

button:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

button:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-cancel {
  background: #6c757d;
}

.btn-cancel:hover {
  background: #5a6268;
}

.btn-sm {
  width: auto;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* === Lists & Items === */
.list {
  margin-top: 1.2rem;
}

.item {
  background: #f9fafb;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  margin-top: 0.6rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.2s, box-shadow 0.2s;
}

.item:hover {
  background: #f1f3f5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* === Result Rows === */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--border);
}

.result-row:last-child {
  border-bottom: none;
}

/* === Status === */
.status-ok {
  color: var(--success);
  font-weight: 600;
  font-size: 0.85rem;
}

.status-no {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85rem;
}

/* === Form Labels === */
.form-group {
  margin-top: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* === Messages === */
p.msg {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* === GitHub Login Button === */
#githubLoginBtn {
  background-color: #24292e;
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  transition: background 0.2s, box-shadow 0.2s;
}

#githubLoginBtn:hover {
  background-color: #3a3f45;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Service Info (main 규격과 동일) === */
.service-info {
  max-width: 620px;
  margin: 3rem auto;
  padding: 2.2rem;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  color: var(--text-main);
  line-height: 1.6;
}

.service-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.service-info p {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 0.8rem;
}

.service-info ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.service-info li {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}

.status-clickable {
  font-weight: 400;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.status-clickable:hover {
  text-decoration: underline;
  filter: brightness(0.9);
}

.status-clickable:active {
  transform: translateY(1px);
}

/* === Mobile Header Font Size === */
@media (max-width: 768px) {

  header {
    padding: 0.6rem 1rem;
  }

  header h1 {
    font-size: 1.05rem;
  }

  header h1 .brand-null {
    font-size: 1.05rem;
  }

  nav {
    gap: 0.6rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .auth-area {
    margin-left: 0.5rem;
    gap: 0.4rem;
  }

  #userMenu {
    font-size: 0.85rem;
  }

  .btn-logout {
    font-size: 0.7rem;
  }
}
