/* web/tool.heleeos.com/style.css */

:root {
  --bg: #f8f9fa;
  --surface: #fff;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-logo {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-nav a:hover { color: var(--accent); }

.site-footer {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.tool-page { padding-top: 0.5rem; }

.tool-page h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.tool-page .tool-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"],
input[type="date"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-sizing: border-box;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

button {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

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

button.primary:hover { background: var(--accent-hover); }

.markdown-preview {
  padding: 1rem;
  min-height: 200px;
  overflow: auto;
}

.markdown-preview h1 { font-size: 1.5rem; margin: 0.5rem 0; }
.markdown-preview h2 { font-size: 1.25rem; margin: 0.5rem 0; }
.markdown-preview h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.markdown-preview p { margin: 0.5rem 0; }
.markdown-preview pre { overflow-x: auto; background: var(--bg); padding: 0.75rem; border-radius: var(--radius); }
.markdown-preview code { font-size: 0.9em; }
.markdown-preview table { border-collapse: collapse; width: 100%; }
.markdown-preview th, .markdown-preview td { border: 1px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; }
.markdown-preview th { background: var(--bg); }
.markdown-preview ul, .markdown-preview ol { padding-left: 1.5rem; margin: 0.5rem 0; }

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-list li { margin-bottom: 0.5rem; }

.tool-list a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-list a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.tool-list small {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
