/*
 Theme Name:   StarmarkAI Child
 Theme URI:    https://starmarkai.com
 Description:  StarmarkAI Child Theme for GeneratePress
 Author:       Shahin - StarmarkAI
 Author URI:   https://starmarkai.com
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  starmarkai-child
*/

/* =============================================
   STARMARKAI CUSTOM STYLES
   ============================================= */

/* --- Root Variables --- */
:root {
  --starmark-primary: #1a73e8;
  --starmark-primary-dark: #1557b0;
  --starmark-accent: #f97316;
  --starmark-text: #1e293b;
  --starmark-text-light: #64748b;
  --starmark-bg: #ffffff;
  --starmark-bg-alt: #f8fafc;
  --starmark-border: #e2e8f0;
  --starmark-radius: 8px;
  --starmark-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* --- Typography --- */
body {
  color: var(--starmark-text);
  font-family: 'Georgia', serif;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: var(--starmark-text);
  line-height: 1.3;
}

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

a:hover {
  color: var(--starmark-primary-dark);
}

/* --- Site Header --- */
.site-header {
  border-bottom: 2px solid var(--starmark-primary);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

/* --- Navigation --- */
.main-navigation a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.main-navigation a:hover {
  color: var(--starmark-accent) !important;
}

/* --- Post/Article Styles --- */
.entry-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
}

.entry-title a {
  color: var(--starmark-text);
}

.entry-title a:hover {
  color: var(--starmark-primary);
}

/* --- Content Area --- */
.entry-content {
  font-size: 17px;
  line-height: 1.8;
}

.entry-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--starmark-border);
  color: var(--starmark-text);
}

.entry-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--starmark-text);
}

/* --- Affiliate / CTA Button --- */
.entry-content .wp-block-button .wp-block-button__link,
.starmark-btn {
  background: var(--starmark-accent) !important;
  color: #fff !important;
  border-radius: var(--starmark-radius) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 12px 28px !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
  border: none !important;
  display: inline-block;
}

.entry-content .wp-block-button .wp-block-button__link:hover,
.starmark-btn:hover {
  background: #ea6c00 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3) !important;
}

/* --- Table of Contents (Rank Math) --- */
.rank-math-toc-widget-wrapper,
.wp-block-rank-math-toc-block {
  background: var(--starmark-bg-alt);
  border: 1px solid var(--starmark-border);
  border-left: 4px solid var(--starmark-primary);
  border-radius: var(--starmark-radius);
  padding: 20px 24px;
  margin: 2rem 0;
}

.rank-math-toc-widget-wrapper h2,
.wp-block-rank-math-toc-block h2 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border: none !important;
  color: var(--starmark-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Info / Pros-Cons Boxes --- */
.starmark-box {
  border-radius: var(--starmark-radius);
  padding: 20px 24px;
  margin: 1.5rem 0;
}

.starmark-box-info {
  background: #eff6ff;
  border-left: 4px solid var(--starmark-primary);
}

.starmark-box-pro {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.starmark-box-con {
  background: #fff1f2;
  border-left: 4px solid #f43f5e;
}

.starmark-box-warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}

/* --- Rating Stars --- */
.starmark-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.2rem;
  color: #fbbf24;
}

.starmark-rating-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--starmark-text);
  margin-left: 6px;
}

/* --- Comparison Table --- */
.starmark-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 15px;
}

.starmark-compare-table th {
  background: var(--starmark-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.starmark-compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--starmark-border);
}

.starmark-compare-table tr:nth-child(even) td {
  background: var(--starmark-bg-alt);
}

.starmark-compare-table tr:hover td {
  background: #eff6ff;
}

/* --- Cards (Blog Archive) --- */
.inside-article {
  border-radius: var(--starmark-radius);
  transition: box-shadow 0.2s ease;
}

.inside-article:hover {
  box-shadow: var(--starmark-shadow);
}

/* --- Sidebar Widget --- */
.widget {
  background: var(--starmark-bg-alt);
  border: 1px solid var(--starmark-border);
  border-radius: var(--starmark-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--starmark-primary) !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--starmark-border) !important;
}

/* --- Footer --- */
.site-footer {
  background: var(--starmark-text);
  color: #94a3b8;
  font-size: 14px;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

/* --- Affiliate Disclosure Box --- */
.starmark-disclosure {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--starmark-radius);
  padding: 12px 18px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 1.5rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .entry-content {
    font-size: 16px;
  }

  .entry-title {
    font-size: 1.5rem;
  }

  .starmark-compare-table {
    font-size: 13px;
  }

  .starmark-compare-table th,
  .starmark-compare-table td {
    padding: 8px 10px;
  }
}
