/**
 * Bridge - Shared CSS utilities for Bridge Theme
 */

/* Calibri Font Family */
@font-face {
    font-family: 'Calibri';
    src: url('../fonts/calibri.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Calibri';
    src: url('../fonts/calibri-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Calibri';
    src: url('../fonts/calibri-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Calibri';
    src: url('../fonts/calibri-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Calibri';
    src: url('../font-calibri-bold-italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

 /* Bridge Theme Base Styles */

/* Font Awesome Fix for Chrome/Firefox */
@font-face {
    font-family: "Font Awesome 7 Free";
    font-display: swap;
}

.fa,
.fas,
.far,
.fab {
    font-display: swap !important;
}

/* Ensure Font Awesome icons load properly */
i[class^="fa-"],
i[class*=" fa-"] {
    font-family: "Font Awesome 7 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

body {
    font-family: Calibri;
    margin: 0;
    padding: 0;
    background-color: white;
    -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none !important;
}

/* Global Styles */
.container {
    max-width: 1240px;
    margin: 80px auto 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 65px;
    left: 20px;
    width: 22px;
    height: 20px;
    padding-top: 2px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: white;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 24px;
        height: 24px;
        bottom: 70px;
        left: 15px;
    }
}

.notifications--error {
    padding: 20px 15px;
    margin: 5px 0 10px 0;
    list-style: none;
    background-color: #f9caca;
    color: #7a0026;
}

/* Shared Backdrop/Loading Overlay */
.bridge-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.bridge-backdrop-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.bridge-spinner {
  margin-bottom: 16px;
}

.bridge-spinner i {
  font-size: 32px;
  color: #007bff;
}

.bridge-backdrop-text {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  margin: 0;
}

/* Animation states */
.bridge-backdrop.show {
  opacity: 1;
}

.bridge-backdrop.show .bridge-backdrop-content {
  transform: scale(1);
}

.bridge-backdrop.hide {
  opacity: 0;
}

.bridge-backdrop.hide .bridge-backdrop-content {
  transform: scale(0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bridge-backdrop-content {
    padding: 30px;
    min-width: 150px;
  }

  .bridge-spinner i {
    font-size: 28px;
  }

  .bridge-backdrop-text {
    font-size: 14px;
  }
}
