/* Resources Page Stylesheet */

.resources-hero {
  position: relative;
  padding: 8rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.resources-hero-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(71, 33, 209, 0.2), #000 65%);
  z-index: -1;
}

.resources-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.resources-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: rgba(196, 181, 253, 0.12);
  border: 1px solid rgba(196, 181, 253, 0.3);
  color: #c4b5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.resources-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: initial;
}

.resources-hero p {
  color: var(--color-text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
}

.resources-section {
  padding: 1.5rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.resources-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Accordion Component Styles */
.resource-accordion-item {
  background: rgba(20, 15, 50, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.resource-accordion-item:hover {
  border-color: rgba(196, 181, 253, 0.3);
  box-shadow: 0 12px 35px rgba(71, 33, 209, 0.15);
}

.resource-accordion-header {
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 1.25rem;
  transition: background-color 0.3s ease;
}

.resource-accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.resource-accordion-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

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

.resource-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #c4b5fd;
  background: rgba(196, 181, 253, 0.12);
  border: 1px solid rgba(196, 181, 253, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

.resource-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.resource-accordion-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  transition: color 0.3s ease;
}

.resource-accordion-item.active .resource-accordion-title,
.resource-accordion-header:hover .resource-accordion-title {
  color: #c4b5fd;
}

.resource-accordion-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-accordion-item.active .resource-accordion-toggle {
  transform: rotate(180deg);
  background: var(--color-aws-orange);
  color: #ffffff;
  border-color: var(--color-aws-orange);
}

.resource-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(10, 7, 30, 0.4);
  border-top: 1px solid transparent;
}

.resource-accordion-item.active .resource-accordion-content {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.resource-content-inner {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.resource-card-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.resource-card-block:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(196, 181, 253, 0.2);
}

.resource-card-block h4 {
  font-size: 0.98rem;
  font-family: var(--font-heading);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-card-block h4 i {
  color: #c4b5fd;
}

.resource-placeholder {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

/* Resource File Card */
.resource-file-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-normal);
}

.resource-file-card:hover {
  border-color: rgba(196, 181, 253, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.resource-file-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.resource-file-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.resource-file-details strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  margin-bottom: 0.15rem;
}

.resource-file-details span {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* People & Links Metadata Bar */
.resource-people-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.resource-person {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.resource-person i {
  color: var(--color-aws-orange);
}

.resource-person a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.resource-person a:hover {
  color: #a58aff;
}

.resource-meetup-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4721d1 0%, #3f20c5 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(71, 33, 209, 0.3);
  margin-left: auto;
}

.resource-meetup-btn:hover {
  background: linear-gradient(135deg, #3f20c5 0%, #2f1899 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(71, 33, 209, 0.5);
}

.resource-full-width {
  grid-column: 1 / -1;
}

.resource-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.empty-resources-notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--color-text-secondary);
  font-size: 1rem;
  text-align: center;
}

.empty-resources-notice i {
  color: var(--color-aws-orange);
  font-size: 1.25rem;
}

/* Light Theme Overrides */
body.light-theme .resources-hero-bg {
  background: radial-gradient(circle at center, rgba(71, 33, 209, 0.08), #f8fafc 65%);
}

body.light-theme .resources-hero-badge {
  background: rgba(71, 33, 209, 0.08);
  border-color: rgba(71, 33, 209, 0.2);
  color: #4721d1;
}

body.light-theme .resources-hero h1 {
  color: #0f172a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
}

body.light-theme .resources-hero p {
  color: #475569;
}

body.light-theme .resource-accordion-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .resource-accordion-item:hover {
  border-color: rgba(71, 33, 209, 0.25);
  box-shadow: 0 10px 25px rgba(71, 33, 209, 0.08);
}

body.light-theme .resource-date-badge {
  color: #4721d1;
  background: rgba(71, 33, 209, 0.08);
  border-color: rgba(71, 33, 209, 0.2);
}

body.light-theme .resource-accordion-title {
  color: #0f172a;
}

body.light-theme .resource-accordion-item.active .resource-accordion-title,
body.light-theme .resource-accordion-header:hover .resource-accordion-title {
  color: #4721d1;
}

body.light-theme .resource-person {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

body.light-theme .resource-person strong {
  color: #0f172a;
}

body.light-theme .resource-person a {
  color: #4721d1;
}

body.light-theme .resource-person a:hover {
  color: #3f20c5;
}

body.light-theme .resource-person i {
  color: #4721d1;
}

body.light-theme .resource-tag {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

body.light-theme .resource-accordion-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.light-theme .resource-accordion-content {
  background: #f8fafc;
}

body.light-theme .resource-card-block {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .resource-card-block h4 {
  color: #0f172a;
}

body.light-theme .resource-card-block h4 i {
  color: #4721d1;
}

body.light-theme .resource-placeholder {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.12);
  color: #475569;
}

body.light-theme .resource-placeholder i {
  color: #4721d1;
}

body.light-theme .empty-resources-notice {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.12);
  color: #334155;
}

body.light-theme .empty-resources-notice i {
  color: #4721d1;
}

@media (max-width: 768px) {
  .resources-hero {
    padding: 6rem 1rem 3rem;
  }
  .resources-section {
    padding: 1rem 1rem 4rem;
  }
  .resource-accordion-header {
    padding: 1.25rem 1.25rem;
  }
  .resource-accordion-title {
    font-size: 1.1rem;
  }
  .resource-content-inner {
    padding: 1.25rem;
    grid-template-columns: 1fr;
  }
}
