/*
Theme Name: PBC Trading
Author: Ⱥ
Version: 2.6
Description: PBC Trading Theme
GitHub Theme URI: bts-businesstechnologysolutions/pbctrading
Screenshot: screenshot.png
*/

/* Figtree Fonts */
@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree/Figtree-VariableFont_wght.woff2")
    format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* box-sizing: border-box; is set by tailwind */

/* Force a min-wdith on small devices" */
html,
body {
  min-width: 20rem;
}

html,
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Figtree",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: #f8f7f2;
}

main {
  flex: 1;
}

/* Color Selection */
::selection {
  background-color: #165b31;
  color: #ffffff;
}

/* For webkit browsers (Chrome, Safari, Edge) */
/* Scrollbar */

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* -------------------------------
   Scrollbar Variables
---------------------------------*/
:root {
  --sb-track-color: #f8f7f2;
  --sb-thumb-color: #1a6b3a;
  --sb-thumb-hover-color: #1d7d44;
  --sb-size: 6px;
  --sb-radius: 2px;
}

/* -------------------------------
   BODY SCROLLBAR
---------------------------------*/

/* Vertical scrollbar */
body::-webkit-scrollbar {
  width: var(--sb-size);
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: var(--sb-radius);
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: var(--sb-radius);
  transition: background 0.2s ease;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--sb-thumb-hover-color);
}

/* Horizontal scrollbar */
body::-webkit-scrollbar:horizontal {
  height: var(--sb-size);
}

body::-webkit-scrollbar-track:horizontal {
  background: var(--sb-track-color);
  border-radius: var(--sb-radius);
}

body::-webkit-scrollbar-thumb:horizontal {
  background: var(--sb-thumb-color);
  border-radius: var(--sb-radius);
  transition: background 0.2s ease;
}

body::-webkit-scrollbar-thumb:horizontal:hover {
  background: var(--sb-thumb-hover-color);
}

/* Firefox support */
@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

/* -------------------------------
   REUSABLE SCROLLBAR CLASS
---------------------------------*/
.customized-scrollbar {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
}

/* Webkit for any element with class */
.customized-scrollbar::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size); /* for horizontal scrolling */
}

.customized-scrollbar::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: var(--sb-radius);
}

.customized-scrollbar::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: var(--sb-radius);
  transition: background 0.2s ease;
}

.customized-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--sb-thumb-hover-color);
}

.customized-scrollbar::-webkit-scrollbar:horizontal {
  height: var(--sb-size);
}

.customized-scrollbar::-webkit-scrollbar-track:horizontal {
  background: var(--sb-track-color);
  border-radius: var(--sb-radius);
}

.customized-scrollbar::-webkit-scrollbar-thumb:horizontal {
  background: var(--sb-thumb-color);
  border-radius: var(--sb-radius);
  transition: background 0.2s ease;
}

.customized-scrollbar::-webkit-scrollbar-thumb:horizontal:hover {
  background: var(--sb-thumb-hover-color);
}

/* =========================================================
   RICH CONTENT (WordPress WP_Editor / Job Descriptions)
========================================================= */

.rich-content {
  color: var(--color-text);
  line-height: 1.75;
  font-size: 1rem;
  white-space: normal;
}

/* Headings */
.rich-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--color-primary);
}

.rich-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--color-primary);
}

.rich-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
  color: var(--color-primary);
}

/* Paragraphs */
.rich-content p {
  margin: 0.75rem 0;
}

/* Lists */
.rich-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.rich-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.rich-content li {
  margin: 0.25rem 0;
}

.rich-content ul ul,
.rich-content ol ol,
.rich-content ul ol,
.rich-content ol ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

/* Blockquotes */

.rich-content blockquote {
  border-left: 3px solid var(--color-secondary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--color-primary);
  font-style: italic;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}

/* horizontal rule  */
.rich-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

/* Links */
.rich-content a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rich-content a:hover {
  color: var(--color-secondary-accent);
  text-decoration: underline;
}

/* Emphasis */
.rich-content strong {
  font-weight: 700;
}

.rich-content em {
  font-style: italic;
}

/* Tables */
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.rich-content th,
.rich-content td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.rich-content th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

.rich-content tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

/* Img */
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 1rem 0;
}

.rich-content figure {
  margin: 1.5rem 0;
}

.rich-content figcaption {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-top: 0.5rem;
}

/* Code */

.rich-content pre {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.rich-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

/* inline code */
.rich-content p code,
.rich-content li code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* spacing cleanup */
.rich-content > *:first-child {
  margin-top: 0;
}
.rich-content > *:last-child {
  margin-bottom: 0;
}

/* Animation Initial State - animate-motion-system */
[data-animate="fade-in"] {
  opacity: 0;
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
}

[data-animate="fade-up-sm"] {
  opacity: 0;
  transform: translateY(14px);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(24px);
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(-24px);
}

[data-animate="grid"] .animate-card {
  opacity: 0;
  transform: translateY(24px);
}
