/* ============================================================
   Man Talk - Main Stylesheet
   Converted from WordPress (Astra + Beaver Builder theme)
   Fonts: Lora (headings), Lato (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --color-primary:     #1818dc;
  --color-heading:     #22242f;
  --color-body:        #45485f;
  --color-nav-link:    #7d82a1;
  --color-footer-bg:   #e8e8ee;
  --color-footer-bar:  #d4d4de;
  --color-border:      #dddddd;
  --color-light-bg:    #f7f7f8;
  --color-white:       #ffffff;
  --font-body:         'Lato', sans-serif;
  --font-heading:      'Lora', serif;
  --max-width:         1200px;
  --header-height:     70px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.857;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin: 0 0 0.5em;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-heading);
  color: var(--color-white);
  font-size: 14px;
}

.skip-link:focus {
  left: 0;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Search icon */
.header-search-btn {
  color: var(--color-body);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header-search-btn:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Logo */
.site-title {
  font-family: var(--font-heading);
  font-size: 35px;
  font-weight: 700;
  color: #222222;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-title:hover {
  color: #222222;
  text-decoration: none;
}

/* Subscribe button */
.subscribe-btn {
  display: inline-block;
  border: 1px solid #222222;
  padding: 8px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.subscribe-btn:hover {
  background: #222222;
  color: var(--color-white);
  text-decoration: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  border-top: 1px solid var(--color-border);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-nav-link);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--color-heading);
  text-decoration: none;
}

.nav-menu > li.has-submenu > a .menu-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  vertical-align: middle;
}

/* Dropdown */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  min-width: 220px;
  z-index: 300;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-menu > li:hover > .submenu,
.nav-menu > li.focus > .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--color-body);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.submenu li a:hover {
  color: var(--color-primary);
  background: var(--color-light-bg);
  text-decoration: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 22px;
  color: var(--color-body);
}

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.hero-section {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Left: Featured post with image overlay */
.hero-featured {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  overflow: hidden;
  min-height: 540px;
}

.hero-featured-link {
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.hero-featured-link:hover {
  text-decoration: none;
}

.hero-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 540px;
}

/* Dark gradient at bottom of hero image */
.hero-post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0) 100%);
  padding: 30px 28px;
  z-index: 2;
}

.hero-cat-badge {
  display: inline-block;
  background: rgba(24,24,220,0.82);
  color: var(--color-white);
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 10px;
  text-decoration: none;
  line-height: 1;
}

.hero-cat-badge:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.hero-post-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin: 0 0 10px;
}

.hero-post-meta {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-family: var(--font-body);
}

/* Right: Welcome text */
.hero-welcome {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 50px;
  background: var(--color-white);
}

.hero-welcome h1 {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.4;
  margin-bottom: 22px;
}

.hero-welcome .welcome-lead {
  font-weight: 700;
  color: var(--color-body);
  font-size: 15px;
  max-width: 480px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.hero-welcome .welcome-desc {
  color: var(--color-body);
  font-size: 15px;
  max-width: 480px;
  line-height: 1.857;
  margin-bottom: 0;
}

/* ============================================================
   CONTENT SEPARATOR
   ============================================================ */
.content-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 30px 30px;
}

/* ============================================================
   BLOG GRID (Homepage + Category Pages)
   ============================================================ */
.blog-grid-section {
  padding: 10px 0 50px;
}

.blog-grid-section .container {
  max-width: var(--max-width);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
  margin-bottom: 40px;
}

/* ============================================================
   POST CARDS
   ============================================================ */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-card-image {
  overflow: hidden;
  margin-bottom: 0;
}

.post-card-image a {
  display: block;
}

.post-card-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.post-card-image a:hover img {
  transform: scale(1.02);
}

.post-card-content {
  padding: 20px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.4;
  margin: 0 0 8px;
}

.post-card-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.post-card-title a:hover {
  text-decoration: underline;
}

.post-card-meta {
  font-size: 13px;
  color: var(--color-nav-link);
  margin-bottom: 12px;
}

.post-card-meta a {
  color: var(--color-nav-link);
  text-decoration: none;
}

.post-card-meta a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.post-card-excerpt {
  font-size: 15px;
  color: var(--color-body);
  line-height: 1.75;
  flex: 1;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0 10px;
}

.page-numbers {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.page-numbers li a,
.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-numbers li span.current {
  background: var(--color-white);
  color: var(--color-body);
  border-color: var(--color-border);
  font-weight: 700;
}

.page-numbers li a:hover {
  background: var(--color-light-bg);
  text-decoration: none;
}

.page-numbers li a.next,
.page-numbers li a.prev {
  padding: 0 14px;
}

/* ============================================================
   PARTNER NETWORK (Homepage sidebar section)
   ============================================================ */
.partner-network-section {
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
}

.partner-network-section h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.partner-network-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.partner-network-section ul li {
  margin-bottom: 8px;
}

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.single-post-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 30px;
}

.single-post-category {
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 14px;
  display: block;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.25;
  margin-bottom: 16px;
}

.single-post-meta {
  font-size: 14px;
  color: var(--color-nav-link);
}

.single-post-meta a {
  color: var(--color-nav-link);
}

.single-post-featured-image {
  margin-bottom: 30px;
}

.single-post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.single-post-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--color-body);
  max-width: 780px;
  margin: 0 auto;
}

.single-post-content h2 {
  font-size: 28px;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.single-post-content h3 {
  font-size: 22px;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.single-post-content p {
  margin-bottom: 1.4em;
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 1.4em;
  padding-left: 2em;
}

.single-post-content li {
  margin-bottom: 0.4em;
}

.single-post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.single-post-content img {
  border-radius: 2px;
  margin: 1.5em 0;
}

.single-post-content strong {
  color: var(--color-heading);
}

/* Post wrap */
.single-post-wrap {
  padding: 30px 0 60px;
}

.single-post-wrap .container {
  max-width: 860px;
}

/* ============================================================
   INNER PAGES (About, Legal, etc.)
   ============================================================ */
.inner-page-header {
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.inner-page-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0;
}

.inner-page-content {
  padding: 0 0 60px;
}

.inner-page-content .container {
  max-width: 860px;
}

.inner-page-body {
  font-size: 16px;
  line-height: 1.857;
  color: var(--color-body);
}

.inner-page-body h2 {
  font-size: 26px;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-heading);
}

.inner-page-body h3 {
  font-size: 20px;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.inner-page-body p {
  margin-bottom: 1.2em;
}

.inner-page-body ul,
.inner-page-body ol {
  margin-bottom: 1.2em;
  padding-left: 1.8em;
}

.inner-page-body li {
  margin-bottom: 0.4em;
}

.inner-page-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.inner-page-body strong {
  color: var(--color-heading);
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.category-header .category-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-nav-link);
  margin-bottom: 8px;
}

.category-header h1 {
  font-size: 36px;
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--color-footer-bg);
  color: var(--color-body);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 50px 30px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-widget-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 20px;
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget ul li a {
  color: var(--color-body);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-widget ul li a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Partner Network widget - links are blue */
.footer-widget.partner-widget ul li a {
  color: var(--color-primary);
}

/* About widget */
.footer-about-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body);
  margin-top: 30px;
}

.footer-about-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 12px;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--color-footer-bar);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-copyright {
  font-size: 14px;
  color: var(--color-body);
}

.footer-powered {
  font-size: 14px;
  color: var(--color-body);
}

/* ============================================================
   SPECIAL PAGES: Roleplay Picker App / Kink Quiz
   ============================================================ */
.app-page-content {
  padding: 40px 0 60px;
}

/* ============================================================
   SEARCH OVERLAY (placeholder - mirrors WP search)
   ============================================================ */
.search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.search-overlay form {
  width: 90%;
  max-width: 600px;
}

.search-overlay input[type="search"] {
  width: 100%;
  padding: 16px 20px;
  font-size: 20px;
  font-family: var(--font-body);
  border: none;
  border-bottom: 2px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  outline: none;
}

.search-overlay input::placeholder {
  color: rgba(255,255,255,0.6);
}

.search-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 32px;
  cursor: pointer;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ============================================================
   RESPONSIVE - Tablet (max 921px)
   ============================================================ */
@media (max-width: 921px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-featured,
  .hero-welcome {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero-featured {
    min-height: 380px;
  }

  .hero-featured-img {
    min-height: 380px;
  }

  .hero-welcome {
    padding: 40px 30px;
  }

  .hero-welcome h1 {
    font-size: 48px;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 20px 30px;
  }

  .single-post-title {
    font-size: 32px;
  }

  .inner-page-title {
    font-size: 32px;
  }
}

/* ============================================================
   RESPONSIVE - Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .header-main {
    padding: 12px 16px;
  }

  .site-title {
    font-size: 26px;
  }

  .subscribe-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* Hide desktop nav, show hamburger */
  .site-nav {
    display: none;
  }

  .site-nav.mobile-open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border-top: 1px solid var(--color-border);
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu > li > a {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
  }

  .submenu {
    position: static;
    border: none;
    border-top: 1px solid var(--color-border);
    box-shadow: none;
    display: none;
    background: var(--color-light-bg);
  }

  .submenu.mobile-open {
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
  }

  .hero-welcome h1 {
    font-size: 36px;
  }

  .hero-welcome {
    padding: 30px 20px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 16px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .content-separator {
    margin: 20px 16px;
  }

  .single-post-title,
  .inner-page-title {
    font-size: 26px;
  }

  .inner-page-header,
  .category-header {
    padding: 30px 0 16px;
  }

  .blog-grid-section {
    padding: 10px 0 30px;
  }
}

/* ============================================================
   RESPONSIVE - Small Mobile (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .site-title {
    font-size: 22px;
  }

  .hero-welcome h1 {
    font-size: 30px;
  }

  .hero-featured {
    min-height: 280px;
  }

  .hero-featured-img {
    min-height: 280px;
  }
}
