/**
 * Feed, catalog, and submission-view styling.
 * Netflix-grade visual treatment: edge-to-edge hero with gradient fade,
 * rows that bleed to the viewport edge, elevated hover states on cards,
 * true near-black palette, tighter and more confident typography.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
	box-sizing: border-box;
}

body.ap-page {
	margin: 0;
	background: #0a0a0a;
	color: #e5e5e5;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

/* ============ HERO ============ */
.ap-hero {
	position: relative;
	padding: 7rem 4vw 5rem;
	background:
		radial-gradient( ellipse 80% 60% at 50% -10%, rgba(229,9,20,0.18) 0%, transparent 60% ),
		linear-gradient( 180deg, #1a0506 0%, #0a0a0a 75% );
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ap-hero-inner {
	max-width: 720px;
}

.ap-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ff3b3b;
	margin-bottom: 1rem;
}

.ap-hero h1 {
	font-size: clamp( 2.4rem, 5.5vw, 4rem );
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.04;
	margin: 0 0 1rem;
	color: #fff;
}

.ap-hero p {
	color: #b3b3b3;
	font-size: 1.15rem;
	line-height: 1.5;
	margin: 0 0 2rem;
	max-width: 540px;
}

.ap-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: #0a0a0a;
	font-weight: 700;
	font-size: 1rem;
	padding: 14px 28px;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ap-hero-cta:hover {
	background: #e50914;
	color: #fff;
	transform: translateY( -1px );
}

.ap-approval-note {
	font-size: 0.82rem;
	color: #6b6b6b;
	margin-top: 1.1rem;
}

/* ============ STATS STRIP ============ */
.ap-stats-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 3rem;
	padding: 2rem 4vw;
	background: #0e0e0e;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ap-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ap-stat-number {
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ap-stat-cat .ap-stat-number {
	color: #ff3b3b;
	font-size: 1.5rem;
}

.ap-stat-label {
	font-size: 0.75rem;
	color: #7a7a7a;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

/* ============ BODY / ROWS ============ */
.ap-feed-body {
	padding: 3rem 0 5rem;
}

.ap-row {
	margin-bottom: 3rem;
}

.ap-row-title {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 1.1rem;
	color: #fff;
	padding: 0 4vw;
}

.ap-row-empty {
	color: #6b6b6b;
	font-style: italic;
	padding: 1.75rem 4vw;
	background: rgba(255,255,255,0.025);
	font-size: 0.95rem;
	margin: 0 4vw;
	border-radius: 6px;
}

.ap-row-scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 8px 4vw 28px;
	scrollbar-width: thin;
}

.ap-row-scroll::-webkit-scrollbar { height: 5px; }
.ap-row-scroll::-webkit-scrollbar-track { background: transparent; }
.ap-row-scroll::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
.ap-row-scroll::-webkit-scrollbar-thumb:hover { background: #e50914; }

/* ============ CARDS ============ */
.ap-card {
	flex: 0 0 260px;
	height: 150px;
	background: linear-gradient( 145deg, #1c1c1c 0%, #131313 100% );
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 6px;
	padding: 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	text-decoration: none;
	color: #fff;
	transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease, z-index 0s;
	scroll-snap-align: start;
	position: relative;
}

.ap-card:hover {
	transform: scale( 1.08 ) translateY( -6px );
	border-color: rgba(229,9,20,0.6);
	box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(229,9,20,0.3);
	z-index: 5;
}

.ap-card-cat {
	display: inline-block;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #ff5252;
	background: rgba(229,9,20,0.14);
	padding: 3px 9px;
	border-radius: 3px;
	align-self: flex-start;
	margin-bottom: auto;
}

.ap-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	letter-spacing: -0.005em;
}

.ap-card-author {
	font-size: 0.76rem;
	color: #8a8a8a;
	font-weight: 500;
}

/* ============ CATALOG GRID ============ */
.ap-catalog-section {
	padding: 0 4vw 5rem;
}

.ap-catalog-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 18px;
}

.ap-catalog-card {
	background: linear-gradient( 145deg, #1c1c1c 0%, #131313 100% );
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	padding: 1.6rem;
	text-decoration: none;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.ap-catalog-card:hover {
	transform: translateY( -4px );
	border-color: rgba(229,9,20,0.5);
	box-shadow: 0 16px 32px -8px rgba(0,0,0,0.6);
}

.ap-catalog-card h3 {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
	color: #fff;
}

.ap-catalog-card p {
	color: #9a9a9a;
	font-size: 0.92rem;
	margin: 0;
	line-height: 1.55;
}

/* ============ SUBMISSION VIEW ============ */
.ap-submission-view {
	max-width: 760px;
	margin: 0 auto;
	padding: 4rem 4vw 5rem;
}

.ap-submission-header {
	margin-bottom: 2.75rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ap-submission-header h1 {
	font-size: clamp( 1.9rem, 4vw, 2.5rem );
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #fff;
	margin: 0.85rem 0 0.6rem;
	line-height: 1.1;
}

.ap-submission-meta {
	color: #8a8a8a;
	font-size: 0.95rem;
	margin: 0;
}

.ap-submission-answers {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.ap-answer {
	background: rgba(255,255,255,0.025);
	padding: 1.4rem 1.6rem;
	border-radius: 8px;
	border-left: 3px solid #e50914;
}

.ap-answer-label {
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #9a9a9a;
	margin-bottom: 0.6rem;
}

.ap-answer-value {
	font-size: 1.06rem;
	line-height: 1.75;
	color: #e5e5e5;
}

.ap-submission-footer {
	margin-top: 3rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255,255,255,0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.ap-back-link {
	color: #ff5252;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	transition: color 0.15s ease;
}

.ap-back-link:hover {
	color: #fff;
}

.ap-back-link-top {
	display: inline-block;
	margin-bottom: 1.75rem;
}

/* ============ SHARE BUTTONS ============ */
.ap-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	color: #ddd;
	font-size: 0.86rem;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ap-share-btn:hover {
	background: rgba(229,9,20,0.15);
	border-color: rgba(229,9,20,0.5);
	color: #fff;
}

.ap-share-btn.ap-share-copied {
	background: rgba(46,160,67,0.15);
	border-color: rgba(46,160,67,0.5);
	color: #7ee08a;
}

.ap-share-btn-icon {
	font-size: 0.9rem;
}

/* ============ RESPONSIVE ============ */
@media ( max-width: 700px ) {
	.ap-hero { padding: 4.5rem 5vw 3rem; }
	.ap-stats-strip { padding: 1.5rem 5vw; gap: 2rem; }
	.ap-row-title, .ap-row-scroll, .ap-row-empty { padding-left: 5vw; padding-right: 5vw; }
	.ap-row-empty { margin: 0 5vw; }
	.ap-catalog-section { padding: 0 5vw 3rem; }
	.ap-card { flex-basis: 220px; height: 135px; }
	.ap-submission-view { padding: 2.5rem 5vw; }
}
