/* Custom Styles for BAU Academic Resource Hub */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --color-primary: #061b0e;
  --color-primary-container: #1b3022;
  --color-secondary: #43664d;
  --color-secondary-container: #c2e9c9;
  --color-tertiary: #121911;
  --color-background: #f9faf2;
  --color-surface: #f9faf2;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f3f4ec;
  --color-surface-container: #edefe7;
  --color-surface-container-high: #e8e9e1;
  --color-outline: #737973;
  --color-outline-variant: #c3c8c1;
  --color-border-card: #cad2c5;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-background);
  color: #1a1c18;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Hanken Grotesk', sans-serif;
}

.font-mono, .code-label {
  font-family: 'JetBrains Mono', monospace;
}

/* Material Symbols configuration */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d9dbd3;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c3c8c1;
}

/* Forum stalk tree connector lines */
.forum-thread-stalk {
  position: relative;
}

.forum-thread-stalk::before {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 16px;
  left: 20px;
  width: 2px;
  background: #cad2c5;
  border-radius: 1px;
}

/* Card hover animation & shadows */
.card-academic {
  border: 1px solid var(--color-border-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-academic:hover {
  box-shadow: 0 8px 24px -4px rgba(6, 27, 14, 0.08);
  border-color: #84a98c;
  transform: translateY(-2px);
}

/* Modal and Backdrop animations */
.modal-backdrop {
  background-color: rgba(6, 27, 14, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Navigation active tab accent bar */
.nav-link {
  transition: all 0.15s ease-in-out;
}

.nav-link.active {
  background-color: #c2e9c9 !important;
  color: #0b2013 !important;
  font-weight: 600;
}

.nav-link.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

/* Dropzone drag styles */
.dropzone-active {
  border-color: #43664d !important;
  background-color: #f3f4ec !important;
}

/* Badge styles */
.badge-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
