/*
Theme Name: Value Investing School
Description: A Hebrew RTL WordPress theme for value investing education
Version: 1.0
Author: Value Investing Academy
Text Domain: value-investing
*/

/* Import Heebo font */
@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap");

/* Tailwind CSS will be enqueued separately */
body {
  font-family: "Heebo", sans-serif;
  direction: rtl;
}

.nav-item {
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* WordPress specific styles */
.wp-block-image {
  margin: 0;
}

.aligncenter {
  text-align: center;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

/* Admin bar compensation */
.admin-bar .sticky {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .sticky {
    top: 46px;
  }
}

/* Screener stock tables (replaces Bootstrap .table styling) */
table.screeners.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  direction: ltr;
  text-align: left;
}

table.screeners.table thead th {
  background-color: #2c3e50;
  color: white;
  padding: 8px 10px;
  font-weight: 600;
  border: 1px solid #1a252f;
}

table.screeners.table tbody td {
  padding: 6px 10px;
  border: 1px solid #dee2e6;
}

table.screeners.table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

table.screeners.table tbody tr:hover {
  background-color: #e9ecef;
}

/* Screener filter/sort icons (FA v6 compat — override Tailwind preflight) */
table.screeners.table th.filter i.fa {
  font-style: normal;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

table.screeners.table th.filter i.fa.fa-filter::before {
  content: "\f0b0";
}

table.screeners.table th.sortable:hover::after,
table.screeners.table th.sorted.sorted-up::after,
table.screeners.table th.sorted.sorted-down::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Screener filter dropdown — fixed position to escape scroll containers */
table.screeners.table th.filter i.fa .filter-list {
  z-index: 9999;
}

/* Screener filter dropdown checkbox spacing */
table.screeners.table th.filter i.fa .filter-list .filter-item input[type="checkbox"] {
  margin-right: 6px;
}

/* Forminator form radio/checkbox spacing */
.forminator-radio,
.forminator-checkbox {
  gap: 6px;
}
