/* Site baseline styles */
html,body { height: 100%; }
body { font-family: 'Poppins', Arial, sans-serif; margin: 0; background: #f5f5f5; color: #222; -webkit-font-smoothing:antialiased; }

/* Centered page container for inner content (not full-page centering) */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

h1 { font-size: 2rem; color: #333; margin: 0 0 12px 0; }
p { color: #666; margin: 0 0 12px 0; }

a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Utility */
.muted { color: #888; }

/* Footer styles matching topbar theme */
.site-footer { background: #007bff; color: #fff; padding: 10px 0 16px; }
.site-footer a { color: #fff; }
.site-footer .footer-inner { max-width:1200px; margin:0 auto; padding:0 20px; }
.site-footer .footer-grid { display:grid; grid-template-columns: repeat(5,1fr); gap:20px; align-items:start; }
.site-footer .col h4 { margin:0 0 8px 0; font-size:0.98rem; }
.site-footer .col ul { list-style:none; padding:0; margin:0; }
.site-footer .col ul li { margin:6px 0; }
.site-footer .contact .contact-line { margin:6px 0; color:rgba(255,255,255,0.9); }
.site-footer .social { margin-top:8px; display:flex; gap:8px; }
/* Use direct image icons (no button background). The anchor wraps the img only. */
.site-footer .social-link { display:inline-block; padding:0; margin:0; background:transparent; border-radius:0; text-decoration:none; line-height:0; }
.site-footer .social-link img { display:block; width:22px; height:22px; object-fit:contain; transition: transform 140ms ease, opacity 140ms ease; }
.site-footer .social-link:hover img, .site-footer .social-link:focus img { transform: translateY(-3px) scale(1.05); opacity:0.95; }
.site-footer .social-link:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
/* brand color accents (subtle) */
.site-footer .social-fb:hover { background: rgba(59,89,152,0.12); }
.site-footer .social-tw:hover { background: rgba(29,161,242,0.12); }
.site-footer .social-ig:hover { background: rgba(225,48,108,0.12); }
.site-footer .newsletter { margin:18px 0; display:flex; justify-content:center; }
.site-footer .newsletter form { display:flex; gap:8px; max-width:600px; width:100%; flex-direction: column; }
.site-footer .newsletter input[type=email] { flex:1; padding:10px 12px; border-radius:6px; border:1px solid rgba(255,255,255,0.12); background:rgba(255,255,255,0.06); color:#fff; }
.site-footer .newsletter button { padding:10px 14px; border-radius:6px; border:none; background:#ff9900; color:#111; font-weight:700; cursor:pointer; }
.site-footer .footer-bottom { display:flex; justify-content:space-between; gap:12px; align-items:center; font-size:0.85rem; color:rgba(255,255,255,0.9); padding-top:12px; border-top:1px solid rgba(255,255,255,0.06); }
.site-footer .small-links a { color:rgba(255,255,255,0.9); }

/* Header / topbar styles (centralized so all pages share the same look) */
.topbar { background: #007bff; color: #fff; padding: 10px 0; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.logo-box { background: #fff; padding: 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.08); width: 44px; height: 44px; }
.logo-box img { max-height: 32px; width: auto; display: block; }
.logo-text { color: #fff; font-weight: 700; font-size: 1rem; display: none; }
.top-menu { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.top-menu a { color: #fff; text-decoration: none; font-weight: 600; padding: 6px 8px; border-radius: 6px; }
.top-menu label { display: inline-flex; align-items: center; }
.top-menu select#stateSelect { max-width: 140px; min-width: 80px; padding:6px 8px; border-radius:6px; border:1px solid rgba(255,255,255,0.12); background:rgba(255,255,255,0.06); color:#fff; font-weight:600; }
/* replicate previous inline browse link styling and state selector spacing */
.top-menu #browseLink { background: rgba(255,255,255,0.12); padding:8px 12px; border-radius:6px; }
.top-menu label[for="stateSelect"], .top-menu > label { display:inline-block; margin-left:8px; }
.search-wrap { flex: 1 1 480px; display: flex; justify-content: center; min-width: 0; }
.searchbar { width: 100%; max-width: 680px; display: flex; gap: 8px; }
.searchbar input[type=text] { flex: 1; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.12); color: #fff; }
.searchbar input[type=text]::placeholder { color: rgba(255,255,255,0.85); }
.searchbar button { padding: 10px 12px; border-radius: 6px; border: none; background: #ff9900; color: #111; font-weight: 700; cursor: pointer; }

@media (min-width: 900px) {
	.logo-text { display: inline-block; }
	.logo-box { width: 56px; height: 56px; }
	.logo-box img { max-height: 40px; }
	.topbar-inner { padding: 10px 20px; }
	.search-wrap { flex: 1 1 560px; }
}

@media (max-width: 900px) {
	.topbar-inner { flex-direction: column; align-items: center; gap: 8px; }
	.logo { width: 100%; justify-content: center; }
	.top-menu { width: 100%; justify-content: center; flex-wrap: wrap; }
	.top-menu a, .top-menu #browseLink { margin: 4px 6px; }
	.top-menu label { width: 100%; display:flex; justify-content:center; margin-top:6px; }
	.top-menu select#stateSelect { max-width: 220px; width: 90%; }
	.search-wrap { order: 2; width: 100%; padding: 8px 12px; }

	/* Make the search input/button less tall on mobile */
	.searchbar input[type=text] { padding: 8px 10px; }
	.searchbar button { padding: 8px 10px; }
}

@media (max-width:900px){
	.site-footer .footer-grid { grid-template-columns:repeat(2,1fr); }
	.site-footer .footer-bottom { flex-direction:column; align-items:center; gap:8px; }
}

@media (max-width:600px){
	.site-footer .footer-grid { grid-template-columns:1fr; }
	.site-footer .newsletter { padding:0 10px; }
	.site-footer .newsletter form { flex-direction: column; }
	.site-footer .newsletter input[type=email] { width: 100%; }
	.site-footer .newsletter button { width: 100%; padding: 12px 14px; }
}

/* Fixed-height topbar for mobile: ensures consistent compact header on small screens */
@media (max-width: 600px) {
	.topbar { height: 270px; padding: 0; }
	.topbar-inner { height: 100%; display:flex; align-items:center; padding: 0 12px; gap:10px; }
	/* make children respect the limited height */
	.logo-box { width: 36px; height: 36px; padding:2px; }
	/* nudge logo down slightly so it aligns visually with search row */
	.logo { padding-top: 6px; }
	.logo-box img { max-height: 28px; }
	.search-wrap { height: 100%; display:flex; align-items:center; }
	/* ensure input and button have identical heights and box-sizing */
	.searchbar input[type=text], .searchbar button { height: 34px; box-sizing: border-box; }
	.searchbar input[type=text] { padding:6px 8px; }
	.searchbar button { padding:6px 8px; }
	.top-menu select#stateSelect { height: 34px; }

	/* center the state dropdown on small screens (force overrides for inline attrs) */
	.top-menu { width: 100% !important; display:flex !important; justify-content:center !important; }
	.top-menu label { width: 100% !important; display:flex !important; justify-content:center !important; }
	.top-menu > label[for="stateSelect"] { display:flex !important; width:100% !important; justify-content:center !important; margin:0 !important; padding:0 !important; }
	.top-menu > label[for="stateSelect"] select#stateSelect,
	.top-menu select#stateSelect { display:block !important; margin: 6px auto !important; width: 90% !important; max-width: 220px !important; }
}

/* About page specific styles */
.about-hero { background: #fff; padding: 28px 0; }
.about-hero .container { padding-top: 4px; padding-bottom: 4px; }
.tagline { font-size: 1.15rem; color: #222; margin-bottom: 1rem; font-weight: 600; line-height: 1.1; }
.about-card { background:#fff; padding:18px; border-radius:8px; box-shadow:0 1px 6px rgba(0,0,0,0.04); margin-bottom:16px; }
.about-cta { text-align:center; margin-top:12px; }
.about-cta a { display:inline-block; padding:10px 16px;  color:#fff; border-radius:6px; text-decoration:none; font-weight:700; }

/* center only the main about H1 inside the about card */
.about-card > h1 { text-align: center; }

/* store buttons */
.store-buttons { display:flex; gap:12px; justify-content:center; align-items:center; margin-top:12px; }
.store-btn { display:inline-flex; gap:8px; align-items:center; padding:12px 18px; border-radius:10px; color:#fff; text-decoration:none; font-weight:700; transition:box-shadow 120ms ease, transform 120ms ease; }
.store-btn .icon { width:20px; height:20px; display:inline-block; }
.store-btn.play { background:#1f8ef1; }
.store-btn.apple { background:#000; }
/* store button images: larger and remove native outlines */
/* keep a subtle focus ring on the link itself for keyboard users */
.store-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
.store-btn img { height:56px; width:auto; display:block; border: none; outline: none; -webkit-tap-highlight-color: transparent; }
.store-btn img, .store-btn img:focus { outline: none; border: none; }
@media (max-width:480px){ .store-btn { padding:10px 12px; } .store-btn img { height:44px; } }

/* subtle lift & scale hover for store buttons to match social icons */
.store-btn img { transition: transform 140ms ease, opacity 140ms ease; }
.store-btn:hover img, .store-btn:focus img { transform: translateY(-3px) scale(1.02); opacity:0.98; }


/* Category chips (small buttons with thumbnail) */
.category-grid {
	display: grid;
	/* safer fixed columns using minmax to prevent overflow and overlapping */
	grid-template-columns: repeat(4, minmax(0, 220px));
	justify-content: center;
	gap: 16px;
	margin-top: 8px;
	grid-auto-rows: 1fr;
}
.category-chip {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	background: #fff;
	padding: 8px 10px;
	border-radius: 12px;
	box-shadow: 0 1px 6px rgba(0,0,0,0.06);
	cursor: pointer;
	text-decoration: none;
	color: #111;
	box-sizing: border-box;
	width: 100%;
	min-height: 58px;
	max-width: 220px; /* keep chip narrower */
}
.category-chip img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 8px;
	flex: 0 0 auto;
}
.category-chip .cat-title {
	font-weight: 600;
	margin: 0;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1 1 auto;
}

@media (max-width:1200px){
	.category-grid { grid-template-columns: repeat(3, 200px); }
	.category-chip { max-width: 200px; }
}
@media (max-width:900px){
	.category-grid { grid-template-columns: repeat(2, 180px); }
	.category-chip { max-width: 180px; }
	.category-chip img { width:36px; height:36px; }
}
@media (max-width:600px){
	.category-grid { grid-template-columns: repeat(1, 1fr); justify-content: stretch; }
	.category-chip { max-width: 100%; }
	.category-chip img { width:32px; height:32px; }
}

/* Truncate card descriptions to a maximum of 3 lines to keep cards consistent */
.card-desc, .meta {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Contact form styles to match site look */
.contact-form { display: block; margin-top: 12px; }
.contact-form .form-row { margin-bottom: 12px; display:flex; flex-direction:column; }
.contact-form label { font-weight:600; margin-bottom:6px; color:#333; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { padding:10px 12px; border-radius:8px; border:1px solid #e6e6e6; background:#fff; color:#222; font-size:0.95rem; }
.contact-form textarea { min-height:110px; resize:vertical; }
.btn-primary { display:inline-block; background:#007bff; color:#fff; padding:10px 14px; border-radius:8px; border:none; font-weight:700; cursor:pointer; }
.btn-primary:active { transform:translateY(1px); }

@media (max-width:900px) {
  .contact-form input, .contact-form textarea { font-size:0.95rem; }
}
