/*
Theme Name: Daily Hint Hub
Author: Matt
Description: Custom theme for Daily Hint Hub
Version: 1.0
*/





.nyt-hint-hub-hero {
	text-align: center;
	padding: 20px;
	background: var(--dark);
	color: var(--light);
}

.nyt-hint-hub-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	max-width: 600px;
	margin: 40px auto;
	padding: 0 20px;
}

.hint-hub-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--light);
	height: 200px;
	border-radius: 15px;
	transition: transform 0.3s ease;
	overflow: hidden;
}

.hint-hub-banner:hover {
	transform: scale(1.02);
}

.hint-hub-banner::before {
	content: '';
	background: rgba(0, 0, 0, .3);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hint-hub-banner:hover::before {
	background: rgba(0, 0, 0, .2);
}

.banner-content {
	position: relative;
	z-index: 1;
	text-align: center;
	text-shadow: 0 0 20px var(--dark), 0 0 30px var(--dark);
}

.connections-banner {
	background: url(/wp-content/uploads/2025/08/connections.jpg) center center;
	background-size: cover;
}

.strands-banner {
	background: url(/wp-content/uploads/2025/08/NYT-Strands.jpg) center center;
	background-size: cover;
}

.wordle-banner {
	background: linear-gradient(135deg, #6AAA64, #C9B458, #787C7E);
}

/* end of NYT HINT HUB */


/* HINTS PAGES */

.post-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	margin-bottom: 30px;
	border: 2px solid var(--lightgray);
}

body {
	--yellow: #f9df6d;
	--green: #a0c35a;
	--cblue: #b0c4ef;
	--purple: #ba81c5;
}

.wrapper {
	max-width: 700px;
	margin: auto;
	padding: 2rem;
}

article {
	width: 540px;
	max-width: 100%;
	margin: 0 auto;
	padding: 20px;
}

.hint-section {
	padding: 10px 20px;
	border-radius: 20px;
}

.connections-post {
	padding-bottom: 200px;
}

.connections-post section {
	padding: 10px 20px;
}

.hint-section ul,
.archive-accordion ul {
	list-style: none;
	display: flex;
	gap: 0 20px;
	padding-left: 20px;
	margin: 0;
}

.color-answer span {
	font-weight: normal;
}

.color-answer span::after {
	content: ',';
}

.color-answer span:last-child::after {
	display: none;
}

.faq-item {
	padding: 20px;
	border-radius: 20px;
	margin-top: 20px;
	border: 2px solid var(--shadow);
}

.faq-answer {
	margin-top: 20px;
}

.faq-answer.show {
	display: block;
}

details summary {
	cursor: pointer;
	font-weight: bold;
	font-size: 20px;
}

.hint-block {
	margin-bottom: 30px;
	color: var(--dark);
	background: var(--lightgray);
	border-radius: 12px;
	padding: 20px;
}

.hint-block p {
	margin: 10px 0;
}

.hint-block.Yellow {
	background: var(--yellow);
}

.hint-block.Green {
	background: var(--green);
}

.hint-block.Blue {
	background: var(--cblue);
}

.hint-block.Purple {
	background: var(--purple);
}

.hint-block strong {
	display: block;
	padding: 5px 0 0;
	font-size: 20px;
	font-weight: normal;
}

.hint-block button,
.faq-answer button {
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	background: var(--dark);
	color: var(--light);
	margin-top: 10px;
}

.color-answer {
	display: none;
}

.color-answer.show {
	display: block;
	font-weight: bold;
}

strong.color {
	background: var(--yellow);
	margin: 0;
	padding: 10px 20px;
	border-radius: 10px;
	display: inline-block;
	font-weight: normal;
	margin-right: 10px;
	color: #151515;
}

strong.Green {
	background: var(--green);
}

strong.Blue {
	background: var(--cblue);
}

strong.Purple {
	background: var(--purple);
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 2rem 0;
}

.grid-container .tile {
	background: #efefe6;
	padding: 28px 0;
	font-weight: bold;
	border-radius: 6px;
	cursor: pointer;
	color: #121212;
	transition: background 0.3s ease;
	width: auto;
	height: auto;
	border: none;
	font-size: 16px;
	text-align: center;
}

.grid-container .tile.revealed-yellow {
	background: var(--yellow);
}

.grid-container .tile.revealed-green {
	background: var(--green);
}

.grid-container .tile.revealed-blue {
	background: var(--cblue);
}

.grid-container .tile.revealed-purple {
	background: var(--purple);
}


.spangram-grid {
	display: flex;
	gap: 10px;
	margin: 20px 0;
	z-index: 1;
	position: relative;
}

.spangram-hint {
	padding: 20px;
	background: var(--lightgray);
	border-radius: 12px;
}

.spangram-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: gold;
	cursor: pointer;
	font-size: 24px;
	font-weight: bold;
	color: var(--dark);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;
	user-select: none;
	position: relative;
}

.spangram-circle::after {
	content: '';
	background-color: gold;
	width: 30px;
	height: 8px;
	display: block;
	position: absolute;
	left: 100%;
	z-index: -1;
}

.spangram-circle:last-of-type::after {
	display: none;
}

.spangram-circle.revealed {
	background-color: var(--dark);
	color: var(--light);
}

#revealWord {
	font-family: "Inter", sans-serif;
	padding: 10px 20px;
	border-radius: 15px;
	font-weight: bold;
	background: var(--dark);
	color: var(--light);
	text-transform: uppercase;
}

#revealedWords span {
	display: inline-block;
	margin: 20px 20px 0 0;
	background: #addfee;
	color: #000;
	padding: 10px 20px;
	border-radius: 22px;
	font-weight: 500;
	letter-spacing: 1px;
}

/* END OF HINTS PAGES */


/* BLOG CONTENT */
.blog-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding: 1rem;
	max-width: 800px;
	margin: 0 auto;
}

.blog-card {
	position: relative;
	background-size: cover;
	background-position: center;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--dark);
	border: 3px solid var(--dark-border);
	transition: transform 0.2s ease;
}

.blog-card:hover {
	transform: scale(1.02);
}

.blog-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--light);
	z-index: 1;
	opacity: .8;
}

.blog-card-content {
	position: relative;
	z-index: 2;
	padding: 1rem;
}

.blog-card-date {
	font-size: 0.9rem;
	opacity: 0.85;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.blog-card-title {
	font-size: 1.2rem;
	font-weight: 700;
}



