/*
Theme Name: CurtisRyals
Author: Curtis Ryals
Version: 1.0
*/

html, body {
  margin: 0;
  background-color: #000;
  color: #aaaaaa;
  font-family: sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  background: #111;
  padding: 10px 0;
  text-align: center;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

strong,
b {
  color: #dca53d;
  font-weight: bold;
}

a {
  color: #dca53d;
  text-decoration: none;
}

a:hover {
  color: #ffc94d;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: #dca53d;
  font-weight: bold;
}

h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.75em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 1.25em;
  margin-bottom: 0.5em;
}

h5 {
  font-size: 1.00em;
  margin-bottom: 0.5em;
}

h6 {
  font-size: .75em;
  margin-bottom: 0.5em;
}


header img {
  max-width: 100%;
  height: auto;
}

nav {
  background: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  flex-wrap: wrap;
}

nav .menu {
  display: flex;
  gap: 25px;
}

nav a {
  color: #aaaaaa;
  text-decoration: none;
}

/* Highlight current menu item in gold */
nav .menu .current-menu-item > a,
nav .menu .current_page_item > a,
nav .menu .current-menu-ancestor > a {
  color: #dca53d;
  font-weight: bold;
}

nav a:hover {
  color: #ffc94d;
}

.search-form {
  margin-left: auto;
}

main {
  padding: 20px;
}

/* Search form styling */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input[type="search"] {
  padding: 8px 16px;
  border: 1px solid #dca53d;
  background-color: #333;
  color: #dca53d;
  border-radius: 999px; /* Pill shape */
  font-size: 14px;
  outline: none;
  width: 200px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); /* Inset shadow */
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Placeholder text color */
.search-form input[type="search"]::placeholder {
  color: #aaa; /* or try #bbb for brighter look */
  opacity: 1; /* Ensures consistent rendering across browsers */
}

/* Focus effect */
.search-form input[type="search"]:focus {
  border-color: #ffcc66;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 5px #dca53d;
}

.search-form button.search-submit {
  background-color: #dca53d;
  border: none;
  border-radius: 999px;
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
  width: 34px;
  height: 34px;
}

.search-form button.search-submit:hover {
  background-color: #ffc94d;
}

.search-form button.search-submit svg {
  width: 24px;
  height: 24px;
  stroke: #000; /* Adjust to #222 or #333 for softer contrast */
}

.az-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  justify-content: center;
}

.az-menu a {
  text-decoration: none;
  padding: 6px 12px;
  background-color: #f2f2f2;
  border-radius: 999px;
  color: #333;
  font-weight: 500;
  transition: background 0.3s ease;
}

.az-menu a:hover {
  background-color: #ddd;
}

.az-menu a.active {
  background-color: #dca53d;
  color: #fff;
}

.post-index-list {
  columns: 2;
  column-gap: 30px;
  padding: 0;
  list-style: none;
}

.post-index-list li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .post-index-list {
    columns: 1;
  }
}


.post-pagination {
  text-align: center;
  margin-top: 40px;
}

.post-pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  color: #dca53d;
  background-color: #111;
  border: 1px solid #dca53d;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.post-pagination .page-numbers:hover {
  background-color: #ffc94d;
  color: #000;
}

.post-pagination .current {
  background-color: #dca53d;
  color: #000;
}

/* Basic menu container */
.main-nav,
.menu {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #000;
  align-items: center;
  flex-wrap: wrap;
}

/* Menu links */
.menu li a {
  color: #aaaaaa;
  text-decoration: none;
  padding: 10px 16px;
  display: inline-block;
  font-weight: bold;
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover style */
.menu li a:hover {
  background-color: #222;
  color: #dca53d;
}

/* Active page item */
.menu li.current-menu-item a {
  color: #dca53d;
  border-bottom: 2px solid #dca53d;
}

/* Optional: underline current ancestor too */
.menu li.current_page_ancestor a {
  color: #dca53d;
}











.sort-form {
  text-align: right;
  margin-bottom: 20px;
}

.sort-form label {
  margin-right: 8px;
  color: #dca53d;
  font-weight: bold;
}

.sort-form select {
  background-color: #333;
  color: #aaaaaa;
  border: 1px solid #dca53d;
  padding: 5px 10px;
  padding-right: 36px; /* extra for arrow */
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23dca53d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
}

.sort-form select:hover,
.sort-form select:focus {
  border-color: #dca53d;
  box-shadow: 0 0 5px #dca53d;
  outline: none;
  background-color: #333;    /* ? Gray background */
  color: #ffffff;            /* ? White text */
}

.sort-form select option {
  color: #aaaaaa;
  background-color: #333;
}

.sort-form select option:hover {
  background-color: #dca53d !important;
  color: #ffffff !important;
  font-weight: bold;
}

/***********************************************************************/

/* Make the sort form look like a menu item */
.sort-form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* pushes it to the right if inside a flex menu */
}

.sort-form-inline label {
  color: #aaaaaa;
  font-weight: bold;
  font-size: 1em;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  cursor: default;
  transition: color 0.3s, background-color 0.3s;
}

/* Dropdown to match menu item look */
.sort-form-inline select {
  background-color: #000000;         /* match menu background */
  color: #aaaaaa;                    /* same as menu item text */
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23dca53d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
  padding-right: 36px;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover and focus: make it gold like active menu item */
.sort-form-inline select:hover,
.sort-form-inline select:focus {
  background-color: #333;
  color: #aaaaaa;
  outline: none;
}


.menu a {
  padding: 8px 16px;
  display: inline-block;
  color: #aaaaaa;
  text-decoration: none;
}
