/**
 * @stylesheet   site-guide.css
 * @description  TSA/BPA Site Guide panel styles. Covers the floating trigger
 *               button and slide-in panel mapping competition requirements
 *               to direct links for judges. MindBalance only.
 * @project      MindBalance -- Mental Health Education Platform
 * @competition  TSA Webmaster 2025-26 | BPA Website Design Team Event #435, 2025-26
 * @topic        Mental Health Wellness
 * @author       [Your Name / Team Name]
 * @version      2.5.0
 * @since        January 29, 2026
 * @updated      March 16, 2026
 * @license      All Rights Reserved -- Educational Competition Use
 */

.sg-trigger {
  position: fixed;
  bottom: 80px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--user-accent, #af916d);
  border: 2px solid var(--user-accent, #af916d);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  gap: 6px;
}

@media (min-width: 521px) {
  .sg-trigger {
    width: auto;
    height: auto;
    padding: 12px 18px;
    border-radius: 30px;
  }
}

.sg-trigger:hover {
  transform: translateY(-4px);
  background: var(--user-accent, #af916d);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.sg-trigger:active {
  transform: scale(0.95);
}

.sg-trigger ion-icon {
  font-size: 22px;
}

[data-theme="dark"] .sg-trigger {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sg-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.sg-trigger__label {
  display: none;
}

@media (min-width: 521px) {
  .sg-trigger__label {
    display: inline;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
  }
}

.sg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sg-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sg-panel {
  position: fixed;
  top: 0;
  left: -480px;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sg-panel.is-open {
  left: 0;
}

[data-theme="dark"] .sg-panel {
  background: #1a1a2e;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.sg-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #ece8e0;
  background: #faf9f6;
  flex-shrink: 0;
}

[data-theme="dark"] .sg-panel__header {
  background: #22203a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sg-panel__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-panel__header-left ion-icon {
  font-size: 1.5rem;
  color: var(--user-accent, #af916d);
}

.sg-panel__header-left h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

[data-theme="dark"] .sg-panel__header-left h2 {
  color: #fff;
}

.sg-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  color: #666;
}

.sg-panel__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .sg-panel__close {
  color: #aaa;
}

[data-theme="dark"] .sg-panel__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sg-panel__close ion-icon {
  font-size: 1.4rem;
}

.sg-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 30px;
}

.sg-panel__intro {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ece8e0;
}

[data-theme="dark"] .sg-panel__intro {
  color: #9a9ab5;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sg-requirements__title,
.sg-extras__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}

[data-theme="dark"] .sg-requirements__title,
[data-theme="dark"] .sg-extras__title {
  color: #fff;
}

.sg-requirements__title ion-icon,
.sg-extras__title ion-icon {
  font-size: 1.2rem;
  color: var(--user-accent, #af916d);
}

.sg-req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.sg-req-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #faf9f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sg-req-card:hover {
  border-color: var(--user-accent, #af916d);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .sg-req-card {
  background: #2d2b3d;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .sg-req-card:hover {
  border-color: var(--user-accent, #af916d);
  box-shadow: none;
}

.sg-req-card__number {
  width: 32px;
  height: 32px;
  background: var(--user-accent, #af916d);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sg-req-card__content {
  flex: 1;
  min-width: 0;
}

.sg-req-card__content h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 3px;
}

[data-theme="dark"] .sg-req-card__content h4 {
  color: #e0e0e8;
}

.sg-req-card__content p {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.5;
  margin: 0;
}

[data-theme="dark"] .sg-req-card__content p {
  color: #9a9ab5;
}

.sg-req-card__arrow {
  font-size: 1rem;
  color: #bbb;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sg-req-card:hover .sg-req-card__arrow {
  transform: translateX(3px);
  color: var(--user-accent, #af916d);
}

[data-theme="dark"] .sg-req-card__arrow {
  color: #666;
}

.sg-extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.sg-extra-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #faf9f6;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #555;
}

[data-theme="dark"] .sg-extra-item {
  background: #2d2b3d;
  border-color: rgba(255, 255, 255, 0.06);
  color: #b0b0c8;
}

.sg-extra-item ion-icon {
  font-size: 1.1rem;
  color: var(--user-accent, #af916d);
  flex-shrink: 0;
}

.sg-panel__footer {
  padding-top: 16px;
  border-top: 1px solid #ece8e0;
}

[data-theme="dark"] .sg-panel__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.sg-docs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--user-accent, #af916d);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.sg-docs-link:hover {
  opacity: 0.75;
}

.sg-docs-link ion-icon {
  font-size: 1.1rem;
}

@media (max-width: 520px) {
  .sg-panel {
    width: 100vw;
    left: -100vw;
  }

  .sg-trigger {
    bottom: 80px;
    left: 16px;
  }

  .sg-extras-grid {
    grid-template-columns: 1fr;
  }
}
