﻿/*
Theme Name: RideAlly Blog Standalone v3.1
Theme URI: https://blog.rideally.com
Author: RideAlly
Description: Standalone RideAlly blog theme. No parent theme dependency. Keeps the blog focused on posts, categories, search, recent posts and RideAlly branding.
Version: 3.1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: rideally-blog
*/

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

:root {
  --teal: #3DBFB0;
  --teal-dark: #2A9D8F;
  --teal-deeper: #1E7068;
  --teal-light: #E8F8F6;
  --teal-bg: #F2FAFA;
  --dark: #1A1A1A;
  --text: #2D3436;
  --muted: #636E72;
  --border: #DFE6E9;
  --white: #FFFFFF;
  --footer-bg: #162524;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--teal-bg);
}
a { color: var(--teal-deeper); text-decoration: none; transition: color .2s, background .2s, transform .2s, box-shadow .2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: "Poppins", Arial, sans-serif; color: var(--dark); line-height: 1.3; letter-spacing: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--teal);
  box-shadow: 0 2px 16px rgba(61,191,176,.1);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; min-width: 220px; }
.logo-wrap img { height: 48px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.site-title { font-family: "Poppins", Arial, sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--teal-deeper); line-height: 1.1; }
.site-desc { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .4px; }
.header-social { display: flex; gap: 8px; }
.header-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-deeper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 800;
}
.header-social a:hover { background: var(--teal); color: #fff; }

.main-nav { background: var(--teal); margin: 0; overflow-x: auto; }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.nav-inner ul { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; min-width: max-content; }
.nav-inner a {
  display: block;
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  padding: 12px 16px;
  letter-spacing: .02em;
}
.nav-inner li.current-menu-item a,
.nav-inner a:hover { background: var(--teal-dark); color: #fff; }

.blog-hero { margin: 0; background: linear-gradient(135deg, var(--teal), var(--teal-deeper)); overflow: hidden; }
.blog-hero img { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.hero-fallback { text-align: center; padding: 56px 24px 48px; color: #fff; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-fallback h1 { color: #fff; margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3rem); }
.hero-fallback p { color: rgba(255,255,255,.88); margin: 0; }

.site-content { max-width: 1160px; margin: 0 auto; padding: 36px 24px 44px; display: flex; gap: 36px; align-items: flex-start; }
.main-col { flex: 1; min-width: 0; }
.sidebar { width: 310px; flex: 0 0 310px; }
.section-heading { margin: 0 0 18px; font-size: 1.35rem; }

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 2px 16px rgba(61,191,176,.07);
  border: 1px solid rgba(61,191,176,.12);
  transition: box-shadow .25s, transform .25s;
}
.post-card:hover { box-shadow: 0 10px 36px rgba(61,191,176,.18); transform: translateY(-3px); }
.post-card.featured { border: 2px solid var(--teal); }
.post-thumb { overflow: hidden; height: 220px; background: var(--teal-light); }
.post-card.featured .post-thumb { height: 270px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--teal-light), #c8f0ec);
  color: var(--teal-deeper);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
}
.post-body { padding: 21px 23px 20px; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.featured-label, .cat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.featured-label { background: var(--teal); color: #fff; }
.cat-badge { background: var(--teal-light); color: var(--teal-deeper); }
.post-date { color: var(--muted); font-size: .76rem; }
.post-title { margin: 0 0 10px; font-size: 1.22rem; line-height: 1.36; }
.post-title a { color: var(--dark); }
.post-title a:hover { color: var(--teal); }
.post-excerpt { margin: 0; color: var(--muted); font-size: .92rem; }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--teal-light); }
.author-line { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.author-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: "Poppins", Arial, sans-serif; font-size: .72rem; font-weight: 800; }
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: .8rem;
  font-weight: 800;
}
.read-more:hover { background: var(--teal-dark); color: #fff; }

.pagination, .navigation.pagination { margin: 20px 0; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid rgba(61,191,176,.18);
  color: var(--teal-deeper);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 800;
}
.page-numbers.current, .page-numbers:hover { background: var(--teal); color: #fff; }

.widget {
  background: #fff;
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(61,191,176,.08);
  border: 1px solid rgba(61,191,176,.12);
}
.widget-title {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--teal);
  color: var(--dark);
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.search-form { display: flex; gap: 8px; }
.search-input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; outline: none; }
.search-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(61,191,176,.16); }
.search-btn { border: 0; border-radius: 8px; background: var(--teal); color: #fff; padding: 9px 13px; cursor: pointer; font-weight: 800; }
.search-btn:hover { background: var(--teal-dark); }

.main-site-widget {
  background: linear-gradient(135deg, var(--teal), var(--teal-deeper));
  color: #fff;
  border-radius: 16px;
  padding: 34px 26px;
  margin-bottom: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(30,112,104,.18);
}
.main-site-widget h3 { margin: 0 0 14px; color: #fff; font-size: 1.22rem; }
.main-site-widget p { max-width: 270px; margin: 0 auto 22px; color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.75; }
.main-site-widget a { display: flex; align-items: center; justify-content: center; min-height: 56px; max-width: 210px; margin: 10px auto 0; border-radius: 999px; background: #fff; color: var(--teal-deeper); font-family: "Poppins", Arial, sans-serif; font-size: .94rem; font-weight: 800; }
.main-site-widget a:hover { background: var(--teal-light); color: var(--teal-deeper); }

.recent-list, .category-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { display: grid; grid-template-columns: 86px 1fr; gap: 16px; padding: 14px 0; align-items: start; border-bottom: 1px solid #edf3f2; transition: transform .2s ease; }
.recent-list li:hover { transform: translateX(3px); }
.recent-list li:last-child, .category-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-thumb { width: 86px; height: 74px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-light); color: var(--teal-deeper); overflow: hidden; font-family: "Poppins", Arial, sans-serif; font-size: .72rem; font-weight: 800; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-title { font-family: "Poppins", Arial, sans-serif; font-size: .94rem; font-weight: 700; line-height: 1.34; margin-bottom: 6px; }
.recent-title a { color: var(--teal); }
.recent-title a:hover { color: var(--teal-deeper); }
.recent-excerpt { margin: 0 0 6px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.recent-date { color: var(--muted); font-size: .78rem; }
.category-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf3f2; font-size: .98rem; }
.category-list li a { color: var(--dark); font-family: "Poppins", Arial, sans-serif; font-weight: 500; }
.category-list li:hover a { color: var(--teal); }
.cat-count { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; background: var(--teal-light); color: var(--teal-dark); border-radius: 50%; font-size: .82rem; font-weight: 800; }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 14px; border-radius: 10px; color: #fff; font-family: "Poppins", Arial, sans-serif; font-size: .95rem; font-weight: 800; }
.social-btn.fb { background: #1877F2; }
.social-btn.tw { background: #1DA1F2; }
.social-btn.yt { background: #FF0000; }
.social-btn.li { background: #0A66C2; }
.social-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 8px 18px rgba(30,112,104,.18); }

.site-footer { background: linear-gradient(135deg, #101d1c, var(--footer-bg)); color: rgba(255,255,255,.72); padding: 46px 24px 24px; margin-top: 16px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr)); gap: 34px; margin-bottom: 34px; }
.footer-logo { width: auto; max-height: 48px; margin-bottom: 14px; }
.footer-desc { max-width: 380px; margin: 0 0 14px; color: rgba(255,255,255,.64); font-size: .9rem; }
.footer-tagline { display: inline-flex; border: 1px solid rgba(61,191,176,.35); color: var(--teal); font-family: "Poppins", Arial, sans-serif; font-size: .74rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.footer-col h4 { margin: 0 0 13px; color: #fff; font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 4px 0; color: rgba(255,255,255,.58); font-size: .86rem; }
.footer-col a { color: rgba(255,255,255,.64); }
.footer-col a:hover { color: var(--teal); }
.footer-widget { margin: 0; }
.footer-widget h4,
.footer-widget .widget-title { margin: 0 0 13px; color: #fff; font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 0; padding: 0; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { padding: 4px 0; color: rgba(255,255,255,.58); font-size: .86rem; }
.footer-widget p { color: rgba(255,255,255,.64); margin: 0 0 12px; }
.footer-widget a { color: rgba(255,255,255,.64); }
.footer-widget a:hover { color: var(--teal); }
.footer-socials { display: flex; gap: 9px; margin-top: 14px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(61,191,176,.12); border: 1px solid rgba(61,191,176,.3); color: var(--teal); font-family: "Poppins", Arial, sans-serif; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.footer-socials a:hover { background: var(--teal); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(61,191,176,.18); padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: rgba(255,255,255,.46); font-size: .8rem; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 12px 18px; }
  .main-nav { position: relative; }
  .site-content { flex-direction: column; }
  .sidebar { width: 100%; flex-basis: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .sidebar > * { margin-bottom: 0; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .header-inner { padding: 10px 18px; }
  .logo-wrap img { height: 42px; }
  .site-title { font-size: 1rem; }
  .site-desc { font-size: .68rem; }
  .header-social { display: none; }
  .nav-inner { padding: 0 18px; }
  .nav-inner a { font-size: .74rem; padding: 10px 11px; }
  .site-content { padding: 28px 18px 36px; gap: 28px; }
  .post-card.featured .post-thumb, .post-thumb { height: 190px; }
  .post-body { padding: 18px; }
  .post-footer { flex-direction: column; align-items: flex-start; }
  .widget { padding: 22px; }
  .recent-list li { grid-template-columns: 72px 1fr; gap: 13px; }
  .recent-thumb { width: 72px; height: 66px; }
  .social-grid { grid-template-columns: 1fr; }
  .sidebar { display: block; }
  .sidebar > * { margin-bottom: 20px; }
  .site-footer { padding: 36px 18px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
}

