/* Optimized Trivia Game CSS - Only components actually used */
/* Generated for maximum performance and minimal file size */

/* Base Styles */
html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #363636;
  background-color: #fff;
}

/* Layout Components */
.container {
  max-width: 1344px;
  margin: 0 auto;
  width: 100%;
}

@media screen and (min-width: 1024px) {
  .container {
    max-width: 1152px;
    width: 960px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.section {
  padding: 3rem 1.5rem;
}

@media screen and (min-width: 1024px) {
  .section {
    padding: 3rem 0;
  }
}

/* Grid System */
.columns {
  display: flex;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-top: -0.75rem;
}

.columns:last-child {
  margin-bottom: -0.75rem;
}

.columns.is-mobile {
  display: flex;
}

.column {
  display: block;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 0.75rem;
}

.is-half {
  flex: none;
  width: 50%;
}

.is-one-quarter {
  flex: none;
  width: 25%;
}

.is-full {
  flex: none;
  width: 100%;
}

.columns.is-centered {
  justify-content: center;
}

.columns.is-multiline {
  flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
  .column.is-one-quarter {
    width: 50%;
  }
}

/* Navbar */
.navbar {
  background-color: #3273dc;
  min-height: 3.25rem;
  position: relative;
  z-index: 30;
}

.navbar.is-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.navbar-brand {
  align-items: stretch;
  display: flex;
  flex-shrink: 0;
  min-height: 3.25rem;
}

.navbar-item {
  background-color: transparent;
  border: none;
  color: #fff;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-link {
  color: #fff;
  padding-right: 2.5em;
}

.navbar-dropdown {
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  border-top: none;
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
  display: none;
  font-size: 0.875rem;
  left: 0;
  min-width: 100%;
  position: absolute;
  top: 100%;
  z-index: 20;
}

.navbar-item.has-dropdown.is-hoverable:hover .navbar-dropdown {
  display: block;
}

.navbar-burger {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
  height: 3.25rem;
  position: relative;
  width: 3.25rem;
  margin-left: auto;
}

.navbar-burger span {
  background-color: #fff;
  display: block;
  height: 1px;
  left: 50%;
  margin-left: -7px;
  position: absolute;
  top: 50%;
  width: 14px;
}

.navbar-burger span:nth-child(1) {
  margin-top: -6px;
}

.navbar-burger span:nth-child(2) {
  margin-top: -1px;
}

.navbar-burger span:nth-child(3) {
  margin-top: 4px;
}

.navbar-menu {
  display: none;
}

.navbar-start {
  align-items: stretch;
  display: flex;
  justify-content: flex-start;
}

.navbar-end {
  align-items: stretch;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

/* Typography */
.title {
  color: #363636;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.125;
  margin-bottom: 1.5rem;
  word-break: break-word;
}

.title.is-2 {
  font-size: 1.5rem;
}

.title.is-3 {
  font-size: 1.25rem;
}

.title.is-4 {
  font-size: 1.125rem;
}

.title.is-5 {
  font-size: 1rem;
}

.subtitle {
  color: #4a4a4a;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.subtitle.is-5 {
  font-size: 1rem;
}

.subtitle.is-6 {
  font-size: 0.875rem;
}

.has-text-centered {
  text-align: center;
}

.has-text-weight-bold {
  font-weight: 700;
}

.has-text-white {
  color: #fff !important;
}

.has-text-right {
  text-align: right;
}

/* Box Component */
.box {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
  color: #4a4a4a;
  display: block;
  padding: 1.25rem;
}

/* Button Component */
.button {
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  color: #363636;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.5;
  border-width: 1px;
}

.button:hover {
  background-color: #f5f5f5;
  border-color: #b5b5b5;
  color: #363636;
}

.button.is-small {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

.button.is-static {
  background-color: #f5f5f5;
  border-color: #dbdbdb;
  color: #7a7a7a;
  cursor: default;
}

.button.is-primary {
  background-color: #3273dc;
  border-color: transparent;
  color: #fff;
}

.button.is-primary:hover {
  background-color: #276cda;
  border-color: transparent;
  color: #fff;
}

.button.is-link {
  background-color: #3273dc;
  border-color: transparent;
  color: #fff;
}

.button.is-link:hover {
  background-color: #276cda;
  border-color: transparent;
  color: #fff;
}

.button.is-info {
  background-color: #3298dc;
  border-color: transparent;
  color: #fff;
}

.button.is-info:hover {
  background-color: #238cd1;
  border-color: transparent;
  color: #fff;
}

.button.is-success {
  background-color: #48c774;
  border-color: transparent;
  color: #fff;
}

.button.is-success:hover {
  background-color: #3ec46d;
  border-color: transparent;
  color: #fff;
}

.button.is-warning {
  background-color: #ffdd57;
  border-color: transparent;
  color: rgba(0, 0, 0, 0.7);
}

.button.is-warning:hover {
  background-color: #ffdb4a;
  border-color: transparent;
  color: rgba(0, 0, 0, 0.7);
}

.button.is-light {
  background-color: #f5f5f5;
  border-color: #dbdbdb;
  color: rgba(0, 0, 0, 0.7);
}

.button.is-light:hover {
  background-color: #eee;
  border-color: #b5b5b5;
  color: rgba(0, 0, 0, 0.7);
}

.button .icon {
  margin-right: 0.375rem;
}

/* Form Components */
.field {
  margin-bottom: 0.75rem;
}

.field.has-addons {
  display: flex;
}

.field.has-addons .control:not(:last-child) {
  margin-right: -1px;
}

.field.has-addons .control:not(:first-child):not(:last-child) .button,
.field.has-addons .control:not(:first-child):not(:last-child) .input,
.field.has-addons .control:not(:first-child):not(:last-child) .select select {
  border-radius: 0;
}

.field.has-addons .control:first-child:not(:only-child) .button,
.field.has-addons .control:first-child:not(:only-child) .input,
.field.has-addons .control:first-child:not(:only-child) .select select {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.field.has-addons .control:last-child:not(:only-child) .button,
.field.has-addons .control:last-child:not(:only-child) .input,
.field.has-addons .control:last-child:not(:only-child) .select select {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.control {
  box-sizing: border-box;
  clear: both;
  font-size: 1rem;
  position: relative;
  text-align: left;
}

.control.is-expanded {
  flex-grow: 1;
  flex-shrink: 1;
}

.input {
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  color: #363636;
  max-width: 100%;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.input:focus {
  border-color: #3273dc;
  box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
  outline: none;
}

/* Helper Classes */
.is-size-4 {
  font-size: 1.25rem !important;
}

.is-size-5 {
  font-size: 1rem !important;
}

.is-size-6 {
  font-size: 0.875rem !important;
}

.is-size-7 {
  font-size: 0.75rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mt-6 {
  margin-top: 4.5rem !important;
}

.is-link {
  color: #3273dc;
  text-decoration: underline;
}

.is-link:hover {
  color: #276cda;
}

/* Layout Helpers */
.field.is-grouped {
  display: flex;
  justify-content: flex-start;
}

.field.is-grouped.is-grouped-centered {
  justify-content: center;
}

.field.is-grouped.is-grouped-multiline {
  flex-wrap: wrap;
}

.field.is-grouped .control {
  flex-shrink: 0;
}

.field.is-grouped .control:not(:last-child) {
  margin-right: 0.75rem;
}

@media screen and (max-width: 768px) {
  .field.is-grouped.is-grouped-multiline .control:not(:last-child) {
    margin-bottom: 0.75rem;
    margin-right: 0;
  }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  white-space: nowrap;
}

.breadcrumb a {
  align-items: center;
  color: #3273dc;
  display: flex;
  justify-content: center;
  padding: 0 0.75em;
}

.breadcrumb a:hover {
  color: #276cda;
}

.breadcrumb li {
  align-items: center;
  display: flex;
}

.breadcrumb li.is-active a {
  color: #363636;
  cursor: default;
  pointer-events: none;
}

.breadcrumb li+li::before {
  color: #b5b5b5;
  content: "\0002f";
}

.breadcrumb ol,
.breadcrumb ul {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Notification */
.notification {
  background-color: #f5f5f5;
  border-radius: 4px;
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 1.5rem;
}

.notification.is-info {
  background-color: #3e8ed0;
  color: #fff;
}

.notification.is-success {
  background-color: #48c774;
  color: #fff;
}

.notification.is-warning {
  background-color: #ffdd57;
  color: rgba(0, 0, 0, 0.7);
}

.notification .delete {
  background-color: rgba(10, 10, 10, 0.2);
  border: none;
  cursor: pointer;
  pointer-events: auto;
  display: inline-block;
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 1rem;
  height: 1.5rem;
  max-height: 1.5rem;
  max-width: 1.5rem;
  min-height: 1.5rem;
  min-width: 1.5rem;
  outline: none;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  width: 1.5rem;
  border-radius: 4px;
}

.notification.is-info .delete {
  background-color: rgba(255, 255, 255, 0.2);
}

.notification.is-success .delete {
  background-color: rgba(255, 255, 255, 0.2);
}

.notification.is-warning .delete {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: #fafafa;
  padding: 3rem 1.5rem 6rem;
}

.footer.has-background-dark {
  background-color: #363636;
  color: #fff;
}

.footer a {
  color: #3273dc;
}

.footer.has-background-dark a {
  color: #ffdd57;
}

/* Responsive Utilities */
@media screen and (max-width: 768px) {
  .is-mobile {
    display: flex;
  }
}

@media screen and (min-width: 769px) {
  .is-mobile {
    display: none;
  }
}

/* Custom styles for trivia game */
.trivia-puzzle-container {
  margin-bottom: 2rem;
  width: 100%;
}

.puzzle-display {
  background: linear-gradient(135deg, #f5f5f5 0%, #fff5cd 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  width: 100%;
}

.trivia-wordle-container {
  border: 2px solid #e1e8ed;
  width: 100%;
  max-width: 100%;
}

/* Ensure proper box alignment */
.column.is-half .box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Fix centered column alignment */
.columns.is-centered {
  justify-content: center;
  width: 100%;
}

.column.is-half {
  flex: none;
  width: 100%;
  max-width: 600px;
}

.trivia-feedback-grid {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1rem;
  min-height: 120px;
}

.trivia-feedback-item {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.example-highlight {
  background: linear-gradient(45deg, #e3f2fd, #bbdefb);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Performance optimizations */
.trivia-wordle-container *,
.trivia-feedback-grid *,
.puzzle-nav-buttons-container * {
  box-sizing: border-box;
}

/* Critical path optimization - load fastest components first */
.navbar,
.section,
.container,
.columns,
.column {
  display: block;
}

/* Preload critical fonts */
body {
  font-display: swap;
}

/* Optimize images */
img {
  max-width: 100%;
  height: auto;
}

/* Reduce layout shifts */
.trivia-wordle-container {
  min-height: 200px;
}

/* Optimize button interactions */
.button {
  transition: all 0.15s ease;
}

.button:active {
  transform: translateY(1px);
}

/* Mobile optimizations */
@media screen and (max-width: 768px) {
  .section {
    padding: 1.5rem 0.75rem;
  }

  .title.is-2 {
    font-size: 1.25rem;
  }

  .puzzle-display {
    padding: 1rem;
  }

  .trivia-wordle-container {
    padding: 1rem;
  }
}
