/**
 * Grid Layout Styles
 *
 * @package Supposedly_News
 */

/* Main newspaper grid */
.newspaper-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

/* Two-column layout with sidebar */
.content-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Hero area */
.hero-area {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto 2.5rem;
	border-bottom: 3px double var(--wp--preset--color--ink, #1A1A1A);
	padding-bottom: 2.5rem;
}

.hero-area .hero-main {
	border-right: 1px solid var(--wp--preset--color--light-gray, #E5E2DB);
	padding-right: 2rem;
}

.hero-area .hero-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Story cards */
.story-card {
	border-bottom: 1px solid var(--wp--preset--color--light-gray, #E5E2DB);
	padding-bottom: 1.5rem;
}

.story-card--featured {
	grid-column: span 2;
}

.story-card__image {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin-bottom: 0.75rem;
}

.story-card__category {
	margin-bottom: 0.5rem;
}

.story-card__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

.story-card__title a {
	color: inherit;
	text-decoration: none;
}

.story-card__title a:hover {
	color: var(--wp--preset--color--editorial-red, #B22222);
}

.story-card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--medium-gray, #6B6B6B);
}

.story-card__meta {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.75rem;
	color: var(--wp--preset--color--medium-gray, #6B6B6B);
	margin-top: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Section rows */
.section-row {
	max-width: 1200px;
	margin: 2.5rem auto;
}

.section-row__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid var(--wp--preset--color--ink, #1A1A1A);
	padding-bottom: 0.5rem;
}

.section-row__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 900;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
	margin: 0;
}

.section-row__line {
	flex: 1;
	height: 0;
	border-top: 1px solid var(--wp--preset--color--light-gray, #E5E2DB);
}

.section-row__grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 2rem;
}

/* Tablet: 2 columns */
@media (max-width: 960px) {
	.newspaper-grid,
	.section-row__grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.content-with-sidebar {
		grid-template-columns: 1fr;
	}

	.hero-area {
		grid-template-columns: 1fr;
	}

	.hero-area .hero-main {
		border-right: none;
		padding-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--light-gray, #E5E2DB);
		padding-bottom: 1.5rem;
	}

	.story-card--featured {
		grid-column: span 2;
	}
}

/* Mobile: 1 column */
@media (max-width: 600px) {
	.newspaper-grid,
	.section-row__grid {
		grid-template-columns: 1fr !important;
	}

	.hero-area {
		padding: 0;
	}

	.story-card--featured {
		grid-column: span 1;
	}

	.content-with-sidebar,
	.section-row {
		padding: 0;
	}
}
