﻿:root {
  --bg-deep: #041521;
  --line-light: rgba(225, 239, 252, 0.65);
  --delta-ink: #d8ebff;
  --delta-panel: linear-gradient(160deg, rgba(7, 26, 39, 0.97), rgba(4, 15, 28, 0.96));
  --delta-border: rgba(153, 193, 226, 0.58);
  --solar-ink: #16312a;
  --solar-panel: linear-gradient(160deg, rgba(220, 255, 234, 0.97), rgba(187, 241, 210, 0.97));
  --solar-border: rgba(57, 142, 99, 0.58);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'kallisto', 'Segoe UI', sans-serif;
  background:
    linear-gradient(90deg, rgba(5, 22, 36, 0.96) 0%, rgba(5, 22, 36, 0.96) 50%, rgba(215, 252, 228, 0.96) 50%, rgba(215, 252, 228, 0.96) 100%),
    radial-gradient(circle at 16% 20%, rgba(72, 123, 163, 0.25), transparent 44%),
    radial-gradient(circle at 84% 24%, rgba(97, 182, 121, 0.3), transparent 45%);
  color: #eef7ff;
}

.home-back-btn {
  position: fixed;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 30;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 241, 255, 0.62);
  background: rgba(5, 25, 43, 0.75);
  color: #ebf6ff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.home-back-btn:hover {
  background: rgba(225, 240, 255, 0.15);
}

.socials-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.2rem 1.2rem 1.8rem;
}

.socials-container {
  position: relative;
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.socials-rectangle {
  min-height: 74vh;
  border: 2px solid var(--line-light);
  border-radius: 14px;
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  opacity: 1;
  position: relative;
}

.socials-rectangle.active {
  outline: 1px solid rgba(255, 255, 255, 0.2);
}

.entertainment-section {
  background: var(--delta-panel);
  color: var(--delta-ink);
  border-color: var(--delta-border);
}

.entertainment-section.active {
  box-shadow: 0 0 0 2px rgba(158, 208, 247, 0.36), 0 18px 45px rgba(0, 0, 0, 0.35);
}

.productivity-section {
  background: var(--solar-panel);
  color: var(--solar-ink);
  border-color: var(--solar-border);
}

.productivity-section.active {
  box-shadow: 0 0 0 2px rgba(45, 148, 95, 0.28), 0 18px 45px rgba(21, 74, 46, 0.26);
}

.section-header {
  border-bottom: 1px solid rgba(142, 173, 205, 0.28);
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
}

.productivity-section .section-header {
  border-bottom-color: rgba(54, 123, 86, 0.3);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.1vw, 2.25rem);
  text-align: center;
}

.profiles-grid {
  display: flex;
  flex: 1;
  align-items: center;
}

.profile-card {
  width: 100%;
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(162, 203, 236, 0.28);
  background: rgba(7, 31, 46, 0.95);
  position: relative;
  z-index: 5;
}

.productivity-section .profile-card {
  border-color: rgba(52, 121, 82, 0.34);
  background: rgba(232, 250, 238, 0.98);
}

.profile-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.platform-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 208, 238, 0.34);
}

.productivity-section .platform-tag {
  border-color: rgba(59, 133, 91, 0.34);
}

.profile-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid currentColor;
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.profile-link:hover {
  transform: translateY(-1px);
}

.profile-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.youtube-link { color: #ff4f4f; background: rgba(255, 79, 79, 0.08); }
.twitch-link { color: #ad80ff; background: rgba(173, 128, 255, 0.08); }
.kick-link { color: #20be79; background: rgba(32, 190, 121, 0.08); }
.x-link { color: #dfe7f5; background: rgba(223, 231, 245, 0.08); }
.tiktok-link { color: #7de7df; background: rgba(125, 231, 223, 0.1); }

.family-connector {
  position: absolute;
  top: var(--connector-top, 50%);
  left: var(--connector-left, 50%);
  transform: translateY(-50%);
  width: var(--connector-width, clamp(140px, 18vw, 260px));
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(186, 223, 248, 0.9), rgba(150, 213, 165, 0.92));
  box-shadow: 0 0 10px rgba(199, 228, 245, 0.4);
  pointer-events: none;
  z-index: 2;
}

.socials-container:has(.entertainment-section.active) .family-connector,
.socials-container:has(.productivity-section.active) .family-connector {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.58);
}

@media (max-width: 900px) {
  .socials-container {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .socials-rectangle {
    min-height: 45vh;
  }

  .family-connector {
    display: none;
  }

  body {
    background:
      linear-gradient(180deg, rgba(5, 22, 36, 0.96) 0%, rgba(5, 22, 36, 0.96) 50%, rgba(215, 252, 228, 0.96) 50%, rgba(215, 252, 228, 0.96) 100%);
  }
}
