/*
Theme Name: RipRoar
Theme URI: https://riproarway.blog/
Author: RipRoar Media
Author URI: https://riproarway.blog/
Description: RipRoar is a fast, clean, professional blogging theme built for technology publications. It features a magazine-style homepage, sticky navigation, related posts, widgetized sidebar and footer, custom logo support, SEO-friendly markup, and full responsiveness. Built for the RipRoar technology blog (riproarway.blog).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riproar
Tags: blog, news, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options, technology
*/

/* =============================================================
   TABLE OF CONTENTS
   1.0  Reset & Base
   2.0  Typography
   3.0  Layout / Grid
   4.0  Header & Navigation
   5.0  Homepage / Featured Grid
   6.0  Posts & Archives
   7.0  Single Post
   8.0  Sidebar & Widgets
   9.0  Comments
   10.0 Forms & Buttons
   11.0 Footer
   12.0 Utilities
   13.0 Responsive
============================================================= */

/* 1.0 Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: #ffffff;
	color: #1c1f26;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #d7263d; text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: #a4101d; }
ul, ol { padding-left: 1.2em; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid #e7e7e9; margin: 2.5em 0; }
::selection { background: #ffe08a; color: #1c1f26; }

/* 2.0 Typography ---------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 800;
	line-height: 1.25;
	color: #101216;
	margin: 0 0 .5em;
	letter-spacing: -0.01em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.3em; }
.eyebrow {
	display: inline-block;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #d7263d;
	background: #fdeaec;
	padding: .25em .65em;
	border-radius: 3px;
	margin-bottom: .6em;
}
blockquote {
	margin: 1.5em 0;
	padding: .3em 1.5em;
	border-left: 4px solid #d7263d;
	font-style: italic;
	color: #4a4f59;
}
code, pre {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	background: #f4f4f6;
	border-radius: 4px;
}
code { padding: .15em .4em; font-size: .9em; }
pre { padding: 1em; overflow-x: auto; }

/* 3.0 Layout / Grid -------------------------------------------*/
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.content-area { width: 100%; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.full-width { max-width: 820px; margin: 0 auto; }

/* 4.0 Header & Navigation --------------------------------------*/
.top-bar {
	background: #101216;
	color: #d7d9dd;
	font-size: .82rem;
}
.top-bar .site-wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.top-bar a { color: #d7d9dd; }
.top-bar a:hover { color: #ffffff; }
.social-links { display: flex; gap: 14px; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: #ffffff;
	border-bottom: 1px solid #ecebee;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title { font-size: 1.7rem; margin: 0; font-weight: 900; letter-spacing: -0.02em; }
.site-title a { color: #101216; }
.site-title a span { color: #d7263d; }
.site-description { font-size: .78rem; color: #767a85; margin: 0; }
.custom-logo { max-height: 48px; width: auto; }

.main-navigation { display: flex; align-items: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 12px 16px;
	color: #1c1f26;
	font-weight: 600;
	font-size: .95rem;
}
.main-navigation a:hover { color: #d7263d; }
.main-navigation ul ul {
	display: none;
	position: absolute;
	left: 0; top: 100%;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0,0,0,.12);
	min-width: 220px;
	padding: 8px 0;
	border-radius: 6px;
}
.main-navigation li:hover > ul { display: block; }
.main-navigation ul ul a { padding: 10px 18px; font-weight: 500; }
.menu-toggle {
	display: none;
	background: none;
	border: 2px solid #101216;
	border-radius: 6px;
	padding: 8px 12px;
	font-weight: 700;
	cursor: pointer;
}
.header-search { display: flex; align-items: center; }
.header-search .searchform { display: flex; }
.header-search input[type="search"] {
	border: 1px solid #dcdde1;
	border-radius: 20px 0 0 20px;
	padding: 8px 14px;
	width: 170px;
	font-size: .9rem;
}
.header-search button {
	border: 1px solid #101216;
	background: #101216;
	color: #fff;
	border-radius: 0 20px 20px 0;
	padding: 8px 14px;
	cursor: pointer;
}

/* 5.0 Homepage / Featured Grid ----------------------------------*/
.hero-section { padding: 40px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.hero-main { position: relative; border-radius: 14px; overflow: hidden; background: #101216; min-height: 380px; display: flex; align-items: flex-end; }
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-main .hero-content { position: relative; padding: 32px; color: #fff; }
.hero-main h2 { font-size: 2rem; margin-bottom: .3em; }
.hero-main h2 a { color: #fff; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side-item { display: flex; gap: 14px; align-items: center; background: #f7f7f8; border-radius: 12px; padding: 12px; }
.hero-side-item img { width: 96px; height: 76px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.hero-side-item h3 { font-size: 1rem; margin: 0; }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 56px 0 22px; }
.section-heading h2 { margin: 0; font-size: 1.5rem; border-left: 5px solid #d7263d; padding-left: 12px; }
.section-heading a.view-all { font-size: .85rem; font-weight: 700; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.08); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-body { padding: 16px; }
.post-card h3 { font-size: 1.05rem; margin-bottom: .4em; }
.post-card h3 a { color: #101216; }
.post-card .excerpt { font-size: .88rem; color: #5c616b; margin-bottom: .5em; }

/* 6.0 Posts & Archives -------------------------------------------*/
.post-list-item { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid #eee; }
.post-list-item .thumb { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #eee; }
.post-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-meta { font-size: .82rem; color: #8a8f99; margin-bottom: .35em; }
.entry-meta a { color: #8a8f99; font-weight: 600; }
.entry-meta .cat-badge { color: #d7263d; font-weight: 700; text-transform: uppercase; font-size: .74rem; letter-spacing: .05em; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
	padding: 8px 14px; border: 1px solid #e2e2e6; border-radius: 6px; font-size: .9rem; color: #1c1f26;
}
.pagination .current { background: #101216; color: #fff; border-color: #101216; }
.page-header-block { padding: 36px 0 8px; border-bottom: 1px solid #eee; margin-bottom: 30px; }
.page-header-block .archive-desc { color: #6b6f78; }

/* 7.0 Single Post ---------------------------------------------*/
.single-hero { padding: 40px 0 0; }
.single-hero .cat-badge { color: #d7263d; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.single-hero h1 { margin: .3em 0 .4em; font-size: 2.3rem; }
.single-hero .entry-meta { font-size: .92rem; margin-bottom: 20px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.author-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.single-featured-image { border-radius: 14px; overflow: hidden; margin: 20px 0 36px; }
.entry-content { font-size: 1.08rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.3em; }
.entry-content img { border-radius: 10px; margin: 1.5em 0; }
.entry-content .wp-caption-text, figcaption { font-size: .85rem; color: #8a8f99; margin-top: .5em; text-align: center; }
.tag-links { margin: 34px 0; padding: 22px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-size: .88rem; }
.tag-links a { display: inline-block; background: #f4f4f6; padding: 5px 12px; border-radius: 16px; margin: 3px 3px; color: #1c1f26; }
.tag-links a:hover { background: #d7263d; color: #fff; }
.author-box { display: flex; gap: 18px; background: #f7f7f8; border-radius: 12px; padding: 22px; margin: 34px 0; }
.author-box img { width: 68px; height: 68px; border-radius: 50%; }
.related-posts { margin: 50px 0; }
.share-box { display: flex; gap: 10px; align-items: center; margin: 24px 0; }
.share-box a { border: 1px solid #ddd; border-radius: 6px; padding: 6px 12px; font-size: .82rem; font-weight: 700; }

/* 8.0 Sidebar & Widgets -----------------------------------------*/
.widget { background: #f7f7f8; border-radius: 12px; padding: 22px; margin-bottom: 26px; }
.widget h2, .widget .widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; border-bottom: 2px solid #d7263d; padding-bottom: 10px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 12px; font-size: .92rem; }
.widget_recent_entries li, .widget_categories li, .widget_archive li { border-bottom: 1px dashed #e0e0e3; padding-bottom: 10px; }
.newsletter-widget input[type="email"] { width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid #ddd; margin-bottom: 10px; }
.newsletter-widget button { width: 100%; }
.tagcloud a { display: inline-block; background: #fff; border: 1px solid #ddd; padding: 5px 12px; border-radius: 16px; margin: 3px; font-size: .82rem !important; }

/* 9.0 Comments ---------------------------------------------------*/
.comments-area { margin-top: 50px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { padding: 20px 0; border-bottom: 1px solid #eee; display: flex; gap: 16px; }
.comment-body .comment-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.comment-metadata { font-size: .8rem; color: #8a8f99; }
.comment-list .children { list-style: none; margin-left: 48px; }
.comment-respond { background: #f7f7f8; padding: 26px; border-radius: 12px; margin-top: 30px; }
.comment-form p { margin-bottom: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit;
}

/* 10.0 Forms & Buttons ---------------------------------------------*/
.btn, button, input[type="submit"] {
	display: inline-block;
	background: #d7263d;
	color: #fff;
	border: none;
	padding: 11px 22px;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
	font-size: .95rem;
	transition: background .15s ease;
}
.btn:hover, button:hover, input[type="submit"]:hover { background: #a4101d; color: #fff; }
.btn.dark { background: #101216; }
.btn.dark:hover { background: #2b2f38; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea, .wpcf7-form input[type="tel"] {
	width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #ddd; margin-bottom: 14px; font-family: inherit;
}

/* 11.0 Footer -------------------------------------------------------*/
.site-footer { background: #101216; color: #c6c9d0; margin-top: 70px; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid #262a33; }
.footer-grid h2, .footer-grid .widget-title { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; border: none; padding: 0;}
.site-footer a { color: #c6c9d0; }
.site-footer a:hover { color: #fff; }
.site-footer .widget { background: none; padding: 0; margin: 0; }
.footer-brand .site-title a { color: #fff; }
.footer-brand p { color: #9296a0; font-size: .92rem; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: .82rem; flex-wrap: wrap; gap: 10px; }
.footer-social { display: flex; gap: 14px; }

/* 12.0 Utilities ------------------------------------------------------*/
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #101216; color: #fff; padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
.alignwide { width: 100%; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* 13.0 Responsive -----------------------------------------------------*/
@media (max-width: 960px) {
	.two-col { grid-template-columns: 1fr; }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.menu-toggle { display: inline-block; }
	.main-navigation { display: none; width: 100%; order: 3; }
	.main-navigation.toggled { display: block; }
	.main-navigation ul { flex-direction: column; }
	.main-navigation ul ul { position: static; box-shadow: none; display: none; }
	.main-navigation li.open > ul { display: block; }
	.header-inner { flex-wrap: wrap; }
	.header-search { order: 4; width: 100%; margin-top: 10px; }
	.header-search .searchform { width: 100%; }
	.header-search input[type="search"] { flex: 1; }
	.post-list-item { grid-template-columns: 1fr; }
	.category-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	h1 { font-size: 1.9rem; }
}
