/* '''''''''''''''''''''''''''''''''''''''' */

/* MAIN DEFAULT STYLES (styles.css) */

/* '''''''''''''''''''''''''''''''''''''''' */

body {
  font-family: "Roboto Condensed", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#background-pic {
  top: 0;
  left: 0;
  position: fixed;
  object-fit: cover;
  z-index: -1;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  transform: scale(1.2);
  transform-origin: left;
}

h1,
h2,
p {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: black;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  background: rgb(200, 200, 200);
  color: inherit;
  border: none;
  padding: 0.5rem 2rem;
  font: inherit;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  /* border-radius: 8px; */
}

/* for error pages */
h3 {
  margin-top: 3rem;
  padding: 0;
  text-align: center;
  font-size: 3rem;
}

.hidden {
  display: none !important;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* '''''''''''''''''''''''''''''''''''''''' */

/* DROP DOWN STYLES (drop-down-styles.css) */

/* '''''''''''''''''''''''''''''''''''''''' */

#drop-down {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin-left: 0.5rem;
  z-index: 100;
  transition: all 0.3s ease;
}

/* When action buttons are visible, dropdown becomes part of document flow */
#drop-down:has(#action-button-element:not(.hidden)) {
  position: relative;
  top: 0;
  left: 0;
  margin: 1rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: fit-content;
}

#drop-down a span {
  width: 100%;
  height: 0.25rem;
  background-color: black;
}

#drop-down:hover {
  transform: scale(1.1);
}

/* Don't scale when action buttons are visible */
#drop-down:has(#action-button-element:not(.hidden)):hover {
  transform: none;
}

#drop-down-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

#drop-down-menu-display {
  box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, 0.5);
  background-color: white;
  border-radius: 10px;
  display: none;
}

#drop-down-menu-display h2 {
  font-size: 3rem;
  font-weight: bold;
  padding: 1rem 2.5rem;
  border: none;
}

#drop-down-menu-display h2:hover {
  background-color: rgb(215, 215, 215);
  border-radius: 10px;
}

/* ---------------------------------- */

/* ACTION BUTTON STYLES */

#action-button-element {
  background-color: rgb(235, 235, 235);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

#action-button-element li {
  margin-bottom: 0;
}

.action-button {
  width: 100%;
  min-width: 180px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background-color: #b3d9ff;
  color: #2c3e50;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-button:hover {
  background-color: #9cc9ff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.action-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* '''''''''''''''''''''''''''''''''''''''' */

/* FORM STYLES (form-styles.css) */

/* '''''''''''''''''''''''''''''''''''''''' */

/* Form wrapper flexbox styling */
#form-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 5rem;
  width: 80%;
  align-items: flex-start;
}

/* Make each form take equal width */
#form-wrapper > * {
  flex: 1;
  min-width: 0; /* Allows flex items to shrink below their content size */
}

.wrapper {
  display: flex;
  flex-direction: column;
  margin: 1rem;
  padding: 0;
  background-color: transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.wrapper:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Style the collapse header within wrapper */
.wrapper .collapse-header {
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

/* Style the collapse content (the form) within wrapper */
.wrapper .collapse-content {
  padding: 1.5rem;
  background-color: rgb(235, 235, 235);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin: 0;
}

.wrapper li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  list-style: none;
}

.wrapper li:last-child {
  margin-bottom: 0;
}

.wrapper label {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.wrapper input {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background-color: white;
}

.wrapper input:focus {
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  outline: none;
}

.wrapper input::placeholder {
  color: #aaa;
  font-style: italic;
}

.wrapper select {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  appearance: none;
  background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E")
    no-repeat right 0.75rem center;
  background-size: 0.8em;
  background-color: white;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.wrapper select:focus {
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* '''''''''''''''''''''''''''''''''''''''' */

/* COLLAPSE STYLES (collapse-styles.css) */

/* '''''''''''''''''''''''''''''''''''''''' */

/* COLLAPSE COMPONENT STYLES */
.collapse-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 20px;
  background-color: rgb(200, 200, 200);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.collapse-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #2c3e50;
  /* max-width: calc(100% - 42px); */
  max-width: calc(100% - 3rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-align: left;
}

/* Arrow styling - circular background with elegant arrow */
.collapse-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  margin-right: 14px;
  background-color: #f2f3f5;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collapse-header:hover {
  background-color: #b3d9ff;
}

.collapse-header:active {
  transform: scale(0.99);
}

/* Chevron for arrow */
.collapse-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #2c3e50;
  border-bottom: 2.5px solid #2c3e50;
  transform: rotate(-45deg) translate(-1px, -1px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Expanded state styling */
.collapse-arrow.expanded {
  background-color: #e9ecef;
}

.collapse-arrow.expanded::before {
  transform: rotate(45deg) translate(-1px, -1px);
  border-color: #2c3e50;
}

/* Collapse content container */
.collapse-content {
  max-height: 100000px;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, padding 0.3s ease;
  opacity: 1;
  overflow: hidden;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.collapse-content.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

/* makes collapse headers smaller for article pics */
.article-pic-collapse .collapse-header {
  margin: 0 auto;
  /* margin-top: -1.5rem; */
  /* margin-bottom: 1rem; */
  width: fit-content;
  border-radius: 0 0 8px 8px;
  background-color: rgb(200, 200, 200);
}

.article-pic-collapse .collapse-title {
  font-size: 1.5rem;
  max-width: calc(100% - 1rem);
}

.article-element-collapse .collapse-header,
.pic-element-collapse .collapse-header,
.vid-element-collapse .collapse-header {
  justify-content: left;
}

.article-pic-collapse .collapse-content {
  background-color: transparent;
  box-shadow: none;
}

.admin-default-list-item:hover,
.admin-new-list-item:hover {
  box-shadow: none;
}

#admin-backend-container > .wrapper:hover {
  box-shadow: none;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* '''''''''''''''''''''''''''''''''''''''' */

/* BACKEND STYLES (backend-styles.css) */

/* '''''''''''''''''''''''''''''''''''''''' */

#backend-data-wrapper {
  margin: 0 auto;
  /* display: flex;
  flex-direction: row;
  gap: 1rem; */
  width: 90%;
  /* align-items: flex-start; */
}

.article-list-item {
  margin-bottom: 2rem;
}

#article-container-element {
  background-color: #ffffff;
  padding: 0;
}

#article-element {
  margin-bottom: 1.5rem;
  padding: 0.5rem 3rem 0.5rem 2rem;
}

#article-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

#article-title span {
  font-size: 1.2rem;
  font-weight: 500;
  vertical-align: middle;
}

#article-date {
  margin: 0 auto;
  /* margin-top: -1rem; */
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 98%;
}

#article-text {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #334155;
}

/* -------------------------- */

/* ARTICLE BUTTONS CLAUDE */

#article-type-button-container {
  margin: 0 auto;
  margin-bottom: -0.5rem;
}

#article-type-button-list {
  margin: 0 auto;
  padding: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: fit-content;
  background-color: #f8fafc;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  opacity: 0.9;
}

.article-type-button-item {
  margin: 0;
  list-style: none;
}

.article-type-button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: transparent;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  transition: all 0.2s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}

.article-type-button:hover {
  background-color: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.article-type-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.article-type-button.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transform: none;
}

.article-type-button.active:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: none;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}

/* Special styling for the "ALL ARTICLES" button to make it stand out */
.article-type-button[data-article-type="all-type"] {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.article-type-button:not(.active) {
  background-color: transparent;
  border-color: #e2e8f0;
  color: #475569;
  font-weight: 500;
  box-shadow: none;
  transform: none;
}

/* ----------------------------------- */

/* PIC STYLES */

.pic-list-item {
  margin-bottom: 2rem;
}

#pic-container-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

#pic-container-element {
  background-color: #ffffff;
  padding: 0;
}

#pic-container-title span {
  font-size: 1.2rem;
  font-weight: 500;
  vertical-align: middle;
}

#pic-container-date {
  margin: 0 auto;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 98%;
}

#pic-wrapper-element {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1rem;
  margin: 0 auto;
  /* margin-bottom: -1rem; */
  padding: 1rem;
  list-style: none;
  width: 100%;
  background-color: transparent;
  box-sizing: border-box;
}

#pic-wrapper-item {
  position: relative;
  background-color: transparent;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */

  overflow: hidden;
  /* aspect-ratio: 3/2; */
  display: flex;
  flex-direction: column;
}

/* WANT TO MAKE BIGGER, BUT NOT WORTH FIGURING OUT OVERFLOW */
#pic-wrapper-item:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
  z-index: 10;
}

#pic-element {
  border-radius: 8px 8px 0 0;
}

#pic-element-stats {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0;
  padding: 0.3rem 0.5rem;
  background-color: #f5f5f5;
  min-height: 1rem;
  max-height: 3rem;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 0 0 8px 8px;
}

/* Individual stat elements */
#pic-element-date,
#pic-element-source,
#pic-element-server {
  font-size: 0.7rem;
  line-height: 1.2;
  color: #666;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------- */

.vid-list-item {
  margin-bottom: 2rem;
}

#vid-container-element {
  background-color: #ffffff;
  padding: 0;
}

#vid-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

#vid-title span {
  font-size: 1.5rem;
  vertical-align: middle;
}

#vid-date {
  margin: 1rem auto;
  padding: 0.5rem 0;
  padding-left: 1rem;
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 95%;
}

#vid-element {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------- */

#backend-data-fail {
  margin: 0 auto;
  margin-top: 3rem;
  width: 50rem;
  max-width: 800px;
  text-align: center;
  font-weight: bold;
  font-size: 3.5rem;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
