/*
Theme Name: GeneratePress BypassCopy Child
Theme URI: https://bypasscopy.com
Author: BypassCopy
Author URI: https://bypasscopy.com
Description: BypassCopy branded child theme for GeneratePress — mint green + modern gray.
Template: generatepress
Version: 1.0.0
License: GPL v2 or later
Text Domain: gp-bypasscopy
*/

/* ═════ BypassCopy Design System ═════ */
:root {
  --primary: #14B8A6;
  --primary-dark: #0F766E;
  --primary-light: #CCFBF1;
  --primary-glow: rgba(20,184,166,0.15);
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --white: #FFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --font: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}

/* ═══ Base Reset ═══ */
body {
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══ Typography ═══ */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: -0.3px;
}
h1 { font-weight: 800; letter-spacing: -0.5px; }

/* ═══ Links ═══ */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ═══ Container ═══ */
body .grid-container,
.inside-header,
.inside-navigation,
.site-content {
  max-width: 1200px;
}

/* ═══ Top Bar: BypassCopy Main Nav ═══ */
.bypass-nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  position: sticky;
  top: 0;
  z-index: 100;
}
.bypass-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.bypass-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
  text-decoration: none !important;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.bypass-logo span { color: var(--primary); }
.bypass-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.bypass-links a {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.bypass-links a:hover { color: var(--primary-dark); }
.bypass-links .bypass-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.15s;
}
.bypass-links .bypass-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  color: white !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--slate-700);
  padding: 4px;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .bypass-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
  }
  .bypass-links.open { display: flex; }
  .bypass-links a { font-size: 15px; padding: 6px 0; }
}

/* ═══ GeneratePress Nav Override ═══ */
.main-navigation {
  display: none !important;
}
.site-header {
  display: none !important;
}

/* ═══ Site Content ═══ */
.site-content {
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .site-content { padding: 24px 16px; }
}

/* ═══ Blog Header ═══ */
.blog-header {
  text-align: center;
  padding: 40px 0;
}
.blog-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 12px;
}
.blog-header p {
  font-size: 17px;
  color: var(--slate-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.blog-header .section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ═══ Post Grid ═══ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--slate-100);
}
.post-card-body {
  padding: 24px;
}
.post-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.post-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 8px;
  line-height: 1.4;
}
.post-card-title a {
  color: var(--slate-900);
  text-decoration: none;
}
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
  margin: 0 0 14px;
}
.post-card-meta {
  font-size: 13px;
  color: var(--slate-400);
  display: flex;
  gap: 16px;
  align-items: center;
}
@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ═══ Single Post ═══ */
.single-post-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.entry-header {
  margin-bottom: 32px;
}
.entry-header h1.entry-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
.entry-meta {
  font-size: 14px;
  color: var(--slate-400);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.entry-meta a { color: var(--slate-500); }
.entry-meta a:hover { color: var(--primary); }
.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--slate-700);
}
.entry-content p { margin: 0 0 1.5em; }
.entry-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 40px 0 16px;
}
.entry-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 32px 0 12px;
}
.entry-content ul, .entry-content ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
.entry-content li { margin-bottom: 6px; }
.entry-content img {
  border-radius: var(--radius-sm);
  max-width: 100%;
  height: auto;
}
.entry-content blockquote {
  border-left: 3px solid var(--primary);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: var(--slate-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--slate-600);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content code {
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.entry-content pre {
  background: var(--slate-900);
  color: #E2E8F0;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

/* ═══ Sidebar ═══ */
.widget {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--slate-600);
  margin: 0 0 16px;
}
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 14px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--slate-600); }
.widget ul li a:hover { color: var(--primary); }

/* ═══ Search Bar ═══ */
.search-form {
  display: flex;
  gap: 8px;
}
.search-form input[type=search] {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--slate-700);
  outline: none;
}
.search-form input[type=search]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-form button {
  padding: 11px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--primary-dark); }

/* ═══ Comments ═══ */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-100);
}
.comments-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 24px;
}
.comment-list { list-style: none; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--slate-100); }
.comment-author { font-weight: 600; color: var(--slate-800); }
.comment-metadata { font-size: 13px; color: var(--slate-400); }
.comment-content { margin-top: 8px; font-size: 15px; color: var(--slate-600); line-height: 1.7; }
.comment-reply-link { font-size: 13px; font-weight: 600; color: var(--primary); }
.comment-reply-link:hover { color: var(--primary-dark); }
.comment-respond { margin-top: 24px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-600); margin-bottom: 4px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--slate-700);
  outline: none;
  transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.comment-form textarea { min-height: 120px; }
.comment-form .form-submit input[type=submit] {
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form .form-submit input[type=submit]:hover { background: var(--primary-dark); }

/* ═══ Pagination ═══ */
.pagination {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ═══ Footer ═══ */
.bypass-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.bypass-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
}
.footer-brand .bypass-logo { color: white; display: block; margin-bottom: 12px; }
.footer-brand .bypass-logo:hover { color: white; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.bypass-footer h4 {
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.bypass-footer a {
  display: block;
  font-size: 14px;
  color: var(--slate-400);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s;
}
.bypass-footer a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #1E293B;
  margin-top: 32px;
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bypass-footer { padding: 36px 0 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══ Category Badge Colors ═══ */
.cat-ai-detection .post-card-category { background: #DBEAFE; color: #2563EB; }
.cat-content-creation .post-card-category { background: #DCFCE7; color: #16A34A; }
.cat-comparisons .post-card-category { background: #FEF3C7; color: #D97706; }
.cat-writing-tips .post-card-category { background: #F3E5F5; color: #7B1FA2; }

/* ═══ WordPress Core Overrides ═══ */
.site-footer { display: none !important; }
.footer-widgets { display: none !important; }
.entry-content .wp-block-image { margin: 1.5em 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-categories-dropdown select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--slate-700);
  outline: none;
}
.wp-block-search__input {
  padding: 11px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--slate-700);
  outline: none;
}
.wp-block-search__input:focus { border-color: var(--primary); }
.wp-block-search__button {
  padding: 11px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}
.wp-block-search__button:hover { background: var(--primary-dark); }
