/*
Theme Name: Okay Magazine
Theme URI: https://example.com
Author: Fernando Silva
Description: Tema editorial estilo revista para blog de famosos, música, TV & streaming, cinema e cultura pop. Inspirado no layout "OKAY!".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: okay-magazine
*/

/* ==========================================================================
   Reset básico
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: #ffffff;
	color: #111111;
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: 'Montserrat', Arial, sans-serif; }

.container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 64px;
}

/* ==========================================================================
   Cores
   ========================================================================== */
:root {
	--okay-black: #111111;
	--okay-maroon: #7a1f2b;
	--okay-line: #111111;
	--okay-muted: #555555;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	border-top: 1px solid var(--okay-line);
	border-bottom: 1px solid var(--okay-line);
	padding: 28px 0;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-branding {
	text-align: center;
	flex: 0 0 auto;
}
.site-branding a { display: block; }
.site-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 800;
	font-size: 64px;
	line-height: 1;
	letter-spacing: 1px;
	margin: 0;
}
.site-description { display: none; }

.custom-logo, .site-logo-fallback {
	max-height: 64px;
	width: auto;
	display: block;
	margin: 0 auto;
}
.footer-brand .custom-logo, .footer-brand .site-logo-fallback {
	max-height: 48px;
	margin: 0 0 10px;
}

/* ==========================================================================
   Menu mobile
   ========================================================================== */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	padding: 8px;
	flex: 0 0 auto;
}
.mobile-menu-toggle span {
	width: 26px;
	height: 2px;
	background: var(--okay-black);
	display: block;
}
.mobile-menu-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--okay-black);
	color: #fff;
	z-index: 9999;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 36px;
	padding: 32px;
	text-align: center;
}
.mobile-menu-overlay.is-open { display: flex; }
.mobile-menu-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	line-height: 1;
}
.mobile-menu-logo .custom-logo,
.mobile-menu-logo .site-logo-fallback { margin: 0 auto; }
.mobile-navigation ul {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}
.mobile-navigation a {
	font-size: 20px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 600;
	color: #fff;
}
.mobile-menu-search form {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid #fff;
	padding-bottom: 4px;
}
.mobile-menu-search input[type="search"] {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 14px;
	outline: none;
}
.mobile-menu-search button {
	background: none;
	border: none;
	color: #fff;
}

.main-navigation { flex: 1 1 0; }
.main-navigation ul {
	display: flex;
	gap: 40px;
	align-items: center;
}
.main-navigation.nav-left ul { justify-content: flex-start; }
.main-navigation.nav-right { display: flex; align-items: center; gap: 40px; justify-content: flex-end; }
.main-navigation a {
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 600;
}
.main-navigation a:hover { color: var(--okay-maroon); }

.header-search { flex: 0 0 auto; }
.header-search form {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid var(--okay-black);
	padding-bottom: 2px;
}
.header-search input[type="search"] {
	border: none;
	outline: none;
	font-size: 13px;
	width: 150px;
	background: transparent;
}
.header-search button {
	border: none;
	background: none;
	font-size: 16px;
	line-height: 1;
	padding: 0;
}

.site-ticker {
	border-bottom: 1px solid var(--okay-line);
	padding: 20px 0;
	text-align: center;
}
.site-ticker p {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-style: italic;
	font-size: 26px;
	margin: 0;
}

/* ==========================================================================
   Category badge
   ========================================================================== */
.cat-badge {
	display: inline-block;
	background: var(--okay-maroon);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 6px 14px;
	margin-bottom: 14px;
}

/* ==========================================================================
   Homepage — layout principal
   ========================================================================== */
.home-hero {
	padding-top: 56px;
	padding-bottom: 40px;
	display: grid;
	grid-template-columns: 260px 1fr 320px;
	gap: 40px;
	align-items: start;
}

/* Sidebar Recentes */
.recentes-sidebar h2 {
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 800;
	font-size: 28px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 24px;
}
.recentes-item { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #ddd; }
.recentes-item:last-child { border-bottom: none; }
.recentes-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 12px; }
.recentes-item .cat-badge { font-size: 11px; padding: 5px 10px; margin-bottom: 10px; }
.recentes-item h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 19px;
	line-height: 1.25;
	font-weight: 700;
}
.recentes-item h3 a:hover { color: var(--okay-maroon); }

/* Hero central */
.hero-main-post img { width: 100%; aspect-ratio: 16/12; object-fit: cover; margin-bottom: 20px; }
.hero-main-post h1 {
	font-size: 44px;
	line-height: 1.1;
	font-weight: 800;
}
.hero-main-post h1 a:hover { color: var(--okay-maroon); }

/* Coluna direita */
.hero-side-posts { display: flex; flex-direction: column; gap: 20px; }
.hero-side-item img { width: 100%; aspect-ratio: 16/11; object-fit: cover; margin-bottom: 14px; }
.hero-side-item .cat-badge { font-size: 11px; padding: 5px 10px; margin-bottom: 10px; }
.hero-side-item h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
}
.hero-side-item h3 a:hover { color: var(--okay-maroon); }

/* ==========================================================================
   Carrossel por categoria
   ========================================================================== */
.category-carousel { padding-top: 40px; padding-bottom: 40px; }
.carousel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 2px solid var(--okay-line);
	border-bottom: 1px solid var(--okay-line);
	padding: 18px 0;
	margin-bottom: 32px;
}
.carousel-heading h2 {
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 800;
	font-size: 28px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.carousel-nav { display: flex; gap: 12px; }
.carousel-nav button {
	background: none;
	border: 1px solid var(--okay-black);
	width: 40px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: background .15s, color .15s;
}
.carousel-nav button:hover { background: var(--okay-black); color: #fff; }

.carousel-track {
	display: flex;
	gap: 40px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
	flex: 0 0 calc((100% - 80px) / 3);
	scroll-snap-align: start;
	border-bottom: 1px solid #ccc;
	padding-bottom: 20px;
}
.carousel-card img { width: 100%; aspect-ratio: 16/11; object-fit: cover; margin-bottom: 16px; }
.carousel-card h3 {
	font-size: 22px;
	line-height: 1.25;
	margin-bottom: 10px;
}
.carousel-card h3 a:hover { color: var(--okay-maroon); }
.carousel-card .excerpt {
	font-size: 13px;
	color: var(--okay-muted);
	line-height: 1.6;
	margin-bottom: 16px;
}
.carousel-card .meta {
	display: flex;
	gap: 16px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

@media (max-width: 960px) {
	.carousel-card { flex: 0 0 calc((100% - 40px) / 2); }
}
@media (max-width: 640px) {
	.carousel-card { flex: 0 0 100%; }
}

/* ==========================================================================
   CTA versão digital
   ========================================================================== */
.digital-cta {
	padding-top: 56px;
	padding-bottom: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.digital-cta-text {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 44px;
	line-height: 1.2;
	max-width: 620px;
}
.digital-cta-text strong { display: block; font-weight: 800; }
.digital-cta-cover img { width: 260px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	border-top: 1px solid var(--okay-line);
	padding-top: 48px;
	padding-bottom: 48px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 32px;
}
.footer-brand .site-title { font-size: 40px; margin-bottom: 10px; }
.footer-tagline {
	font-size: 13px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--okay-muted);
	line-height: 1.6;
}
.site-footer h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	margin-bottom: 16px;
}
.footer-categories li, .footer-contact li { margin-bottom: 10px; }
.footer-categories a, .footer-contact a { font-size: 14px; }
.footer-categories a:hover, .footer-contact a:hover { color: var(--okay-maroon); }
.site-footer-bottom {
	border-top: 1px solid #ddd;
	padding: 20px 0;
	text-align: center;
	font-size: 12px;
	color: var(--okay-muted);
}

/* ==========================================================================
   Post individual
   ========================================================================== */
.single-post-header {
	text-align: center;
	padding: 48px 0 24px;
	max-width: 900px;
	margin: 0 auto;
}
.single-post-header .cat-badge { margin-bottom: 20px; }
.single-post-header h1 {
	font-size: 52px;
	line-height: 1.15;
}
.single-post-meta {
	max-width: 1440px;
	margin: 24px auto 0;
	padding: 0 64px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--okay-line);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 700;
}
.single-post-meta .meta-left { display: flex; gap: 20px; }
.single-featured-image { margin: 32px 0; }
.single-featured-image img { width: 100%; max-height: 640px; object-fit: cover; }

.single-layout {
	padding-bottom: 56px;
}
.recentes-bottom {
	padding-top: 48px;
	padding-bottom: 56px;
	border-top: 1px solid var(--okay-line);
}
.recentes-bottom h2 {
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 800;
	font-size: 28px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 24px;
}
.recentes-bottom-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}
.single-content {
	font-size: 17px;
	line-height: 1.85;
	max-width: 820px;
}
.single-content p:first-of-type::first-letter {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 72px;
	font-weight: 800;
	float: left;
	line-height: .8;
	margin: 8px 12px 0 0;
}
.single-content h2 { font-size: 22px; margin: 32px 0 12px; }
.single-content p { margin: 0 0 20px; }

/* Comentários */
.comments-area { max-width: 820px; margin-top: 48px; }
.comments-area h2 {
	font-weight: 800;
	font-size: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-top: 1px solid var(--okay-line);
	padding-top: 24px;
	margin-bottom: 24px;
}
.comment-form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.comment-form-row p { flex: 1; margin: 0; }
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area textarea {
	width: 100%;
	border: 1px solid var(--okay-black);
	padding: 12px 14px;
	font-size: 14px;
	outline: none;
}
.comments-area textarea { min-height: 120px; resize: vertical; }
.comments-area .form-submit { margin-top: 8px; }
.comments-area .form-submit input {
	background: var(--okay-black);
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 700;
}
.comment-list { list-style: none; margin: 32px 0 0; padding: 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid #ddd; }
.comment-author { font-weight: 700; font-size: 13px; text-transform: uppercase; margin-right: 10px; }
.comment-date { font-size: 12px; color: var(--okay-muted); }

/* Leia mais */
.related-posts { margin-top: 48px; }
.related-posts h2 {
	font-weight: 800;
	font-size: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-top: 1px solid var(--okay-line);
	padding-top: 24px;
	margin-bottom: 28px;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.related-grid img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }

/* ==========================================================================
   Genérico: páginas, arquivos, busca
   ========================================================================== */
.page-content, .archive-content, .search-content {
	padding: 56px 0;
	max-width: 820px;
	margin: 0 auto;
}
.archive-header, .search-header {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 64px;
}
.archive-title, .search-title {
	font-size: 40px;
	padding: 40px 0 24px;
	border-bottom: 1px solid var(--okay-line);
}
.archive-grid {
	max-width: 1440px;
	margin: 0 auto;
	padding: 40px 64px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}
.no-results { padding: 56px 64px; text-align: center; font-size: 18px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
	.container { padding: 0 32px; }
	.home-hero { grid-template-columns: 1fr; }
	.single-layout { grid-template-columns: 1fr; }
	.site-footer { grid-template-columns: 1fr; }
	.related-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
	.site-header .container { justify-content: space-between; }
	.main-navigation,
	.main-navigation.nav-left,
	.main-navigation.nav-right { display: none; }
	.mobile-menu-toggle { display: flex; }
	.site-branding { flex: 1 1 auto; }
	.custom-logo, .site-logo-fallback { margin: 0; max-height: 44px; }
	.site-title { font-size: 34px; }
	.hero-main-post h1, .single-post-header h1 { font-size: 30px; }
	.related-grid, .archive-grid { grid-template-columns: 1fr; }
	.digital-cta-text { font-size: 28px; }
}
