body {
  font-family: Georgia, serif;
}

button, input, nav a, #sidebar a {
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  background: #f9f9f9;
  color: #333;
}

/* TOP RED BAR */
#ao3-topbar {
  background: linear-gradient(#990000, #7a0000);
  color: white;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#ao3-topbar a {
  color: white;
  text-decoration: none;
  margin-right: 10px;
}

#ao3-topbar .searchbox {
  padding: 4px;
  margin-left: 12px;
}

#ao3-topbar .searchbtn {
  background: #cc0000;
  border: none;
  padding: 4px 10px;
  color: white;
  cursor: pointer;
}

/* PAGE LAYOUT */
#page {
  display: flex;
  margin: 0 auto;
  max-width: 1200px;
  padding-top: 10px;
}

/* SIDEBAR */

#sidebar a {
  color: #660000;
  text-decoration: none;
  padding: 4px 0;
  display: block;
}

#sidebar a:hover {
  text-decoration: underline;
}


#sidebar {
  width: 200px;
  padding: 10px;
  font-size: 14px;
}

#sidebar ul {
  list-style: none;
  padding: 0;
}

#sidebar li {
  margin-bottom: 4px;
}

#sidebar hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 15px 0;
}

/* MAIN CONTENT */
#content {
  flex: 1;
  background: white;
  border: 1px solid #ccc;
  padding: 20px;
}

.username-title {
  font-size: 26px;
  margin: 0;
  margin-bottom: 10px;
  text-align: right;
}

.user-buttons {
  text-align: right;
  margin-bottom: 20px;
}

.user-buttons button {
  margin-left: 5px;
  padding: 4px 10px;
}

/* SECTION BOXES */
.section-box {
  border: 1px solid #ccc;
  margin-bottom: 20px;
}

.section-box h2 {
  background: #eee;
  padding: 6px 10px;
  margin: 0;
  font-size: 18px;
}

.fandom-list, .work-card {
  padding: 10px;
}

/* WORK CARD */

.work-card {
  border: 1px solid #bbb;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  padding: 12px;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-icons {
  display: flex;
  gap: 4px;
}

.icon {
  padding: 2px 5px;
  font-size: 12px;
  border-radius: 2px;
  color: white;
}

.icon.green { background: #2b8a3e; }
.icon.yellow { background: #c9a300; }
.icon.red { background: #b30000; }

.work-meta a {
  display: block;
  text-decoration: none;
  color: #800000;
}

.date {
  font-size: 12px;
  color: #444;
}

/* TAGS */

.tags strong, .tags a {
  border-bottom: 1px dotted #999;
  text-decoration: none;
  cursor: pointer;
}

.tags strong:hover, .tags a:hover {
  border-bottom-style: solid;
}

.tags {
  font-size: 14px;
  margin: 10px 0;
  line-height: 1.4em;
}

.summary {
  margin: 10px 0;
}

.meta-bottom {
  font-size: 13px;
  color: #444;
  margin-top: 10px;
}

.work-buttons button,
.pseud-buttons button {
  margin-right: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 14px;
}

.top-left, .top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ao3-logo {
  font-weight: bold;
  font-size: 20px;
  padding-right: 10px;
  color: white;
}

