/* ============================================================
   Shaneeb – The Fiscal Crafter | Global Stylesheet
   Design System: Executive Distinction
   ============================================================ */

/* --- Material Symbols ------------------------------------ */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Brand Gradients ------------------------------------- */
.signature-gradient {
  background: linear-gradient(135deg, #0F2B4A 0%, #00162f 100%);
}
.gold-gradient {
  background: linear-gradient(135deg, #D4A041 0%, #b8892a 100%);
}
.teal-gradient {
  background: linear-gradient(135deg, #17A2B8 0%, #006877 100%);
}
.whatsapp-gradient {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}
.hero-gradient {
  background: linear-gradient(135deg, #0F2B4A 0%, #17A2B8 40%, #006877 100%);
}

/* --- Shadows -------------------------------------------- */
.premium-shadow {
  box-shadow: 0 8px 32px rgba(15, 43, 74, 0.06);
}
.premium-shadow-md {
  box-shadow: 0 16px 48px rgba(15, 43, 74, 0.10);
}
.premium-shadow-lg {
  box-shadow: 0 32px 64px rgba(15, 43, 74, 0.14);
}
.gold-glow {
  box-shadow: 0 8px 32px rgba(212, 160, 65, 0.30);
}
.teal-glow {
  box-shadow: 0 8px 32px rgba(23, 162, 184, 0.25);
}

/* --- Scrollbar Utilities --------------------------------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Line Clamp ----------------------------------------- */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* --- WhatsApp Floating Button --------------------------- */
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50%       { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
}
.whatsapp-pulse { animation: pulse-whatsapp 2.5s infinite; }

/* --- Mobile Menu ---------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* --- Modal --------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(15, 43, 74, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

/* --- Reading Progress Bar ------------------------------- */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4A041 0%, #17A2B8 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* --- Blog / Article Prose ------------------------------- */
.article-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #00162f;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.article-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #00162f;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f2b4a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-content p {
  color: #43474e;
  line-height: 1.85;
  margin-bottom: 1.3rem;
}
.article-content ul, .article-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1.3rem;
  color: #43474e;
}
.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}
.article-content strong { color: #00162f; font-weight: 600; }
.article-content a {
  color: #006877;
  text-decoration: underline;
  text-decoration-color: rgba(0, 104, 119, 0.35);
  text-underline-offset: 2px;
}
.article-content blockquote {
  border-left: 4px solid #D4A041;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  color: #43474e;
  font-style: italic;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}
.article-content th {
  background: #0f2b4a;
  color: white;
  padding: 0.875rem 1rem;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
}
.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e1e3e4;
  color: #43474e;
  font-size: 0.9rem;
}
.article-content tr:nth-child(even) td { background: #f3f4f5; }
.article-content code {
  background: #edeeef;
  color: #0f2b4a;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}
.article-content pre {
  background: #0f2b4a;
  color: #afc8ef;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.article-content pre code { background: none; color: inherit; padding: 0; }

/* --- Image Placeholders --------------------------------- */
.img-ph-finance   { background: linear-gradient(135deg, #0F2B4A 0%, #17A2B8 100%); }
.img-ph-hr        { background: linear-gradient(135deg, #17A2B8 0%, #006877 100%); }
.img-ph-sales     { background: linear-gradient(135deg, #D4A041 0%, #b8892a 100%); }
.img-ph-projects  { background: linear-gradient(135deg, #006877 0%, #0F2B4A 100%); }
.img-ph-tax       { background: linear-gradient(135deg, #0F2B4A 0%, #D4A041 100%); }
.img-ph-personal  { background: linear-gradient(135deg, #17A2B8 0%, #D4A041 100%); }
.img-ph-blog      { background: linear-gradient(135deg, #0F2B4A 0%, #006877 100%); }
.img-ph-strategy  { background: linear-gradient(135deg, #006877 0%, #17A2B8 100%); }
.img-ph-market    { background: linear-gradient(135deg, #D4A041 0%, #0F2B4A 100%); }

/* --- Filter Buttons ------------------------------------- */
.filter-btn {
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-btn.active {
  background-color: #0f2b4a !important;
  color: #ffffff !important;
}

/* --- Star Rating ---------------------------------------- */
.stars { color: #D4A041; }

/* --- Cookie Banner -------------------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(15, 43, 74, 0.16);
  padding: 1rem 1.5rem;
  max-width: 560px;
  width: calc(100% - 2rem);
  display: none;
}
#cookie-banner.show { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* --- Scroll Animations ---------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }

/* --- Breadcrumb ----------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #74777e;
}
.breadcrumb a { color: #74777e; text-decoration: none; }
.breadcrumb a:hover { color: #006877; }
.breadcrumb .sep { color: #c4c6ce; }
.breadcrumb .current { color: #00162f; font-weight: 500; }

/* --- Table of Contents ---------------------------------- */
.toc-link {
  display: block;
  padding: 0.35rem 0.75rem;
  border-left: 2px solid #e1e3e4;
  color: #43474e;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}
.toc-link:hover, .toc-link.active {
  border-left-color: #D4A041;
  color: #00162f;
  background: #fff9ef;
  border-radius: 0 8px 8px 0;
}

/* --- Responsive Utilities ------------------------------- */
@media (max-width: 640px) {
  .signature-gradient { border-radius: 16px !important; }
}

/* --- RTL Ready ------------------------------------------ */
[dir="rtl"] {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}
[dir="rtl"] .toc-link {
  border-left: none;
  border-right: 2px solid #e1e3e4;
  padding-left: 0;
  padding-right: 0.75rem;
}

/* --- Print Styles --------------------------------------- */
@media print {
  nav, footer, .whatsapp-fab, #cookie-banner, .modal-overlay { display: none !important; }
  body { background: white; color: black; }
  a { color: #00162f; text-decoration: underline; }
}
