/*
Theme Name: LuvGayPorn Blog
Theme URI: https://luvgayporn.com
Author: Custom
Description: Clean blog theme with large card layout for LuvGayPorn
Version: 1.4
Text Domain: luvgayporn
*/

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

/* ===== Header ===== */
.site-header {
  background: #0a0a0a;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo .logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* Top nav */
.top-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

.top-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #374151;
  text-decoration: none;
  text-transform: uppercase;
}

.top-nav a:hover {
  color: var(--accent);
}

/* ===== Blog Listing ===== */
.blog-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* ===== FIXED IMAGE SIZE - very aggressive ===== */
.post-card .post-image {
  background: #111;
  width: 100%;
  height: 260px !important;
  min-height: 260px !important;
  max-height: 260px !important;
  overflow: hidden !important;
  position: relative !important;
}

.post-card .post-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.post-card .post-image img,
.post-card .post-image .card-thumb,
.post-card .post-image img.wp-post-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

.post-card .post-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-card .post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.post-card .post-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

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

.post-card .post-title a:hover {
  color: var(--accent);
}

.post-card .post-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s;
}

.btn-read:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* ===== PAGINATION - very strong ===== */
.lgp-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.lgp-pagination ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.lgp-pagination li {
  margin: 0;
  padding: 0;
}

.lgp-pagination a,
.lgp-pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
}

.lgp-pagination a {
  background: #fff !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.lgp-pagination a:hover {
  background: #e11d48 !important;
  color: #fff !important;
  border-color: #e11d48 !important;
}

.lgp-pagination span.current {
  background: #e11d48 !important;
  color: #fff !important;
  border: 1px solid #e11d48 !important;
}

/* Also catch default WordPress pagination just in case */
.navigation.pagination .nav-links {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.navigation.pagination .nav-links a {
  background: #fff !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
}

.navigation.pagination .nav-links a:hover {
  background: #e11d48 !important;
  color: #fff !important;
  border-color: #e11d48 !important;
}

.navigation.pagination .nav-links span.current {
  background: #e11d48 !important;
  color: #fff !important;
  border: 1px solid #e11d48 !important;
}

/* ===== Single Post ===== */
.single-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  margin: 0 8px;
  color: #d1d5db;
}

.post-hero {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}

.post-hero .featured-image {
  background: #111;
  line-height: 0;
}

.post-hero .featured-image img {
  width: 100% !important;
  max-height: 480px !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

.post-hero-content {
  padding: 36px 40px;
}

.post-hero .post-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.post-hero .post-title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.post-hero .post-excerpt {
  font-size: 1.1rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 0;
}

.post-body {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #333;
}

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

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.4em 1.4em;
}

.post-body li {
  margin-bottom: 0.5em;
}

.post-body a {
  color: var(--accent);
}

.post-body blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 1.6em 0;
  color: var(--muted);
  font-style: italic;
}

/* ===== RED BUTTONS - extremely aggressive ===== */
.post-body a[style*="background"],
.post-body a[style*="BACKGROUND"],
.post-body a[style*="background-color"],
.post-body a.button,
.post-body .button,
.post-body .wp-block-button__link,
.post-body .wp-element-button,
.post-body .elementor-button,
.post-body a.btn,
.post-body .btn,
.post-body input[type="submit"] {
  color: #ffffff !important;
  background-color: #e11d48 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

/* Catch any remaining red-ish buttons */
.post-body a {
  /* don't force all links */
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.back-to-blog:hover {
  color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .heart {
  color: #e11d48;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .post-card {
    grid-template-columns: 300px 1fr;
  }

  .post-card .post-image {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }
}

@media (max-width: 720px) {
  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card .post-image {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }

  .post-card .post-content {
    padding: 22px 24px;
  }

  .post-hero .featured-image img {
    max-height: 280px !important;
  }

  .post-hero-content,
  .post-body {
    padding: 28px 24px;
  }

  .post-hero .post-title {
    font-size: 1.5rem;
  }

  .site-logo .logo-img {
    height: 40px;
  }
}
