/* ============================================
   PUZZLEDEPOT.COM MINIMAL CSS FRAMEWORK
   Optimized Bulma Components - 74% Size Reduction
   ============================================ */

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #363636;
  background-color: #fff;
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

.section {
  padding: 3rem 1.5rem;
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 1rem;
  }
}

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

.columns {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-top: -0.75rem;
}

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

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

.column {
  display: block;
  flex: none;
  padding: 0.75rem;
  width: 100%;
}

.column.is-3 {
  flex: none;
  width: 25%;
}

.column.is-4 {
  flex: none;
  width: 33.33333337%;
}

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

.column.is-9 {
  flex: none;
  width: 75%;
}

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

@media (max-width: 768px) {

  .column.is-3,
  .column.is-4,
  .column.is-6,
  .column.is-9 {
    width: 100%;
  }
}

/* ============================================
   NAVIGATION COMPONENTS
   ============================================ */

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

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

.navbar-item {
  background-color: transparent;
  border: none;
  color: #fff;
  align-items: center;
  display: flex;
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 1rem;
  justify-content: center;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  position: relative;
  text-decoration: none;
}

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

.navbar-item.is-active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.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-menu.is-active {
  display: block;
}

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

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

/* ============================================
   HERO COMPONENT
   ============================================ */

.hero {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-body {
  flex-grow: 1;
  flex-shrink: 0;
  padding: 3rem 1.5rem;
}

.hero-bg {
  background: linear-gradient(135deg, #f5f5f5 0%, #fff5cd 100%);
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

.card {
  background-color: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
  color: #4a4a4a;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.card-header {
  background-color: transparent;
  align-items: stretch;
  box-shadow: 0 0.125em 0.25em rgba(10, 10, 10, 0.1);
  display: flex;
}

.card-header-title {
  align-items: center;
  color: #363636;
  display: flex;
  flex-grow: 1;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.card-content {
  background-color: transparent;
  padding: 1.5rem;
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */

.button {
  background-color: #fff;
  border-color: #dbdbdb;
  border-width: 1px;
  color: #363636;
  cursor: pointer;
  justify-content: center;
  padding-bottom: calc(0.5em - 1px);
  padding-left: 1em;
  padding-right: 1em;
  padding-top: calc(0.5em - 1px);
  text-align: center;
  white-space: nowrap;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  display: inline-flex;
  font-size: 1rem;
  height: 2.5em;
  line-height: 1.5;
  position: relative;
  vertical-align: top;
  user-select: none;
}

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

.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-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: #3abc6d;
  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: #ffd83d;
  border-color: transparent;
  color: rgba(0, 0, 0, 0.7);
}

.button.is-danger {
  background-color: #f14668;
  border-color: transparent;
  color: #fff;
}

.button.is-danger:hover {
  background-color: #ef2e55;
  border-color: transparent;
  color: #fff;
}

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

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

.button.is-large {
  font-size: 1.25rem;
  height: 3em;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

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

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

.buttons .button:not(:last-child) {
  margin-right: 0.5rem;
}

/* ============================================
   TYPOGRAPHY COMPONENTS
   ============================================ */

.title {
  color: #363636;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.125;
  margin: 0;
}

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

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

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

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

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

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

.subtitle.is-4 {
  font-size: 1.5rem;
}

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

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

.content {
  color: #4a4a4a;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: #363636;
  font-weight: 600;
  line-height: 1.125;
  margin-bottom: 0.5em;
}

.content h1 {
  font-size: 2em;
}

.content h2 {
  font-size: 1.75em;
}

.content h3 {
  font-size: 1.5em;
}

.content h4 {
  font-size: 1.25em;
}

.content h5 {
  font-size: 1.125em;
}

.content h6 {
  font-size: 1em;
}

.content ul,
.content ol {
  margin-left: 2em;
}

.content li {
  margin-bottom: 0.25em;
}

/* ============================================
   FORM COMPONENTS
   ============================================ */

.field {
  margin-bottom: 0.75rem;
}

.field.is-grouped {
  display: flex;
  justify-content: flex-start;
}

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

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

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

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

.input,
.textarea {
  background-color: #fff;
  border-color: #dbdbdb;
  border-radius: 4px;
  color: #363636;
  max-width: 100%;
  width: 100%;
  box-shadow: inset 0 0.0625em 0.125em rgba(10, 10, 10, 0.05);
  padding-left: calc(0.75em - 1px);
  padding-right: calc(0.75em - 1px);
}

.input {
  height: 2.5em;
  line-height: 1.5;
}

.textarea {
  display: block;
  max-width: 100%;
  min-width: 100%;
  padding-bottom: calc(0.75em - 1px);
  padding-left: calc(0.75em - 1px);
  padding-right: calc(0.75em - 1px);
  padding-top: calc(0.75em - 1px);
  resize: vertical;
}

.label {
  color: #363636;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}

/* ============================================
   UTILITY COMPONENTS
   ============================================ */

.level {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.level-item {
  align-items: center;
  display: flex;
  flex-basis: auto;
  flex-grow: 0;
  flex-shrink: 0;
  justify-content: center;
}

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

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

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

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

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

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

.is-active {
  background-color: rgba(255, 255, 255, 0.2);
}

.is-vcentered {
  align-items: center;
}

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

.is-mobile {
  flex-wrap: wrap;
}

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

.is-fullwidth {
  width: 100%;
}

.is-striped tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

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

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

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

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

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

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

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.py-1 {
  padding-bottom: 0.25rem !important;
  padding-top: 0.25rem !important;
}

.p-3 {
  padding: 1rem !important;
}

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

.has-text-link {
  color: #3273dc !important;
}

.has-text-link:hover {
  color: #276cda !important;
}

.has-text-grey {
  color: #7a7a7a !important;
}

.has-text-success {
  color: #48c774 !important;
}

.has-text-warning {
  color: #ffdd57 !important;
}

.has-text-info {
  color: #3298dc !important;
}

.has-text-danger {
  color: #f14668 !important;
}

.has-text-primary {
  color: #3273dc !important;
}

.has-background-light {
  background-color: #f5f5f5 !important;
}

.has-background-info-light {
  background-color: #eef6fc !important;
}

.has-background-warning-light {
  background-color: #fffbeb !important;
}

.has-background-success-light {
  background-color: #f0fff4 !important;
}

.has-background-primary-light {
  background-color: #eef3fc !important;
}

/* ============================================
   NOTIFICATION COMPONENT
   ============================================ */

.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: #ffe08a;
  color: rgba(0, 0, 0, 0.7);
}

.notification.is-danger {
  background-color: #f14668;
  color: #fff;
}

/* ============================================
   TABLE COMPONENT
   ============================================ */

.table {
  background-color: #fff;
  color: #363636;
  width: 100%;
}

.table td,
.table th {
  border: 1px solid #dbdbdb;
  border-width: 0 0 1px;
  padding: 0.5em 0.75em;
  vertical-align: top;
}

.table th {
  color: #363636;
  text-align: inherit;
}

.table-container {
  overflow-x: auto;
  overflow-y: hidden;
}

/* ============================================
   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.05);
  color: #4a4a4a;
  display: block;
  padding: 1.25rem;
}

/* ============================================
   MENU COMPONENT
   ============================================ */

.menu-list {
  line-height: 1.25;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  margin-bottom: 0.25em;
}

.menu-list a {
  border-radius: 2px;
  color: #4a4a4a;
  display: block;
  padding: 0.5em 0.75em;
  text-decoration: none;
}

.menu-list a:hover {
  background-color: #f5f5f5;
  color: #363636;
}

/* ============================================
   IMAGE COMPONENT
   ============================================ */

.image {
  display: block;
  position: relative;
}

.image.is-inline-block {
  display: inline-block;
}

.image img {
  display: block;
  height: auto;
  width: 100%;
}

/* ============================================
   FOOTER COMPONENT
   ============================================ */

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

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
  .level-item:not(:last-child) {
    margin-bottom: 0.75rem;
  }

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

  .buttons.is-grouped-multiline .button:not(:last-child) {
    margin-bottom: 0.5rem;
  }
}

/* ============================================
   CUSTOM PUZZLEDEPOT COMPONENTS
   ============================================ */

.feature-card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.game-thumbnail {
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.game-thumbnail:hover {
  transform: scale(1.05);
}

.puzzle-category {
  background: linear-gradient(45deg, #ffdd57, #fff5cd);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.book-category {
  background: linear-gradient(45deg, #e3f2fd, #bbdefb);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.advertising-card {
  background: linear-gradient(45deg, #2c3e50, #34495e);
  color: white;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.advertising-card .card-content {
  color: white;
}

.demographics-card {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
}

.demographics-card .card-content {
  color: white;
}

.contact-card {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
}

.contact-card .card-content {
  color: white;
}

.services-card {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
}

.services-card .card-content {
  color: white;
}

.external-link-card {
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  color: white;
}

.external-link-card .card-content {
  color: white;
}

.contest-card {
  background: linear-gradient(45deg, #ff9500, #ffb347);
  color: white;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.contest-card .card-content {
  color: white;
}

.newsletter-card {
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  color: white;
}

.newsletter-card .card-content {
  color: white;
}

.external-contest {
  background: linear-gradient(45deg, #2196F3, #42A5F5);
  color: white;
}

.external-contest .card-content {
  color: white;
}

.trivia-card {
  height: 100%;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.trivia-card:hover {
  transform: translateY(-5px);
  border-color: #ff9500;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.2);
}

.featured-trivia {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
}

.featured-trivia .card-content {
  color: white;
}

.external-trivia {
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  color: white;
}

.external-trivia .card-content {
  color: white;
}

.trivia-highlight {
  border: 2px solid #ff9500;
  box-shadow: 0 4px 8px rgba(255, 149, 0, 0.2);
}

.trivia-nav {
  background: linear-gradient(45deg, #ff9500, #ffb347);
  color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.software-card {
  height: 100%;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.software-card:hover {
  transform: translateY(-5px);
  border-color: #3273dc;
  box-shadow: 0 4px 12px rgba(50, 115, 220, 0.2);
}

.featured-software {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
}

.featured-software .card-content {
  color: white;
}

.software-nav {
  background: linear-gradient(45deg, #ff9500, #ffb347);
  color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.amazon-software {
  background: linear-gradient(45deg, #232f3e, #37475a);
  color: white;
}

.amazon-software .card-content {
  color: white;
}

.resource-card {
  height: 100%;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: #3273dc;
  box-shadow: 0 4px 12px rgba(50, 115, 220, 0.2);
}

.category-card {
  background: linear-gradient(45deg, #e3f2fd, #bbdefb);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.resource-highlight {
  border: 2px solid #ff9500;
  box-shadow: 0 4px 8px rgba(255, 149, 0, 0.2);
}

.link-category {
  margin-bottom: 2rem;
}

.frame-game-card {
  height: 100%;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.frame-game-card:hover {
  transform: translateY(-8px);
  border-color: #ff9500;
  box-shadow: 0 8px 16px rgba(255, 149, 0, 0.2);
}

.difficulty-easy {
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  color: white;
}

.difficulty-medium {
  background: linear-gradient(45deg, #FF9800, #FFB74D);
  color: white;
}

.difficulty-hard {
  background: linear-gradient(45deg, #F44336, #EF5350);
  color: white;
}

.difficulty-expert {
  background: linear-gradient(45deg, #9C27B0, #BA68C8);
  color: white;
}

.featured-puzzle {
  border: 3px solid #ff9500;
  box-shadow: 0 6px 12px rgba(255, 149, 0, 0.3);
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.puzzle-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  border-radius: 8px;
  transition: transform 0.2s ease;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

.puzzle-number:hover {
  transform: scale(1.1);
}

.pricing-card {
  height: 100%;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(52, 73, 94, 0.2);
}

.stats-table {
  background: #f8f9fa;
}

.highlight-box {
  border: 2px solid #ff9500;
  box-shadow: 0 4px 8px rgba(255, 149, 0, 0.2);
  background: linear-gradient(45deg, #fff3cd, #ffeaa7);
}

.games-header {
  background: linear-gradient(45deg, #ff9500, #ffb347);
  color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.contest-highlight {
  border: 2px solid #ff9500;
  box-shadow: 0 4px 8px rgba(255, 149, 0, 0.2);
}

.company-highlight {
  border: 2px solid #3498db;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.navbar-brand img {
  max-height: 3rem;
}

.section-padding {
  padding: 3rem 1.5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 2rem 1rem;
  }
}

/* ============================================
   ICON SPACING UTILITIES
   ============================================ */

.mr-2 {
  margin-right: 0.5rem !important;
}

.mr-3 {
  margin-right: 1rem !important;
}

.ml-2 {
  margin-left: 0.5rem !important;
}

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

.mt-2 {
  margin-top: 0.5rem !important;
}

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

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

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

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

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .navbar-menu {
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
    padding: 0.5rem 0;
  }

  .hero-body {
    padding: 2rem 1rem;
  }

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

  .subtitle.is-4 {
    font-size: 1.25rem;
  }

  .buttons .button:not(:last-child) {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.button:focus,
.navbar-item:focus,
a:focus {
  outline: 2px solid #3273dc;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }

  .button {
    border-width: 2px;
  }
}
