/* ====================== */
/* FONT FACE DEFINITIONS */
/* ====================== */

/* Roboto Regular */
@font-face {
  font-family: "Roboto";
  src:
    local("Roboto Regular"),
    local("Roboto-Regular"),
    url("../fonts/roboto-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Roboto Medium */
@font-face {
  font-family: "Roboto";
  src:
    local("Roboto Medium"),
    local("Roboto-Medium"),
    url("../fonts/roboto-medium.woff2") format("woff2");
  font-weight: 500 600; /* Диапазон: от 500 до 600 */
  font-style: normal;
  font-display: swap;
}

/* Roboto Bold */
@font-face {
  font-family: "Roboto";
  src:
    local("Roboto Bold"),
    local("Roboto-Bold"),
    url("../fonts/roboto-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ====================== */
/* BASE STYLES */
/* ====================== */

/* Main font for the entire page */
body {
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
}

/* ====================== */
/* CARD COMPONENTS */
/* ====================== */

.card {
  border-radius: 0.25rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-header {
  background-image: linear-gradient(135deg, #2980b9, #1e6091);
}

.card-width {
  max-width: min(90vw, 800px);
  width: 100%;
}

@media (max-width: 576px) {
  .card-width {
    max-width: 100%;
  }

  .card-header h3 {
    font-size: 1.2rem;
  }
}

/* ====================== */
/* 3D BUTTON STYLES */
/* ====================== */

.btn-3d {
  /* Basic button properties */
  border: 2px solid transparent;
  border-radius: 10px;
  display: inline-block;
  text-align: center;
  user-select: none;
  cursor: pointer;
  position: relative;
  outline: 0 !important;
  outline-offset: 0 !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Shadows for 3D effect */
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    0 2px 5px rgba(0, 0, 0, 0.15);

  /* Smooth transitions */
  transition:
    box-shadow 0.2s ease,
    border 0.2s ease;
}

/* Highlight for 3D effect */
.btn-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  border-radius: 10px 10px 0 0;
}

/* Hover effect */
.btn-3d:hover {
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    0 3px 7px rgba(0, 0, 0, 0.2);
}

/* Active/pressed effect */
.btn-3d:active {
  box-shadow:
    0 3px 5px rgba(0, 0, 0, 0.2) inset,
    0 1px 2px rgba(0, 0, 0, 0.1);
  outline: 0 !important;
}

/* Focus state */
.btn-3d:focus,
.btn-3d:focus-visible {
  outline: 0 !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

/* Disabled state */
.btn-3d:disabled {
  box-shadow: none;
  cursor: not-allowed;
  outline: 0 !important;
}
