/* Contact & Community Page Styling - AstraGrit */
:root {
  --contact-bg: #030816;
  --contact-card-bg: rgba(9, 21, 44, 0.7);
  --contact-card-border: rgba(43, 84, 134, 0.35);
  --contact-card-hover-border: rgba(56, 189, 248, 0.6);
  --contact-card-hover-glow: rgba(56, 189, 248, 0.15);
  --contact-cyan: #38bdf8;
  --contact-purple: #818cf8;
  --contact-pink: #c084fc;
}

.contact-body {
  background-color: var(--contact-bg);
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(28, 78, 160, 0.32), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(68, 38, 140, 0.15), transparent 60%),
    url('../assets/space-background.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto, 100% auto, cover;
  min-height: 100vh;
}

/* Hero Section */
.contact-hero {
  text-align: center;
  padding: 60px 20px 48px;
  position: relative;
}

.contact-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.contact-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #ffffff;
}

.contact-title .highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.contact-desc {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: #9cb5d9;
  max-width: 680px;
  margin: 0 auto;
}

/* Category Sections */
.contact-section {
  margin-bottom: 48px;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bar-indicator {
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.section-bar h2 {
  font-size: 21px;
  font-weight: 700;
  color: #f1f7ff;
  letter-spacing: -0.4px;
  margin: 0;
}

.section-bar .view-all-link {
  font-size: 13px;
  color: #7ba2cf;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.2s;
}

.section-bar .view-all-link:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

/* Card Grids */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

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

/* Channel Card */
.channel-card {
  position: relative;
  background: var(--contact-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--contact-card-border);
  border-radius: 18px;
  padding: 30px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s,
              box-shadow 0.25s,
              background 0.25s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.channel-card:hover {
  transform: translateY(-6px);
  border-color: var(--contact-card-hover-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px var(--contact-card-hover-glow);
  background: rgba(14, 32, 66, 0.85);
}

.channel-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s;
}

.channel-card:hover .channel-icon {
  transform: scale(1.08);
}

.channel-icon svg {
  width: 32px;
  height: 32px;
}

.channel-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.channel-handle {
  font-size: 12.5px;
  color: #7b9cc4;
  margin: 0 0 22px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-action-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d8eb8;
  font-size: 14px;
  margin-top: auto;
  transition: all 0.25s;
}

.channel-card:hover .card-action-circle {
  background: #38bdf8;
  color: #030b1b;
  border-color: #38bdf8;
  transform: translateX(3px);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* Bottom Contact Banner */
.contact-banner {
  position: relative;
  margin: 50px 0 70px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(129, 140, 248, 0.4) 50%, rgba(192, 132, 252, 0.7));
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.4), 0 0 35px rgba(56, 189, 248, 0.15);
}

.contact-banner-inner {
  background: linear-gradient(120deg, #07152b 0%, #051023 100%);
  border-radius: 18px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.banner-icon-circle {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.banner-icon-circle svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.banner-text .badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.banner-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}

.banner-text p {
  font-size: 14px;
  color: #9cb5d9;
  margin: 0;
  line-height: 1.5;
}

.banner-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(15, 33, 64, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  color: #edf6ff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-email-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.banner-email-btn .btn-arrow {
  color: #38bdf8;
  font-size: 16px;
  transition: transform 0.2s;
}

.banner-email-btn:hover {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
}

.banner-email-btn:hover .btn-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .contact-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .banner-email-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 550px) {
  .banner-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
