/* Better Bite Orlando | Resources Page */

/* Main Layout */

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.resources-page {
  flex: 1;
  font-family: var(--bbo-font);
  color: var(--bbo-text-dark);
  background-color: var(--bbo-white);
}

/* Hero Section */

.resources-hero {
  overflow: hidden;

  background: linear-gradient(110deg, #f4f1e8 0%, #edf5ee 55%, #dcebd7 100%);
}

.resources-hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 210px;
  padding: 20px 0;
}

.resources-hero-content {
  flex: 1;
  max-width: 550px;
}

.resources-hero h1 {
  color: var(--bbo-primary);
  font-size: clamp(26px, 2vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
}

.resources-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 0;
}

.hero-line {
  width: 85px;
  height: 5px;
  background: var(--bbo-primary-hover);
  border-radius: 10px;
}

/* Decorative Hero Artwork */

.resources-hero-art {
  position: relative;

  width: 390px;
  height: 210px;

  flex-shrink: 0;

  /* Scale the entire illustration */
  transform: scale(0.8);
  transform-origin: right center;

  /* Compensate for the original layout dimensions */
  margin-left: -78px;
  margin-top: -21px;
  margin-bottom: -21px;
}

.hero-books {
  position: absolute;
  left: 35px;
  bottom: 10px;
  width: 270px;

  display: flex;
  flex-direction: column;

  transform: rotate(-2deg);
}

.hero-books span {
  padding: 12px 18px;
  color: white;
  font-family: var(--bbo-font);
  font-size: 18px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 3px 5px 8px rgba(0, 0, 0, 0.15);
}

.hero-books span:nth-child(1) {
  background-color: #547a38;
  width: 90%;
  margin-left: 10%;
}

.hero-books span:nth-child(2) {
  background-color: var(--bbo-orange-text);
  width: 100%;
}

.hero-books span:nth-child(3) {
  background-color: #8752a9;
  width: 96%;
  margin-left: 2%;
}

.hero-apple {
  position: absolute;
  left: 155px;
  top: -8px;
  z-index: 2;
  font-size: 53px;
}

.hero-bowl {
  position: absolute;
  bottom: 0;
  right: -10px;
  z-index: 3;
  font-size: 105px;
}

/* Resource Directory */

.resources-directory {
  padding: 32px 0 40px;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* Resource Panels */

.resource-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 370px;
  padding: 22px;
  border-radius: 24px;
}

.panel-green {
  background: linear-gradient(135deg, #eff9e9, #dff2d5);
}

.panel-orange {
  background: linear-gradient(135deg, #fff4e9, #ffead6);
}

.panel-purple {
  background: linear-gradient(135deg, #f8effc, #eee0f7);
}

/* Panel Heading */

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-height: 100px;
  margin-bottom: 12px;
}

.panel-heading > i {
  flex-shrink: 0;
  font-size: 34px;
  color: var(--bbo-primary);
}

/* ========================================
   RESOURCE SECTION ICON COLORS
======================================== */

/* Learn & Discover - Green */
.panel-green .panel-heading > i,
.panel-green .item-icon {
  color: #356b35;
}

/* Help & Support - Orange */
.panel-orange .panel-heading > i,
.panel-orange .item-icon {
  color: var(--bbo-orange-text);
}

/* About & Legal - Purple */
.panel-purple .panel-heading > i,
.panel-purple .item-icon {
  color: #7945a6;
}

.panel-heading h2 {
  color: var(--bbo-primary);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  margin: 0 0 7px;
}

.panel-heading p {
  color: #334155;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Resource Items */

.panel-items {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.resource-item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 14px;

  min-width: 0;
  min-height: 76px;
  padding: 15px;

  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 16px;

  color: var(--bbo-text-dark);
  text-decoration: none;
}

/* Larger Learn & Discover Items */

.panel-green .resource-item {
  min-height: 105px;
}

.item-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  width: 48px;

  text-align: center;
  font-size: 28px;
}

.item-text {
  flex: 1;
  min-width: 0;
}

.item-text h3 {
  color: var(--bbo-primary);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 5px;
}

.item-text p {
  color: var(--bbo-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.resource-item > i {
  flex-shrink: 0;
  color: var(--bbo-primary);
  font-size: 20px;
}

/* Clickable Resource Items */

a.resource-item {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

a.resource-item:hover {
  color: var(--bbo-text-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}

a.resource-item:focus-visible {
  outline: 3px solid var(--bbo-primary);
  outline-offset: 3px;
}

.coming-soon {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--bbo-text-muted);
}

/* Tablet */

@media (max-width: 991.98px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-panel {
    min-height: auto;
  }

  .panel-heading {
    min-height: auto;
  }

  .resources-hero-art {
    width: 390px;
    transform: scale(0.8);
    transform-origin: center right;
  }
}

/* Mobile */

@media (max-width: 767.98px) {
  .resources-hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 35px 0 10px;
  }

  .resources-hero-art {
    align-self: center;
  }
}
