/* ============================================
   TAAZAMIND.COM - Global Stylesheet
   AI Tools Tutorials for Beginners 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --mid: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Lora', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; }

/* ============ HEADER / NAV ============ */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--primary-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-3);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-cta {
  background: var(--gradient) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { opacity: 0.9; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: 0.3s; }

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--dark-3);
}

/* ============ HERO ============ */
.hero {
  background: var(--dark);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(13,148,136,0.25) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(8,145,178,0.2) 0%, transparent 50%);
  color: var(--white);
  padding: 90px 20px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(13,148,136,0.25);
  border: 1px solid rgba(13,148,136,0.5);
  color: #5eead4;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--white);
}

.hero h1 em { color: #5eead4; font-style: normal; }

.hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--gradient); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,0.4); color: var(--white); }
.btn-outline { border: 2px solid #5eead4; color: #5eead4; background: transparent; }
.btn-outline:hover { background: rgba(94,234,212,0.1); color: #5eead4; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--white); display: block; font-family: var(--font-heading); }
.stat-label { font-size: 0.82rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============ CONTAINER ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-wrap { max-width: 860px; margin: 0 auto; }

/* ============ SECTION BASICS ============ */
section { padding: 70px 20px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 44px;
}
.section-header { text-align: center; margin-bottom: 50px; }

/* ============ TABLE OF CONTENTS ============ */
.toc-box {
  background: var(--light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin: 40px 0;
}
.toc-box h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.toc-list { list-style: none; columns: 2; column-gap: 30px; }
.toc-list li { padding: 5px 0; break-inside: avoid; }
.toc-list a { color: var(--dark-3); font-size: 0.92rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.toc-list a::before { content: '→'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.toc-list a:hover { color: var(--primary); }

/* ============ ARTICLE CONTENT ============ */
.article-content { padding: 60px 20px; }
.article-content .content-wrap { max-width: 860px; }

.article-content h2 {
  font-size: 1.7rem;
  color: var(--dark);
  margin: 52px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.article-content h2:first-child { border-top: none; margin-top: 0; }
.article-content h3 { font-size: 1.25rem; color: var(--dark-2); margin: 32px 0 12px; }
.article-content h4 { font-size: 1.05rem; color: var(--dark-3); margin: 24px 0 10px; }
.article-content p { margin-bottom: 18px; color: var(--dark-2); font-size: 1.02rem; }
.article-content ul, .article-content ol { margin: 16px 0 24px 20px; }
.article-content li { margin-bottom: 8px; color: var(--dark-2); }
.article-content strong { color: var(--dark); }

/* ============ CALLOUT BOXES ============ */
.callout {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.callout-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.callout-body p { margin: 0; font-size: 0.92rem; }

.callout-tip { background: #f0fdf4; border: 1px solid #bbf7d0; }
.callout-tip h4 { color: #166534; }
.callout-tip p { color: #15803d; }

.callout-warning { background: #fffbeb; border: 1px solid #fde68a; }
.callout-warning h4 { color: #92400e; }
.callout-warning p { color: #b45309; }

.callout-info { background: #eff6ff; border: 1px solid #bfdbfe; }
.callout-info h4 { color: #1e40af; }
.callout-info p { color: #2563eb; }

.callout-personal { background: var(--primary-light); border: 1px solid #99f6e4; }
.callout-personal h4 { color: var(--primary-dark); }
.callout-personal p { color: #0f766e; }

/* ============ SCREENSHOT PLACEHOLDER ============ */
.screenshot-placeholder {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 2px dashed #94a3b8;
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  margin: 24px 0;
  color: var(--mid);
}
.screenshot-placeholder .sp-icon { font-size: 2.5rem; margin-bottom: 10px; }
.screenshot-placeholder p { font-size: 0.9rem; margin: 0; font-weight: 500; }

/* ============ TOOL CARDS ============ */
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.tool-card:hover { box-shadow: var(--shadow-lg); }

.tool-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.tool-meta h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tool-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.pros, .cons {
  border-radius: var(--radius);
  padding: 18px;
}
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons { background: #fff7ed; border: 1px solid #fed7aa; }
.pros h4 { color: #166534; font-size: 0.9rem; margin-bottom: 10px; }
.cons h4 { color: #c2410c; font-size: 0.9rem; margin-bottom: 10px; }
.pros li, .cons li { font-size: 0.88rem; list-style: none; padding: 3px 0; }
.pros li::before { content: '✓ '; color: #16a34a; }
.cons li::before { content: '✗ '; color: #ea580c; }

.step-list { list-style: none; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  padding: 14px 16px 14px 56px;
  position: relative;
  border-left: 2px solid var(--border);
  margin-bottom: 8px;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ============ ARTICLE GRID ============ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.card-thumb.bg1 { background: linear-gradient(135deg, #ccfbf1, #a7f3d0); }
.card-thumb.bg2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.card-thumb.bg3 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.card-thumb.bg4 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.card-thumb.bg5 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }

.card-body { padding: 22px; }
.card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 8px;
}
.card-body h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.card-body p { font-size: 0.88rem; color: var(--mid); margin-bottom: 14px; }
.card-body a.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-body a.read-more:hover { gap: 8px; }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 1.4rem; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 20px; color: var(--mid); font-size: 0.95rem; line-height: 1.8; }
.faq-item.open .faq-answer { display: block; }

/* ============ AUTHOR BOX ============ */
.author-box {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 60px 0 40px;
  border: 1px solid var(--border);
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.author-info h3 { font-size: 1.15rem; margin-bottom: 4px; }
.author-info .author-role { font-size: 0.82rem; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.author-info p { font-size: 0.92rem; color: var(--mid); margin: 0; }

/* ============ TRUST BAR ============ */
.trust-section {
  background: var(--dark);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 40px auto 0;
}
.trust-item { text-align: center; }
.trust-item .t-icon { font-size: 2.2rem; margin-bottom: 12px; }
.trust-item h4 { font-size: 1rem; margin-bottom: 6px; color: var(--white); }
.trust-item p { font-size: 0.85rem; color: #94a3b8; margin: 0; }

/* ============ COMPARISON TABLE ============ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.92rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table thead { background: var(--dark); color: var(--white); }
.compare-table th { padding: 14px 18px; text-align: left; font-weight: 600; }
.compare-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--light); }
.compare-table .yes { color: #16a34a; font-weight: 700; }
.compare-table .no { color: #dc2626; }
.compare-table .maybe { color: #d97706; }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding: 16px 20px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--mid);
}
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ============ ARTICLE HERO ============ */
.article-hero {
  background: var(--dark);
  padding: 60px 20px 50px;
  text-align: center;
  color: var(--white);
}
.article-hero .badge {
  display: inline-block;
  background: rgba(13,148,136,0.3);
  border: 1px solid rgba(13,148,136,0.5);
  color: #5eead4;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.article-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--white); margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.article-hero .meta { font-size: 0.88rem; color: #94a3b8; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.article-hero .meta span { display: flex; align-items: center; gap: 5px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark-2);
  color: #94a3b8;
  padding: 60px 20px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul a { color: #94a3b8; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--primary); }

/* ============ SIDEBAR ============ */
.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 48px; max-width: 1200px; margin: 0 auto; }
.sidebar { }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-light); color: var(--dark); }
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: 0.88rem; color: var(--dark-3); font-weight: 500; }
.sidebar-links a:hover { color: var(--primary); }
.sidebar-cta {
  background: var(--gradient);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 28px;
}
.sidebar-cta h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; border: none; padding: 0; }
.sidebar-cta p { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-bottom: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .toc-list { columns: 1; }
  .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 20px; }
  .hero-stats { gap: 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .author-box { flex-direction: column; }
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.highlight { background: linear-gradient(180deg, transparent 60%, #fef08a 60%); }
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* Reading time chip */
.reading-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 24px;
}

/* Section with bg */
.bg-light { background: var(--light); }
.bg-teal-light { background: var(--primary-light); }

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 999;
}
#back-to-top.visible { display: flex; }
