/* Gordon Rumble Website Styles */
/* Color Palette: Soft tan, white, black */

:root {
  --tan-light: #f5f0e8;
  --tan: #e8dfd1;
  --tan-dark: #d4c4a8;
  --white: #ffffff;
  --off-white: #fafafa;
  --black: #1a1a1a;
  --gray: #666666;
  --gray-light: #999999;
  --accent: #8b7355;
  --accent-light: #a08b6d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--tan-light);
  color: var(--black);
  line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

a {
  color: var(--black);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.btn-primary {
  background-color: var(--black);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.2);
}

.btn-primary:hover {
  background-color: #333;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.25);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--tan);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--black);
  border: 1.5px solid var(--tan-dark);
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
  transform: translateY(-2px);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--tan);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--black);
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 7rem 3rem 4rem;
  background-color: var(--tan-light);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  filter: grayscale(10%);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3/4;
  background-color: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-style: italic;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text .subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-text .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* Full Hero with Parallax Layers */
.hero-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--tan-light);
  transform: translateY(-4%);
}

/* Background Layer */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: transform 0.1s ease-out;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
}

/* Foreground Gordon Layer */
.hero-fg-layer {
  position: absolute;
  left: 4%;
  bottom: -5%;
  z-index: 3;
  transition: transform 0.1s ease-out;
  pointer-events: none;
}

.hero-gordon {
  height: 90vh;
  max-height: 850px;
  width: auto;
  object-fit: contain;
}

/* Overlay gradient for text readability */
.hero-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(245, 240, 232, 0.3) 0%,
    rgba(245, 240, 232, 0.7) 40%,
    rgba(245, 240, 232, 0.95) 60%,
    rgba(245, 240, 232, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Big name behind Gordon */
.hero-name-bg {
  position: absolute;
  left: 30%;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 0.85;
}

.hero-name-bg .name-gordon,
.hero-name-bg .name-rumble {
  font-size: clamp(3.8rem, 9.5vw, 8.5rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Tagline to the right */
.hero-tagline {
  position: absolute;
  right: 18%;
  top: 30%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hero-tagline span {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Carousel wrapper - bottom right */
.hero-carousel-wrapper {
  position: absolute;
  right: 28%;
  bottom: 8%;
  z-index: 5;
}

/* Carousel animation for clicks */
@keyframes cardClick {
  0% {
    transform: translateX(-50%) scale(1.02);
  }
  50% {
    transform: translateX(-50%) scale(0.98);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* Carousel */
.carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  height: 200px;
  width: 100%;
  max-width: 600px;
}

.carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.5rem 3.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 180px;
  position: absolute;
  cursor: pointer;
  left: 50%;
  will-change: transform, opacity;
}

.carousel-card.active {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.carousel-card.active:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) scale(1.02);
}

.carousel-card.active.clicked {
  animation: cardClick 0.3s ease-out;
}

.carousel-card.prev {
  opacity: 0.6;
  transform: translateX(calc(-50% - 200px)) scale(0.9);
  z-index: 5;
  filter: blur(1px);
}

.carousel-card.prev:hover {
  opacity: 0.75;
  transform: translateX(calc(-50% - 200px)) scale(0.95);
  filter: blur(0.5px);
}

.carousel-card.next {
  opacity: 0.6;
  transform: translateX(calc(-50% + 200px)) scale(0.9);
  z-index: 5;
  filter: blur(1px);
}

.carousel-card.next:hover {
  opacity: 0.75;
  transform: translateX(calc(-50% + 200px)) scale(0.95);
  filter: blur(0.5px);
}

.carousel-card.far-prev,
.carousel-card.far-next,
.carousel-card.hidden {
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  z-index: 0;
  pointer-events: none;
}

.carousel-card svg {
  width: 80px;
  height: 80px;
  color: var(--black);
  transition: all 0.4s ease;
}

.carousel-card.active svg {
  color: var(--black);
  width: 80px;
  height: 80px;
}

.carousel-card span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.01em;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 8rem;
}

.carousel-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tan-dark);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--gray);
}

.carousel-dot.active {
  background: var(--black);
  width: 40px;
  border-radius: 7px;
}

/* Featured Carousel */
.featured-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.featured-carousel-container {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}

.featured-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease-out;
}

.featured-carousel-track .content-card {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tan);
  border: 2px solid var(--tan-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  color: var(--black);
}

.carousel-nav:hover {
  background: var(--tan-dark);
  border-color: var(--black);
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
}

.featured-carousel-dots {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.featured-carousel-dots .carousel-dot {
  width: 10px;
  height: 10px;
}

.featured-carousel-dots .carousel-dot.active {
  width: 10px;
  border-radius: 50%;
}

/* Section Styles */
.section {
  padding: 5rem 3rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-alt {
  background-color: var(--white);
  text-align: center;
}

.section-alt h2 {
  font-size: 3rem;
  margin: 0 auto 1.5rem;
}

.section-alt p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.content-card {
  background-color: var(--white);
  padding: 1.5rem;
  border: 1px solid rgba(212, 196, 168, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-light);
}

.content-card:hover::before {
  transform: scaleX(1);
}

.content-card .type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Category and End Times Category Labels */
.content-card .card-body .category,
.content-card .card-body .endTimesCategory {
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
  display: inline-block !important;
}

.content-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--black);
}

.content-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.content-card .meta {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.content-card .price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}

.content-card .price.free {
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.1);
  padding: 0.45rem 1.15rem;
  border-radius: 24px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Resource Card Previews */
.content-card.has-preview {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.content-card.has-preview .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.content-card .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.content-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 196, 168, 0.2);
  margin-top: 1rem;
}

.card-preview {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: var(--tan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 16px 0 0;
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.content-card:hover .card-preview img {
  transform: scale(1.05);
}

/* Clickable preview links (for books with external links) */
.preview-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: none;
}

.preview-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Add subtle external link indicator on hover */
.preview-link::after {
  content: '↗';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.preview-link:hover::after {
  opacity: 1;
}

.card-preview-video .preview-play-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.card-preview-video .preview-play-icon svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.content-card:hover .card-preview-video .preview-play-icon {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}

.card-preview-file,
.card-preview-pdf,
.card-preview-audio,
.card-preview-ppt,
.card-preview-doc {
  flex-direction: column;
  gap: 0.5rem;
}

.card-preview .preview-icon {
  width: 48px;
  height: 48px;
  color: var(--gray);
  transition: all 0.3s ease;
}

.card-preview .preview-icon svg {
  width: 100%;
  height: 100%;
}

.card-preview .preview-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-light);
}

.content-card:hover .card-preview .preview-icon {
  color: var(--accent);
  transform: scale(1.1);
}

/* Preview type colors */
.card-preview-pdf { background: linear-gradient(135deg, #fef3f3, #fde8e8); }
.card-preview-pdf .preview-icon { color: #dc2626; }

.card-preview-audio { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.card-preview-audio .preview-icon { color: #16a34a; }

.card-preview-ppt { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.card-preview-ppt .preview-icon { color: #ea580c; }

.card-preview-doc { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.card-preview-doc .preview-icon { color: #2563eb; }

.card-preview-video.card-preview-file { background: linear-gradient(135deg, #faf5ff, #f3e8ff); }
.card-preview-video.card-preview-file .preview-icon { color: #9333ea; }


.no-resources {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-light);
  padding: 4rem 2rem;
  font-size: 1.05rem;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-light);
  padding: 4rem 2rem;
  font-size: 1.05rem;
}

/* Bio Page */
.bio-hero {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
  padding-top: 8rem;
}

.bio-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.bio-content h1 {
  margin-bottom: 2rem;
}

.bio-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* End Times Page */
.page-hero {
  padding: 10rem 3rem 5rem;
  text-align: center;
  background-color: var(--tan);
}

.page-hero h1 {
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray);
  line-height: 1.6;
}

/* Resources Page */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.filter-left {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  background-color: var(--white);
  border: 1.5px solid var(--tan-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.filter-divider {
  width: 1px;
  height: 24px;
  background-color: var(--tan-dark);
  margin: 0 0.5rem;
}

.filter-select {
  padding: 0.65rem 2.2rem 0.65rem 1rem;
  background-color: var(--white);
  border: 1.5px solid var(--tan-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
  color: var(--gray);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.2em 1.2em;
}

.filter-select:hover {
  border-color: var(--black);
}

.filter-select:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--black);
}

.filter-select:has(option:checked:not(:first-child)) {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.filter-select option {
  color: var(--black);
  background-color: var(--white);
}

/* Search Wrapper */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--white);
  border: 1.5px solid var(--tan-dark);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  color: var(--black);
  flex-shrink: 0;
}

.search-toggle:hover {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.search-toggle svg {
  width: 20px;
  height: 20px;
}

.search-wrapper.active .search-toggle {
  opacity: 0;
  pointer-events: none;
  width: 0;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1.5px solid var(--tan-dark);
  border-radius: 20px;
  padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  width: 280px;
  height: 44px;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.search-wrapper.active .search-box {
  max-width: 280px;
  opacity: 1;
  pointer-events: auto;
}

.search-input {
  background: none;
  border: none;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  color: var(--black);
  width: 100%;
  min-width: 0;
  padding: 0.25rem 0;
}

.search-input::placeholder {
  color: var(--gray-light);
}

.search-input:focus {
  outline: none;
}

.search-box.active:focus-within {
  border-color: var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.search-close:hover {
  color: var(--black);
}

.search-close svg {
  width: 18px;
  height: 18px;
}

.search-box.active .search-close {
  display: flex;
}

/* Search responsive */
@media (max-width: 768px) {
  .search-box {
    width: 200px;
  }

  .search-wrapper.active .search-box {
    max-width: 200px;
  }
}

@media (max-width: 600px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-left {
    width: 100%;
    justify-content: center;
  }

  .search-wrapper {
    justify-content: flex-end;
    margin-left: 0;
  }

  .search-box {
    width: calc(100% - 50px);
  }

  .search-wrapper.active .search-box {
    max-width: calc(100% - 50px);
  }
}

/* Footer */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 4rem 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-about h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #333;
  text-align: center;
  color: var(--gray-light);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1440px) {
  .hero-tagline {
    right: 12%;
  }

  .hero-carousel-wrapper {
    right: 20%;
  }

  .carousel-track {
    max-width: 500px;
    height: 180px;
  }

  .carousel-card {
    padding: 2.5rem 3.5rem;
    min-width: 200px;
    gap: 1.2rem;
  }

  .carousel-card svg {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1024px) {
  .hero-name-bg {
    left: 8%;
  }

  .hero-name-bg .name-gordon,
  .hero-name-bg .name-rumble {
    font-size: clamp(4rem, 12vw, 10rem);
  }

  .hero-tagline {
    right: 3%;
    top: 15%;
  }

  .hero-tagline span {
    font-size: clamp(1rem, 2vw, 1.6rem);
  }

  .hero-carousel-wrapper {
    right: 8%;
    bottom: 6%;
  }

  .carousel-track {
    width: 100%;
    max-width: 360px;
    height: 140px;
  }

  .carousel-card {
    padding: 1.5rem 2.2rem;
    min-width: 140px;
    gap: 0.8rem;
  }

  .carousel-card svg {
    width: 32px;
    height: 32px;
  }

  .carousel-card span {
    font-size: 0.75rem;
  }

  .carousel-card.prev {
    transform: translateX(calc(-50% - 110px)) scale(0.75);
  }

  .carousel-card.next {
    transform: translateX(calc(-50% + 110px)) scale(0.75);
  }

  .hero-image {
    order: -1;
  }

  .hero-image img,
  .hero-image-placeholder {
    max-width: 280px;
    margin: 0 auto;
  }

  .bio-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bio-image img {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .hero-tagline {
    right: 2%;
    top: 12%;
  }

  .hero-tagline span {
    font-size: clamp(0.9rem, 1.8vw, 1.4rem);
  }

  .hero-carousel-wrapper {
    right: 5%;
    bottom: 5%;
  }

  .carousel-track {
    max-width: 300px;
    height: 120px;
  }

  .carousel-card {
    padding: 1.2rem 1.8rem;
    min-width: 120px;
    gap: 0.6rem;
  }

  .carousel-card svg {
    width: 28px;
    height: 28px;
  }

  .carousel-card span {
    font-size: 0.7rem;
  }

  .carousel-card.prev {
    transform: translateX(calc(-50% - 110px)) scale(0.75);
  }

  .carousel-card.next {
    transform: translateX(calc(-50% + 110px)) scale(0.75);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--tan);
    border-radius: 0 0 12px 12px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile hero - stack vertically */
  .hero-full {
    min-height: auto;
    padding: 5rem 1rem 2rem;
    flex-direction: column;
  }

  .hero-bg-layer {
    width: 100%;
    height: 50%;
    top: 0;
  }

  .hero-fg-layer {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 3;
  }

  .hero-gordon {
    height: auto;
    max-height: 350px;
    width: auto;
  }

  .hero-name-bg {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    text-align: center;
    margin-top: -2rem;
  }

  .hero-name-bg .name-gordon,
  .hero-name-bg .name-rumble {
    font-size: 3.5rem;
  }

  .hero-tagline {
    position: relative;
    right: auto;
    top: auto;
    text-align: center;
    margin-top: 1rem;
  }

  .hero-tagline span {
    font-size: 1rem;
  }

  .hero-carousel-wrapper {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
    width: 100%;
  }

  .carousel-track {
    width: calc(100% - 2rem);
    max-width: 340px;
    margin: 0 auto;
    gap: 1rem;
  }

  .carousel-card {
    padding: 1rem 1.5rem;
    min-width: 90px;
  }

  .carousel-card.prev {
    transform: translateX(calc(-50% - 100px)) scale(0.8);
  }

  .carousel-card.next {
    transform: translateX(calc(-50% + 100px)) scale(0.8);
  }

  .carousel-card svg {
    width: 36px;
    height: 36px;
  }

  .carousel-dots {
    margin-top: 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem 2.5rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }

  .quick-access {
    padding: 2.5rem 1.5rem;
  }

  .quick-access h2 {
    margin-bottom: 1.5rem;
  }

  .quick-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }

  .quick-link {
    padding: 0.875rem 0.5rem;
  }

  .quick-link span {
    font-size: 0.65rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-hero {
    padding: 7rem 1.5rem 3rem;
  }

  .page-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .page-hero p {
    font-size: 1.05rem;
  }

  .filter-bar {
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .filter-btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.825rem;
  }

  .content-grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 1.5rem;
  }

  .content-card.has-preview .card-content {
    padding: 1.5rem;
  }

  .card-preview {
    height: 160px;
  }

  .content-card .card-footer {
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }

  .content-card .price {
    font-size: 0.95rem;
  }

  .content-card .price.free {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
  }

  .btn-outline {
    padding: 0.55rem 1.2rem;
    font-size: 0.7rem;
  }
}

/* ========================================
   RESOURCE DETAIL PAGE
   ======================================== */

.resource-detail-container {
  min-height: calc(100vh - 80px);
  padding-top: 80px;
}

.resource-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 1.5rem;
}

.resource-loading p {
  color: var(--gray-light);
  font-size: 1.05rem;
}

.resource-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 5rem;
}

.resource-header {
  margin-bottom: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.back-link svg {
  flex-shrink: 0;
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

.resource-header-content {
  animation: fadeInUp 0.6s ease-out;
}

.resource-header .type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.resource-header h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  color: var(--black);
}

.resource-header .description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.resource-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.resource-meta-bar .meta {
  font-size: 1rem;
  color: var(--gray-light);
  font-weight: 500;
}

.resource-meta-bar .price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
}

.resource-meta-bar .price.free {
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
  font-size: 1rem;
}

/* Viewer Styles */
.resource-viewer {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.viewer-youtube iframe,
.viewer-pdf iframe,
.viewer-office iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.viewer-fallback {
  text-align: center;
  padding: 1rem;
  background: var(--tan-light);
  border-radius: 0 0 12px 12px;
  font-size: 0.9rem;
  color: var(--gray);
}

.viewer-fallback a {
  color: var(--accent);
  font-weight: 500;
}

.viewer-video video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.viewer-audio {
  padding: 3rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.audio-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.audio-icon {
  width: 80px;
  height: 80px;
  color: #16a34a;
}

.viewer-audio audio {
  width: 100%;
  max-width: 600px;
}

.viewer-image {
  padding: 2rem;
  background: var(--tan-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.viewer-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.viewer-default,
.viewer-external,
.viewer-empty {
  padding: 4rem 2rem;
  text-align: center;
}

.download-prompt,
.external-prompt {
  max-width: 400px;
  margin: 0 auto;
}

.download-prompt svg,
.external-prompt svg {
  width: 80px;
  height: 80px;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.download-prompt h3,
.external-prompt h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.download-prompt p,
.external-prompt p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.download-prompt .btn,
.external-prompt .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.viewer-empty {
  color: var(--gray-light);
  font-size: 1.05rem;
}

/* Resource Actions */
.resource-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.resource-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-actions .btn svg {
  width: 20px;
  height: 20px;
}

/* Error State */
.resource-error {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}

.resource-error svg {
  width: 80px;
  height: 80px;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.resource-error h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.resource-error p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .resource-detail {
    padding: 2rem 1.5rem 3rem;
  }

  .resource-header h1 {
    font-size: 2rem;
  }

  .resource-header .description {
    font-size: 1.05rem;
  }

  .viewer-youtube iframe,
  .viewer-pdf iframe,
  .viewer-office iframe {
    height: 400px;
  }

  .viewer-audio {
    padding: 2rem 1.5rem;
  }

  .audio-icon {
    width: 60px;
    height: 60px;
  }

  .download-prompt svg,
  .external-prompt svg {
    width: 60px;
    height: 60px;
  }

  .resource-actions {
    flex-direction: column;
  }

  .resource-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ADMIN STYLES
   ======================================== */

/* Admin Login Page */
.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--tan-light);
}

.admin-login-card {
  background-color: var(--white);
  padding: 3rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-login-card h1 {
  margin-bottom: 0.5rem;
}

.admin-login-card > p {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
}

.google-btn svg {
  flex-shrink: 0;
}

.login-error {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #fee;
  color: #c00;
  border-radius: 8px;
  font-size: 0.9rem;
}

.login-loading {
  margin-top: 1rem;
  color: var(--gray);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Admin Navigation */
.admin-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--tan);
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-email {
  font-size: 0.85rem;
  color: var(--gray);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #c82333;
  opacity: 1;
}

/* Admin Auth Loading State */
.admin-loading .admin-nav,
.admin-loading .admin-container {
  display: none !important;
}

.auth-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  z-index: 9999;
}

.admin-loading .auth-loader {
  display: flex;
}

body:not(.admin-loading) .auth-loader {
  display: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--tan);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Admin Layout */
.admin-container {
  display: flex;
  min-height: 100vh;
  padding-top: 60px;
}

.admin-sidebar {
  width: 200px;
  background-color: var(--white);
  border-right: 1px solid var(--tan);
  padding: 1.5rem 0;
  position: fixed;
  top: 60px;
  bottom: 0;
  left: 0;
}

.admin-tab {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  background-color: var(--tan-light);
  color: var(--black);
}

.admin-tab.active {
  background-color: var(--tan);
  color: var(--black);
  font-weight: 500;
}

.admin-main {
  flex: 1;
  margin-left: 200px;
  padding: 2rem;
  background-color: var(--tan-light);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-section-header h1 {
  margin-bottom: 0;
}

/* Admin Filters */
.admin-filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  border: 1px solid var(--tan-dark);
  border-radius: 8px;
  background-color: var(--white);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--tan-dark);
  pointer-events: none;
  font-size: 1rem;
}

.clear-search-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--tan-dark);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.clear-search-btn:hover {
  color: var(--dark);
}

.admin-filters select {
  padding: 0.5rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  border: 1px solid var(--tan-dark);
  border-radius: 8px;
  background-color: var(--white);
}

/* Admin Resources List */
.admin-resources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-resource-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--tan);
}

.resource-info {
  flex: 1;
}

.resource-info h3 {
  margin-bottom: 0.5rem;
}

.resource-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.resource-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--tan);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.resource-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.resource-meta .free {
  color: #2a7d4f;
}

.featured-badge {
  background-color: #ffd700;
  color: var(--black);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.resource-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-star {
  background-color: var(--white);
  color: #cccccc;
  border: 2px solid #cccccc;
  padding: 0.4rem 0.65rem;
  font-size: 1.4rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  line-height: 1;
}

.btn-star:hover {
  color: #ffa500;
  border-color: #ffa500;
  background-color: #fffaf0;
}

.btn-star.active {
  color: #ff8c00;
  border-color: #ff8c00;
  background-color: #fff8dc;
  font-weight: 600;
}

.streamlined-badge {
  background-color: #87ceeb;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.no-resources,
.loading,
.error {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

.error {
  color: #c00;
}

/* Admin Form */
.admin-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--black);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  border: 1px solid var(--tan-dark);
  border-radius: 8px;
  background-color: var(--white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--black);
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tan);
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--tan-dark);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--black);
  background-color: var(--tan-light);
}

.drop-zone-content {
  pointer-events: none;
}

.drop-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.drop-zone p {
  margin-bottom: 0.25rem;
}

.drop-hint {
  font-size: 0.8rem;
  color: var(--gray-light);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--tan-light);
  border-radius: 8px;
}

.file-preview #fileName {
  flex: 1;
  font-size: 0.9rem;
}

.remove-file {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.remove-file:hover {
  color: #c00;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background-color: var(--tan);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--black);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--gray);
  min-width: 40px;
}

/* YouTube Preview */
.youtube-preview {
  margin-top: 1rem;
}

.youtube-preview iframe {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Admin Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    display: flex;
    overflow-x: auto;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--tan);
  }

  .admin-tab {
    white-space: nowrap;
    padding: 1rem 1.5rem;
  }

  .admin-main {
    margin-left: 0;
    padding: 1.5rem;
  }

  .admin-container {
    flex-direction: column;
  }

  .admin-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-resource-card {
    flex-direction: column;
  }

  .resource-actions {
    width: 100%;
  }

  .resource-actions .btn {
    flex: 1;
  }
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog Post Card */
.blog-post-card {
  background-color: var(--white);
  padding: 2rem;
  border: 1px solid rgba(212, 196, 168, 0.3);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
}

.blog-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-light);
}

.blog-post-card:hover::before {
  transform: scaleX(1);
}

/* Blog Card Header */
.blog-card-header {
  margin-bottom: 1rem;
}

.blog-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.blog-card-header h3 a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-header h3 a:hover {
  color: var(--accent);
}

/* Blog Card Excerpt */
.blog-card-excerpt {
  flex: 1;
  margin-bottom: 1.5rem;
}

.blog-card-excerpt p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Blog Card Footer */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 196, 168, 0.2);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.blog-card-date {
  font-weight: 500;
  color: var(--gray);
}

/* Blog Metadata */
.blog-metadata {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.metadata-separator {
  color: var(--tan-dark);
}

.blog-date {
  font-weight: 500;
}

.reading-time {
  font-size: 0.9rem;
}

.blog-author {
  font-size: 0.9rem;
}

/* Blog Post Container */
.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 3rem 6rem;
}

/* Blog Header Top (Back Link) */
.blog-header-top {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--accent);
}

/* Blog Post Header */
.blog-post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--tan);
}

.blog-post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

/* Blog Content */
.blog-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 65ch;
}

.blog-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.blog-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.blog-content h4 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.blog-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
}

.blog-content a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-content a:hover {
  color: var(--accent-light);
  opacity: 1;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.blog-content code {
  background-color: var(--tan);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--black);
}

.blog-content pre {
  background-color: var(--tan);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

/* Blog Post Footer */
.blog-post-footer {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 2px solid var(--tan);
  border-bottom: 2px solid var(--tan);
}

/* Blog Post Navigation */
.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.prev-post,
.next-post {
  padding: 2rem;
  background-color: var(--white);
  border: 1px solid rgba(212, 196, 168, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.prev-post:hover,
.next-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.prev-post a,
.next-post a {
  display: block;
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.prev-post a:hover,
.next-post a:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
}

.nav-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Pagination */
.pagination {
  margin-top: 4rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.65rem 1rem;
  background-color: var(--white);
  border: 1.5px solid var(--tan-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  color: var(--black);
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.pagination-btn.active {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error Message */
.error {
  color: #dc2626;
  padding: 1.5rem;
  background-color: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
  text-align: center;
}

/* Blog Responsive */
@media (max-width: 768px) {
  .blog-post-container {
    padding: 3rem 1.5rem;
  }

  .blog-post-title {
    font-size: 1.75rem;
  }

  .blog-post-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-content {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .blog-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }

  .blog-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-card-footer .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .blog-post-card {
    padding: 1.5rem;
  }

  .blog-metadata {
    font-size: 0.85rem;
  }

  .pagination-controls {
    gap: 0.25rem;
  }

  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Import Log Styles */
.import-log-entry {
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 3px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.import-log-info {
  background: #e3f2fd;
  color: #1976d2;
}

.import-log-success {
  background: #c8e6c9;
  color: #2e7d32;
}

.import-log-error {
  background: #ffcdd2;
  color: #c62828;
}

.import-log-warning {
  background: #fff3e0;
  color: #e65100;
}

.import-log-processing {
  background: #f3e5f5;
  color: #6a1b9a;
}

.import-log-summary {
  background: #e0f2f1;
  color: #004d40;
  font-weight: 500;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border-left: 4px solid #00897b;
}
