/*
Theme Name: HelpingBrains Blog
Theme URI: https://helpingbrains.info/blog
Description: HelpingBrains-branded child theme of Twenty Twenty-Five for the company blog. Matches the main site palette (violet brand, ink text) and links back to helpingbrains.info.
Author: HelpingBrains
Author URI: https://helpingbrains.info
Template: twentytwentyfive
Version: 1.3.1
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: helpingbrains
*/

/* Most styling is driven by theme.json. Small refinements only. */

/* Header — replicates the main helpingbrains.info site header exactly. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
@media (min-width: 1024px) {
  .site-header { padding: 0 32px; }
}
.hb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1152px;
  height: 96px;
  margin: 0 auto;
}
.hb-logo { display: inline-flex; }
.hb-logo img { display: block; height: 80px; width: auto; }
.hb-nav { display: none; align-items: center; gap: 28px; }
.hb-nav a,
.hb-actions a.hb-link {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.hb-nav a:hover,
.hb-actions a.hb-link:hover { color: #1a0b2e; }
.hb-actions { display: flex; align-items: center; gap: 12px; }
.hb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: #7c3aed;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.hb-btn-primary:hover { background: #6d28d9; }
@media (min-width: 768px) {
  .hb-nav { display: flex; }
}
@media (max-width: 639px) {
  .hb-actions a.hb-link { display: none; }
}

/* Footer — replicates the main helpingbrains.info site footer exactly. */
.site-footer {
  padding: 0 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
@media (min-width: 1024px) {
  .site-footer { padding: 0 32px; }
}
.hb-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 56px 0;
}
.hb-footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .hb-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hb-footer-grid { grid-template-columns: repeat(5, 1fr); }
}
.hb-footer-brand .hb-flogo img { display: block; height: 36px; width: auto; }
.hb-footer-brand p {
  margin: 16px 0 0;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}
.hb-footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a0b2e;
}
.hb-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hb-footer-col a {
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
.hb-footer-col a:hover { color: #1a0b2e; }
.hb-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: #64748b;
}
@media (min-width: 640px) {
  .hb-footer-bottom { flex-direction: row; }
}

/* ---- SupportCandy ticket form: brand-matched, professional styling ---- */
#wpsc-container { max-width: 760px; }

/* generous gaps between fields (covers inline + modal render) */
#wpsc-container .wpsc-tff,
.wpsc-modal-body .wpsc-tff {
  margin-bottom: 28px !important;
  padding-bottom: 0 !important;
}
#wpsc-container .wpsc-input-group,
.wpsc-modal-body .wpsc-input-group {
  padding-bottom: 28px !important;
}
#wpsc-container .wpsc-tff-label,
.wpsc-modal-body .wpsc-tff-label,
#wpsc-container .wpsc-tff .name,
.wpsc-modal-body .wpsc-tff .name,
#wpsc-container .wpsc-input-group label,
.wpsc-modal-body .wpsc-input-group label {
  display: block;
  margin-bottom: 8px !important;
  font-weight: 600;
  color: #1a0b2e;
  font-size: 0.9rem;
}

#wpsc-container input[type="text"],
#wpsc-container input[type="password"],
#wpsc-container input[type="email"],
#wpsc-container input[type="url"],
#wpsc-container input[type="number"],
#wpsc-container select,
#wpsc-container textarea,
#wpsc-container .select2-container .select2-selection {
  width: 100%;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 0.95rem !important;
  color: #1a0b2e !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  box-sizing: border-box;
}
#wpsc-container textarea { min-height: 140px; }

#wpsc-container input[type="text"]:focus,
#wpsc-container input[type="password"]:focus,
#wpsc-container input[type="email"]:focus,
#wpsc-container input[type="url"]:focus,
#wpsc-container input[type="number"]:focus,
#wpsc-container select:focus,
#wpsc-container textarea:focus,
#wpsc-container .select2-container--focus .select2-selection,
#wpsc-container .select2-container--open .select2-selection {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
  outline: none !important;
}

/* select2 dropdowns (Product, Category) */
#wpsc-container .select2-container .select2-selection--single {
  height: auto !important;
  min-height: 42px;
  display: flex;
  align-items: center;
}
#wpsc-container .select2-selection__arrow { height: 40px !important; }
.select2-dropdown {
  border-color: #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.select2-results__option--highlighted[aria-selected] {
  background-color: #7c3aed !important;
}

/* buttons */
#wpsc-container .wpsc-button,
.wpsc-modal .wpsc-button,
#wpsc-container button[type="submit"] {
  background: #7c3aed !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 11px 22px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.2s !important;
}
#wpsc-container .wpsc-button:hover,
.wpsc-modal .wpsc-button:hover { background: #6d28d9 !important; }

#wpsc-container .wpsc-back-button {
  background: #fff !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}
#wpsc-container .wpsc-back-button:hover {
  background: #f8fafc !important;
  color: #1a0b2e !important;
}

/* section / widget headers */
#wpsc-container .wpsc-section-header,
#wpsc-container .wpsc-widget-header {
  font-weight: 700;
  color: #1a0b2e;
}

/* Comfortable reading measure and links in post content */
.wp-block-post-content a,
.entry-content a {
  text-underline-offset: 3px;
}

/* Subtle card feel for the posts list on archives */
.wp-block-post-template > li {
  padding-bottom: 1.5rem;
}
