/*
Theme Name: Color Personality Pro
Theme URI: https://colorpersonalitytest.online/
Author: Muhammad Sajjad Alam
Description: Comprehensive Color Personality Test & Behavioral Archetype Encyclopedia.
Version: 3.0.0
Text Domain: color-personality
*/
:root {
  --bg: #f8fafc; --surface: #ffffff; --text: #0f172a; --muted: #475569; --border: #e2e8f0;
  --red: #ef4444; --red-soft: #fef2f2; --yellow: #eab308; --yellow-soft: #fefce8;
  --green: #16a34a; --green-soft: #f0fdf4; --blue: #2563eb; --blue-soft: #eff6ff;
  --radius: 16px; --shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-weight: 800; font-size: 1.3rem; color: var(--text); display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-dots { display: flex; gap: 4px; }
.brand-dots span { width: 11px; height: 11px; border-radius: 50%; }
.nav-links { display: flex; gap: 24px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: #0f172a; color: #fff !important; padding: 11px 20px; border-radius: 999px; font-weight: 600; border: none; cursor: pointer; transition: all .18s ease; text-decoration: none !important; font-size: 0.95rem; }
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--text) !important; border: 1px solid var(--border); }
.btn-outline:hover { border-color: #0f172a; }
.hero { padding: 48px 0 32px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.025em; }
.hero p { max-width: 720px; margin: 0 auto 24px; color: var(--muted); font-size: 1.12rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 26px; }
.progress-track { width: 100%; height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue)); width: 0%; transition: width 0.3s ease; }
.quiz-q-title { font-size: 1.38rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 20px; border: 2px solid var(--border); border-radius: 12px; background: #fff; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all .15s ease; }
.quiz-opt:hover { border-color: #0f172a; background: #f8fafc; transform: translateX(3px); }
.opt-letter { width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; margin: 24px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 24px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon-box svg { width: 26px; height: 26px; }
.icon-red { background: var(--red-soft); color: var(--red); }
.icon-yellow { background: var(--yellow-soft); color: #ca8a04; }
.icon-green { background: var(--green-soft); color: var(--green); }
.icon-blue { background: var(--blue-soft); color: var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-yellow { background: var(--yellow-soft); color: #a16207; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.color-card { border-top: 5px solid var(--border); }
.color-card.red { border-top-color: var(--red); }
.color-card.yellow { border-top-color: var(--yellow); }
.color-card.green { border-top-color: var(--green); }
.color-card.blue { border-top-color: var(--blue); }
.detail-block { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.detail-block h2 { font-size: 1.55rem; margin-bottom: 12px; }
.detail-block p { color: #334155; margin-bottom: 14px; font-size: 1.03rem; }
.styled-list { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.styled-list li { padding-left: 24px; position: relative; color: #334155; }
.styled-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: #16a34a; }
.comp-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; background: #fff; border: 1px solid var(--border); }
.comp-table th, .comp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.comp-table th { background: #f1f5f9; font-weight: 700; }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); padding: 20px 0 8px; }
.silo-box { background: #f1f5f9; border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.silo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.silo-pill { background: #fff; border: 1px solid var(--border); padding: 8px 15px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--text); transition: all .15s ease; }
.silo-pill:hover { border-color: #0f172a; text-decoration: none; }
.bar-row { margin-bottom: 18px; }
.bar-label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.bar-outer { height: 15px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-inner { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.trait-num { width: 32px; height: 32px; border-radius: 50%; background: #0f172a; color: #fff; font-weight: 800; font-size: 0.88rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.faq-list { display: grid; gap: 12px; margin-top: 16px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.faq-item summary { font-weight: 700; font-size: 1.03rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; font-weight: 800; color: #64748b; }
.faq-item[open] summary::after { content: "−"; }
.faq-ans { margin-top: 10px; color: #475569; font-size: 0.97rem; border-top: 1px solid #f1f5f9; padding-top: 10px; }
.cta-banner { background: #0f172a; color: #fff; border-radius: var(--radius); padding: 36px; text-align: center; margin-top: 44px; }
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: #cbd5e1; max-width: 600px; margin: 0 auto 20px; }
.cta-banner .btn { background: #fff; color: #0f172a !important; }
.site-footer { background: #0f172a; color: #cbd5e1; padding: 54px 0 36px; margin-top: 72px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.02rem; }
.site-footer ul { list-style: none; display: grid; gap: 9px; font-size: 0.93rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
@media (max-width: 768px) { .nav-links { display: none; } }

/* Mobile-First Header Drawer, E-E-A-T Box & Modern Footer */
.menu-toggle { display: none; background: #f1f5f9; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 1.2rem; cursor: pointer; color: var(--text); }
.eeat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.86rem; color: #475569; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 16px 0 22px; }
.eeat-badge { background: #dcfce7; color: #15803d; font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; }
.eeat-author-card { display: flex; gap: 16px; align-items: flex-start; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 32px; }
.eeat-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #ef4444, #2563eb); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.site-footer { background: #0b1120; color: #cbd5e1; padding: 60px 0 28px; margin-top: 72px; border-top: 4px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-desc { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; margin-bottom: 16px; }
.footer-trust { font-size: 0.8rem; color: #64748b; background: #111827; padding: 10px 12px; border-radius: 10px; border: 1px solid #1f2937; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #64748b; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 22px; border-bottom: 1px solid var(--border); box-shadow: 0 15px 30px rgba(15,23,42,0.1); gap: 12px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: 8px; }
  .nav-links .btn { text-align: center; justify-content: center; }
  .card { padding: 20px; }
  .hero { padding: 32px 0 20px; }
  .quiz-opt { padding: 14px 16px; font-size: 0.96rem; min-height: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .eeat-author-card { flex-direction: column; }
}
