/* Games by James - Main Stylesheet
    Cleaned & Optimized with Accessibility Enhancements
*/

@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);
}

/* Unified Store Info Styles */
.card-store-hours,
.card-store-landmark {
  background: #fff;
  border-radius: 12px;
}

.card-store-hours {
  padding: 15px;
  border: 1px solid #eee;
  color: var(--both-gray);
  /* border-right is inherited from above */
}

/* --- Interactive Elements --- */
.map-overlay-text {
  display: flex;
  justify-content: space-between;
  align-items: normal;
  padding: 15px;
  background: white;
  border-top: 1px solid var(--both-gray);
}

.call-button-text {
  display: block;
  margin-bottom: 10px;
  padding: 20px;
  color: var(--gbj-red);
  justify-content: space-between;
}

/* --- Read More & Details (Accordion) --- */
summary {
  list-style: none; /* Hides default arrow in modern browsers */
  outline: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none; /* Hides arrow in Safari */
}

.read-more-text,
summary {
  display: inline-block;
  padding: 8px 0; /* Better mobile tap target */
  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;
}

/* State Logic for +/- 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) --- */

/* 1. Specifically for the Card - Box Shadow follows the 12px corners */
.gbj-card-action:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 4px var(--gbj-gold);
  position: relative; /* Ensures the shadow isn't hidden by siblings */
  z-index: 5;
}

/* 2. For Text/Links - Outline works best here */
summary:focus-visible,
.read-more-text:focus-visible {
  outline: 3px solid var(--gbj-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* 3. Clean up for Mouse Users */
/* This prevents a "ghost" ring if someone clicks with a mouse */
.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;
}
