/* Games by James - Main Stylesheet */

@import url(GamesbyJamesColors.css);

/* --- Global & Layout --- */
.gbj-wrapper {
  padding: 40px 0;
  background-color: var(--gbj-cream-bg);
  color: var(--both-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.main-text {
  background: var(--gbj-cream-bg);
  border-radius: 12px;
}

/* --- Carousel --- */
.carousel {
  overflow: hidden;
  border-radius: 12px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.carousel .item img {
  width: 100%;
}

.carousel-indicators li,
.carousel-indicators li.active {
  margin-left: 5px;
}

/* --- Card Components --- */
.gbj-card-action {
  display: block;
  margin-bottom: 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  color: var(--both-gray) !important;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.gbj-card-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--gbj-green);
}

.gbj-card-action:active {
  transform: scale(0.98);
}

.gbj-info-block {
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.card-store-photo {
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.store-photo {
  display: block;
  max-height: 60vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
}

/* --- Location Card --- */
.gbj-location-card {
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition:
    box-shadow 0.25s ease-in-out,
    border-color 0.25s ease-in-out;
}

.gbj-location-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--gbj-green);
}

.gbj-location-card a {
  color: var(--both-gray);
  text-decoration: none;
  display: block;
  margin-top: 8px;
}

.gbj-location-card a:hover {
  color: var(--gbj-green);
}

/* --- Store Info Cards --- */
.card-store-hours,
.card-store-landmark {
  background: #fff;
  border-radius: 12px;
}

.card-store-hours {
  padding: 15px;
  border: 1px solid #eee;
  color: var(--both-gray);
}

/* --- Store Info Equal Height Layout --- */
.store-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.store-info-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-store-hours,
.store-info-row .gbj-card-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* --- Store Hours --- */
.hours-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}

.hours-days {
  font-weight: bold;
  white-space: nowrap;
}

.hours-time {
  white-space: nowrap;
}

.phone-number {
  white-space: nowrap;
}

/* --- Interactive Elements --- */
.map-overlay-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border-top: 1px solid var(--both-gray);
}

.call-button-text {
  margin-bottom: 10px;
  padding: 20px;
  color: var(--gbj-red);
}

/* --- Read More & Details (Accordion) --- */
summary {
  list-style: none;
  outline: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none; /* Safari */
}

.read-more-text,
summary {
  display: inline-block;
  padding: 8px 0;
  color: var(--gbj-red);
  font-weight: bold;
  transition: all 0.2s ease;
}

.read-more-text:hover,
summary:hover {
  color: var(--old-gbj-red);
  text-decoration: underline;
}

.read-more-text:active,
summary:active {
  transform: scale(0.98);
}

.read-more-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

/* +/- Toggle Symbols */
details .see-less {
  display: none;
}
details[open] .see-more {
  display: none;
}
details[open] .see-less {
  display: inline;
}

.see-more::after {
  content: " +";
  font-weight: normal;
  opacity: 0.8;
}
.see-less::after {
  content: " \2212";
  font-weight: normal;
  opacity: 0.8;
}

/* --- Accessibility (Focus States) --- */

/* Cards: box shadow traces the rounded corners */
.gbj-card-action:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 4px var(--gbj-gold);
  position: relative;
  z-index: 5;
}

/* Text/Links: outline works better here */
summary:focus-visible,
.read-more-text:focus-visible {
  outline: 3px solid var(--gbj-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Suppress focus ring for mouse users */
.gbj-card-action:focus,
summary:focus {
  outline: none;
}

/* --- Utility Classes --- */
.accent-gold {
  border-left: 5px solid var(--gbj-gold);
}

.action-grid .row {
  margin-left: -5px;
  margin-right: -5px;
}

.action-grid [class*="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}

/* --- Footer --- */
.footer-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-left p {
  width: 230px;
  text-align: center;
}
/* --- Location Page --- */
.contact-grid a {
  color: var(--both-gray);
  text-decoration: none;
}

.contact-grid a:hover {
  color: var(--gbj-green);
  text-decoration: none;
}

/* --- Full Width Map --- */
.map-wrapper {
  height: 480px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.map-wrapper.is-active iframe {
  pointer-events: auto;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  /* Navbar: override float so hamburger spans full width */
  .navbar-default {
    float: none;
    width: 100%;
  }

  .top_nav_left {
    width: 100%;
  }

  /* Reduce nav item padding for stacked mobile menu */
  .navbar-nav > li > a {
    padding: 10px 16px;
  }

  /* Hours: allow text to wrap naturally at small sizes */
  .hours-days,
  .hours-time {
    white-space: normal;
  }
}
