/* ==========================================================================
   PlaySolve — Connect with Us Stylesheet
   Theme: PlaySolve Dark Galaxy with Platform-Specific Brand Accents
   ========================================================================== */

:root {
  --bg: #0f0826;
  --bg-surface: #140d32;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(124, 58, 237, 0.4);
  
  --primary: #4c51bf;
  --secondary: #7c3aed;
  --gold: #f9d71c;
  --gold-glow: rgba(249, 215, 28, 0.3);
  
  --text-main: #ffffff;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Platform Brand Colors */
  --c-youtube: #FF0000;
  --c-instagram: #E1306C;
  --c-facebook: #1877F2;
  --c-whatsapp: #25D366;
  --c-linkedin: #0A66C2;
  --c-threads: #FFFFFF;
  --c-x: #FFFFFF;
  --c-pinterest: #E60023;

  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(76, 81, 191, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 65%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 15% 85%, rgba(249, 215, 28, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Floating animated background orbs */
.bg-ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.25);
  top: 10%;
  left: -80px;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(76, 81, 191, 0.22);
  bottom: 20%;
  right: -60px;
  animation-duration: 16s;
  animation-delay: -4s;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-25px) scale(1.08); }
  100% { transform: translateY(15px) scale(0.95); }
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Hero & Short Note
   ========================================================================== */
.connect-hero {
  padding-top: 130px;
  padding-bottom: 40px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 99px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
  animation: pulsePill 3s infinite alternate ease-in-out;
}

@keyframes pulsePill {
  0% { transform: scale(1); border-color: rgba(124, 58, 237, 0.4); }
  100% { transform: scale(1.02); border-color: rgba(249, 215, 28, 0.6); }
}

.connect-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.note-box {
  background: rgba(20, 13, 50, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 32px;
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.note-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--secondary));
}

.note-box h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-box p {
  color: var(--text-sub);
  font-size: 0.98rem;
  line-height: 1.7;
}

.note-pills-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.note-mini-pill {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Social Media Cards Grid
   ========================================================================== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 70px;
}

.social-card {
  display: flex;
  align-items: center;
  background: rgba(20, 13, 50, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Subtle glow accent bar on card left */
.social-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition-fast);
}

.social-card:hover {
  transform: translateY(-5px);
  background: rgba(28, 18, 68, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

/* Card Icon Box */
.social-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-right: 20px;
  flex-shrink: 0;
  transition: var(--transition-fast);
  color: #ffffff;
  position: relative;
}

.social-card:hover .social-icon-box {
  transform: scale(1.08) rotate(3deg);
}

/* Card Content Info */
.social-info {
  flex-grow: 1;
  min-width: 0; /* truncate helper */
}

.social-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.social-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.verified-badge {
  color: #38bdf8;
  font-size: 0.85rem;
}

.social-handle {
  font-size: 0.84rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.social-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Action / Arrow */
.social-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  margin-left: 14px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.social-card:hover .social-action-btn {
  background: #ffffff;
  color: var(--bg);
  transform: translateX(4px);
  border-color: #ffffff;
}

/* ==========================================================================
   Brand Specific Accent Themes
   ========================================================================== */
/* YouTube */
.card-youtube .social-icon-box {
  background: linear-gradient(135deg, #FF0000 0%, #B30000 100%);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}
.card-youtube:hover {
  border-color: rgba(255, 0, 0, 0.5);
}
.card-youtube:hover::after {
  background: #FF0000;
  box-shadow: 0 0 12px #FF0000;
}

/* Instagram */
.card-instagram .social-icon-box {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35);
}
.card-instagram:hover {
  border-color: rgba(225, 48, 108, 0.5);
}
.card-instagram:hover::after {
  background: #E1306C;
  box-shadow: 0 0 12px #E1306C;
}

/* Facebook */
.card-facebook .social-icon-box {
  background: linear-gradient(135deg, #1877F2 0%, #0d5cb6 100%);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}
.card-facebook:hover {
  border-color: rgba(24, 119, 242, 0.5);
}
.card-facebook:hover::after {
  background: #1877F2;
  box-shadow: 0 0 12px #1877F2;
}

/* WhatsApp Channel */
.card-whatsapp .social-icon-box {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.card-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
}
.card-whatsapp:hover::after {
  background: #25D366;
  box-shadow: 0 0 12px #25D366;
}

/* LinkedIn */
.card-linkedin .social-icon-box {
  background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.35);
}
.card-linkedin:hover {
  border-color: rgba(10, 102, 194, 0.5);
}
.card-linkedin:hover::after {
  background: #0A66C2;
  box-shadow: 0 0 12px #0A66C2;
}

/* Threads */
.card-threads .social-icon-box {
  background: linear-gradient(135deg, #262626 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.card-threads:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
.card-threads:hover::after {
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff;
}

/* X (Twitter) */
.card-x .social-icon-box {
  background: linear-gradient(135deg, #1f1f1f 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.card-x:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
.card-x:hover::after {
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff;
}

/* Pinterest */
.card-pinterest .social-icon-box {
  background: linear-gradient(135deg, #E60023 0%, #A30018 100%);
  box-shadow: 0 6px 18px rgba(230, 0, 35, 0.35);
}
.card-pinterest:hover {
  border-color: rgba(230, 0, 35, 0.5);
}
.card-pinterest:hover::after {
  background: #E60023;
  box-shadow: 0 0 12px #E60023;
}

/* ==========================================================================
   Android In-App Mode Optimizations
   ========================================================================== */
/* If opened from Android WebView with ?app=true, optionally hide desktop navbar */
body.in-app-mode #navbar,
body.in-app-mode .site-footer {
  display: none !important;
}

body.in-app-mode .connect-hero {
  padding-top: 40px !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 820px) {
  .social-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .connect-hero h1 {
    font-size: 2.2rem;
  }

  .note-box {
    padding: 22px 20px;
  }
}

@media (max-width: 480px) {
  .social-card {
    padding: 18px 16px;
  }

  .social-icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-right: 14px;
  }

  .social-title {
    font-size: 1.05rem;
  }

  .social-desc {
    font-size: 0.8rem;
  }

  .social-action-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    margin-left: 8px;
  }
}
