/*
Theme Name: Chess Bharat (GeneratePress Child)
Template: generatepress
Description: Chess Bharat brand child theme built on GeneratePress. Applies navy/crimson palette, Merriweather headlines, and chess-specific layout tweaks.
Version: 1.0
Author: Chess Bharat
*/

/* ==========================================================================
   1. Import Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:ital,wght@0,300;0,700;0,900;1,300&display=swap');

/* ==========================================================================
   2. Brand variables
   ========================================================================== */
:root {
  --chess-dark: #1e293b;
  --chess-accent: #b91c1c;
  --chess-light: #f8fafc;
  --chess-border: #e2e8f0;
  --chess-text: #334155;
  --chess-text-light: #64748b;
}

/* ==========================================================================
   3. Global typography
   ========================================================================== */
body {
  font-family: 'Inter', sans-serif;
  color: var(--chess-text);
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.widget-title {
  font-family: 'Merriweather', serif;
  color: var(--chess-dark);
}

a {
  color: var(--chess-dark);
}
a:hover {
  color: var(--chess-accent);
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header,
#site-navigation,
.main-navigation {
  background-color: var(--chess-dark) !important;
}

.site-title,
.site-title a,
.site-title a:hover,
.site-header .site-title,
.site-header .site-title a,
.site-branding .site-title,
.site-branding .site-title a,
.inside-header .site-title,
.inside-header .site-title a,
#site-navigation .site-title,
#site-navigation .site-title a,
.main-title,
.main-title a {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  color: #ffffff !important;
  font-size: 22px;
}

/* Belt-and-braces: force any text link sitting directly inside the header
   area to white, in case the exact title class differs from the above */
.site-header a,
.site-header a:visited {
  color: #ffffff;
}

.main-navigation a {
  color: #cbd5e1 !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--chess-accent) !important;
}

/* Site logo: upload your knight-mark PNG via Appearance -> Customize -> Site Identity -> Logo */

/* ==========================================================================
   5. Featured / hero post (first post on homepage)
   ========================================================================== */
.home .post:first-child {
  position: relative;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  padding: 40px !important;
  margin-bottom: 40px;
}

/* Neutralize any inner white content wrapper GeneratePress adds, so the hero
   panel reads as one solid navy block rather than a white box inside it */
.home .post:first-child .inside-article,
.home .post:first-child .post-inner,
.home .post:first-child .entry-content,
.home .post:first-child article {
  background: transparent !important;
  color: #ffffff;
}

.home .post:first-child .entry-title,
.home .post:first-child .entry-title a {
  color: #ffffff !important;
  font-size: 30px;
}

.home .post:first-child .entry-content,
.home .post:first-child .entry-content p {
  color: #e2e8f0 !important;
}

.home .post:first-child .entry-meta,
.home .post:first-child .entry-meta a {
  color: #cbd5e1 !important;
}

/* Category badge shown above featured/regular post titles */
.chess-category-badge {
  display: inline-block;
  background: var(--chess-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* ==========================================================================
   6. Post cards (archive / category / homepage grid)
   ========================================================================== */
.post,
article.post {
  border: 1px solid var(--chess-border);
  border-radius: 6px;
  padding: 20px !important;
  margin-bottom: 24px;
}

.entry-title {
  font-size: 18px;
  line-height: 1.4;
}

.entry-meta {
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   7. Sidebar widgets
   ========================================================================== */
.widget {
  background: var(--chess-light);
  border: 1px solid var(--chess-border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--chess-border);
}

/* Newsletter / CTA widget variant: add class "cta-widget" to a Custom HTML widget */
.cta-widget {
  background: var(--chess-dark) !important;
  color: #ffffff;
}
.cta-widget .widget-title {
  color: #ffffff;
  border-color: #475569;
}
.cta-widget input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: none;
  margin-bottom: 8px;
  font-size: 13px;
}
.cta-widget button,
.cta-widget input[type="submit"] {
  width: 100%;
  background: var(--chess-accent);
  color: #ffffff;
  border: none;
  padding: 9px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* Tag cloud styling */
.tagcloud a {
  background: #ffffff;
  border: 1px solid var(--chess-border);
  border-radius: 4px;
  padding: 4px 10px !important;
  font-size: 12px !important;
  margin: 0 4px 8px 0;
  display: inline-block;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer,
.footer-widgets {
  background-color: var(--chess-dark) !important;
  color: #cbd5e1;
}

.footer-widgets .widget-title {
  color: #ffffff;
  border: none;
}

.footer-widgets a {
  color: #94a3b8 !important;
  font-size: 13px;
}

.footer-widgets .widget {
  background: transparent;
  border: none;
  padding: 0;
}

.site-info {
  text-align: center;
  padding: 18px 0;
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   9. FAQ block styling (matches RankMath FAQ block output)
   ========================================================================== */
.rank-math-faq-item {
  border: 1px solid var(--chess-border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}
.rank-math-faq-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 800px) {
  .main-navigation {
    display: none;
  }
  .home .post:first-child .entry-title a {
    font-size: 22px;
  }
}
