/* ========================================
   Spoljarevic Socials Page
   Dark blue gradient + frosted glass
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #0a0e1a;
  --bg-mid: #0f1629;
  --bg-card: #151d2e;
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-purple: #8b5cf6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(59, 130, 246, 0.2);
  --gradient-1: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f1629 100%);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* Frosted glass */
  --glass-bg: rgba(21, 29, 46, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;
  --glass-grain-opacity: 0.12;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-1);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

a:hover {
  color: var(--accent-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Centered socials layout
   ======================================== */
.socials-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.socials-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Profile block */
.profile {
  margin-bottom: 2.5rem;
}

.profile-picture {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-glow);
  margin: 0 auto 1.25rem;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.profile-name strong {
  font-weight: 700;
}

.profile-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

/* ========================================
   Frosted glass link cards
   ======================================== */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.25s ease;
  overflow: hidden;
}

/* Grain overlay for frosted glass */
.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: var(--glass-grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.link-card .link-icon,
.link-card .link-name {
  position: relative;
  z-index: 1;
}

.link-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

.link-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 4px;
}

.link-name {
  font-size: 0.98rem;
  font-weight: 500;
}

.link-name strong {
  font-weight: 600;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
  .socials-page {
    padding: 1.5rem 1rem 2.5rem;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }

  .profile-name {
    font-size: 1.3rem;
  }

  .profile-description {
    font-size: 0.9rem;
  }

  .link-card {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .link-name {
    font-size: 0.9rem;
  }
}

/* ========================================
   Legal pages
   ======================================== */
.legal-page {
  min-height: 100vh;
  padding: 2rem 1.5rem 3rem;
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
}

.legal-back {
  margin-bottom: 1.5rem;
}

.legal-back a {
  color: var(--text-secondary);
}

.legal-back a:hover {
  color: var(--accent-cyan);
}

.legal-article {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.legal-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal-section {
  margin-bottom: 1.5rem;
}

.legal-section:last-of-type {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-secondary);
}

.legal-section p,
.legal-section ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  margin-left: 1.5rem;
}

.legal-footer,
.site-footer {
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.socials-inner .site-footer {
  margin-top: 2rem;
}

.legal-footer .footer-legal,
.site-footer .footer-legal {
  margin-top: 0.75rem;
}

.footer-legal a {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--accent-cyan);
}

.footer-legal a:first-child {
  margin-left: 0;
}
