/* ============================================================
   BookNova.ai front page — /tutorials/ (community video tutorials)
   Loaded by index.php only when the page include is tutorials.php.
   All classes are tut-* on purpose: the app's /guide/ page has its own
   guide-* styles (App/css/guide.css) and the two must stay independent.
   Uses the site's dark-theme tokens from index.php / style.css.
   ============================================================ */

.tut-page { padding: 100px 0 60px; }
.tut-page .container { max-width: 1100px; }

/* ---- hero ---- */
.tut-hero { text-align: center; margin-bottom: 2rem; }
.tut-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem .9rem;
	margin-bottom: 1rem;
	border: 1px solid rgba(223, 16, 140, .45);
	border-radius: 999px;
	background: rgba(223, 16, 140, .12);
	color: #ff7ac6;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tut-badge .material-icons { font-size: 16px; }
.tut-hero h1 {
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.15;
	margin-bottom: .75rem;
}
.tut-hero p {
	font-size: 1.2rem;
	color: var(--text-secondary);
	max-width: 640px;
	margin: 0 auto;
}

/* ---- "not made by us" notice ----
   Amber, not the pink brand accent: this is the one block on the page that
   must not read as BookNova marketing. It sits above the grid. */
.tut-notice {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem 1.4rem;
	margin: 0 auto 1.75rem;
	max-width: 900px;
	background: rgba(245, 158, 11, .08);
	border: 1px solid rgba(245, 158, 11, .4);
	border-radius: 14px;
}
.tut-notice > .material-icons { color: #fbbf24; font-size: 26px; flex-shrink: 0; }
.tut-notice-title { font-size: 1.05rem; font-weight: 700; color: #fcd34d; margin-bottom: .35rem; }
.tut-notice p { font-size: .95rem; line-height: 1.65; color: #e7d7b0; }

/* ---- topic chips (jump links) ---- */
.tut-topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-bottom: 2.25rem;
}
.tut-topic-chip {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .45rem .9rem;
	background: var(--dark-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 999px;
	color: var(--text-secondary);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.tut-topic-chip .material-icons { font-size: 17px; color: #ef4444; }
.tut-topic-chip:hover { border-color: var(--accent-primary); color: var(--text-primary); }

/* ---- grid + card ---- */
.tut-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}
.tut-card {
	display: flex;
	flex-direction: column;
	background: var(--dark-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 16px;
	overflow: hidden;
	scroll-margin-top: 90px; /* clears the fixed top bar on #anchor jumps */
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tut-card:hover {
	border-color: rgba(223, 16, 140, .6);
	box-shadow: 0 12px 30px rgba(223, 16, 140, .12);
}
.tut-card-highlight {
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(223, 16, 140, .35), 0 12px 30px rgba(223, 16, 140, .2);
}

/* ---- click-to-play facade ---- */
.tut-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}
.tut-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* crops hqdefault letterbox bars back to 16:9 */
	display: block;
	transition: transform .3s ease;
}
.tut-thumb:hover img { transform: scale(1.03); }
.tut-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(220, 38, 38, .94);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
	transition: transform .18s ease, background .18s ease;
}
.tut-play .material-icons { color: #fff; font-size: 40px; margin-left: 3px; }
.tut-thumb:hover .tut-play { transform: scale(1.08); background: #dc2626; }
.tut-flag {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	background: rgba(0, 0, 0, .78);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
}
.tut-flag .material-icons { font-size: 14px; }

/* the iframe swapped in on click keeps the 16:9 box */
.tut-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.tut-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- card body ---- */
.tut-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.2rem 1.3rem 1.3rem;
}
.tut-topic {
	margin-bottom: .45rem;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tut-title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: .55rem; }
.tut-title a { color: var(--text-primary); text-decoration: none; }
.tut-title a:hover { color: #ff7ac6; text-decoration: underline; }
.tut-blurb { font-size: .93rem; line-height: 1.65; color: var(--text-tertiary); margin-bottom: 1rem; }

/* standing "Watch on YouTube" — red: the one control on the card that leaves the site */
.tut-watch {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 1rem;
	padding: .5rem .85rem;
	background: rgba(220, 38, 38, .12);
	border: 1px solid rgba(239, 68, 68, .45);
	border-radius: 9px;
	color: #f87171;
	font-size: .82rem;
	font-weight: 700;
	text-decoration: none;
	transition: all .18s ease;
}
.tut-watch:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.tut-watch .material-icons { font-size: 18px; }
.tut-watch .tut-watch-ext { font-size: 14px; opacity: .75; }

/* ---- byline (repeated per card on purpose) ---- */
.tut-by {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin-top: auto;
	padding: .75rem .9rem;
	background: var(--dark-primary);
	border: 1px solid var(--border-primary);
	border-radius: 12px;
}
.tut-avatar {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(220, 38, 38, .15);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tut-avatar .material-icons { color: #ef4444; font-size: 20px; }
.tut-by-text { flex: 1 1 auto; min-width: 0; }
.tut-byline { font-size: .88rem; font-weight: 600; color: var(--text-secondary); }
.tut-byline a { color: #ff7ac6; text-decoration: none; }
.tut-byline a:hover { text-decoration: underline; }
.tut-bynote { font-size: .75rem; color: #8a8a8a; margin-top: 1px; }
.tut-channel {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: .45rem .75rem;
	background: var(--dark-elevated);
	border: 1px solid var(--border-primary);
	border-radius: 9px;
	color: var(--text-secondary);
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
	transition: all .18s ease;
}
.tut-channel:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.tut-channel .material-icons { font-size: 15px; }

/* ---- cross-links to the app's written guides ---- */
.tut-guides {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-top: .9rem;
}
.tut-guides-label {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8a8a8a;
}
.tut-guidelink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: .35rem .75rem;
	background: rgba(223, 16, 140, .1);
	border: 1px solid rgba(223, 16, 140, .25);
	border-radius: 999px;
	color: #ff9ad4;
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}
.tut-guidelink:hover { background: rgba(223, 16, 140, .22); color: #fff; }
.tut-guidelink .material-icons { font-size: 16px; }

/* ---- submit-your-video strip ---- */
.tut-submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
	padding: 1.25rem 1.4rem;
	background: var(--dark-secondary);
	border: 1px dashed rgba(223, 16, 140, .5);
	border-radius: 16px;
}
.tut-submit > .material-icons { color: var(--accent-primary); font-size: 30px; }
.tut-submit > div { flex: 1 1 260px; }
.tut-submit-title { font-size: 1.05rem; font-weight: 700; }
.tut-submit p { font-size: .92rem; color: var(--text-tertiary); margin-top: 2px; }
.tut-submit-btn {
	display: inline-block;
	padding: .65rem 1.3rem;
	border: 1px solid var(--accent-primary);
	border-radius: 10px;
	color: var(--text-primary);
	font-size: .92rem;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease;
}
.tut-submit-btn:hover { background: rgba(223, 16, 140, .18); }

/* ---- written-guide index ---- */
.tut-more { margin-top: 2.75rem; text-align: center; }
.tut-more-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.tut-more-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.tut-more-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem .95rem;
	background: var(--dark-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 10px;
	color: var(--text-secondary);
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.tut-more-link .material-icons { font-size: 18px; color: var(--accent-light); }
.tut-more-link:hover { border-color: var(--accent-primary); color: var(--text-primary); }

/* ---- bottom CTA ---- */
.tut-cta {
	margin-top: 2.75rem;
	padding: 2.25rem 1.5rem;
	text-align: center;
	background: linear-gradient(135deg, rgba(223, 16, 140, .15), rgba(255, 115, 15, .12));
	border: 1px solid var(--accent-primary);
	border-radius: 18px;
}
.tut-cta h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.tut-cta p { color: var(--text-secondary); margin-bottom: 1.3rem; }
.tut-cta-btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
	border-radius: 10px;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(223, 16, 140, .3);
}

/* ---- responsive ---- */
@media (max-width: 900px) {
	.tut-grid { grid-template-columns: 1fr; }
	.tut-hero h1 { font-size: 2.4rem; }
}
@media (max-width: 560px) {
	.tut-page { padding: 80px 0 40px; }
	.tut-hero h1 { font-size: 2rem; }
	.tut-hero p { font-size: 1.05rem; }
	.tut-notice { padding: 1rem; gap: .75rem; }
	.tut-by { flex-wrap: wrap; }
	.tut-channel { width: 100%; justify-content: center; }
	.tut-submit { padding: 1rem; }
	.tut-submit-btn { width: 100%; text-align: center; }
	.tut-cta h2 { font-size: 1.5rem; }
}
