/* Blog styles */
body {
    background-color: #121212;
    color: #E0E0E0;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

a {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1E1E1E;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Social card */
.social-card-group {
    position: relative;
    overflow: hidden;
}

.social-card-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2563EB, #8B5CF6, #2563EB, transparent);
    opacity: 0.6;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B95A1;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.social-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--glow);
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    color: #fff;
    background: var(--bg);
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 0 16px var(--glow);
}

.social-icon:hover::after {
    opacity: 0.5;
}

.social-icon:nth-child(1) { --bg: #1b1f23; --border: #6e7681; --glow: rgba(110, 118, 129, 0.4); }
.social-icon:nth-child(2) { --bg: #0a3d62; --border: #0077b5; --glow: rgba(0, 119, 181, 0.4); }
.social-icon:nth-child(3) { --bg: #111;     --border: #555;    --glow: rgba(255, 255, 255, 0.3); }
.social-icon:nth-child(4) { --bg: #2d0000; --border: #ff0000; --glow: rgba(255, 0, 0, 0.4); }
.social-icon:nth-child(5) { --bg: #1a0028; --border: #c13584; --glow: rgba(193, 53, 132, 0.4); }
.social-icon:nth-child(6) { --bg: #0a1d4a; --border: #1877f2; --glow: rgba(24, 119, 242, 0.4); }

/* Blog post content typography */
#post-content h1,
#post-content h2,
#post-content h3,
#post-content h4,
#post-content h5,
#post-content h6 {
    color: #E0E0E0;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

#post-content h1 { font-size: 1.875rem; }
#post-content h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid #252525;
    padding-bottom: 0.4rem;
}
#post-content h3 { font-size: 1.2rem; }
#post-content h4 { font-size: 1.05rem; }

#post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.85;
    color: #B0B0B0;
}

#post-content a {
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

#post-content a:hover {
    color: #60A5FA;
}

#post-content ul,
#post-content ol {
    margin: 0.5rem 0 1.25rem 1.5rem;
    line-height: 1.85;
    color: #B0B0B0;
}

#post-content ul { list-style-type: disc; }
#post-content ol { list-style-type: decimal; }

#post-content li {
    margin-bottom: 0.35rem;
}

#post-content li strong {
    color: #D0D0D0;
}

#post-content blockquote {
    border-left: 3px solid #2563EB;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 0 6px 6px 0;
    color: #9CA3AF;
    font-style: italic;
}

#post-content code {
    background: #1a1a2e;
    color: #93C5FD;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

#post-content pre {
    background: #161625;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #252535;
}

#post-content pre code {
    background: none;
    padding: 0;
    color: #E0E0E0;
    font-size: 0.9rem;
}

#post-content hr {
    border: none;
    border-top: 1px solid #252525;
    margin: 2rem 0;
}

#post-content strong {
    color: #E0E0E0;
    font-weight: 600;
}

#post-content em {
    color: #C0C0C0;
    font-style: italic;
}

#post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

#post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

#post-content th {
    background: #1E1E1E;
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #333;
    color: #E0E0E0;
}

#post-content td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #252525;
    color: #B0B0B0;
}

#post-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Floating share FAB */
.share-fab-item {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  background: #1E1E1E;
  border: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B95A1;
  text-decoration: none;
  cursor: pointer;
  transform: translate(-50%, 0) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.2s ease,
              color 0.15s ease,
              border-color 0.15s ease;
}

#share-fab.open .share-fab-item {
  transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.share-fab-item:hover {
  color: #E0E0E0;
  border-color: #374151;
}

#share-fab.open .share-fab-item:nth-child(1) { transition-delay: 0.00s; }
#share-fab.open .share-fab-item:nth-child(2) { transition-delay: 0.04s; }
#share-fab.open .share-fab-item:nth-child(3) { transition-delay: 0.08s; }
#share-fab.open .share-fab-item:nth-child(4) { transition-delay: 0.04s; }
#share-fab.open .share-fab-item:nth-child(5) { transition-delay: 0.00s; }

#share-fab-toggle {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.09), 0 4px 20px rgba(0,0,0,0.7);
}

@media (max-width: 640px) {
    h1.text-3xl {
        font-size: 1.5rem;
    }
}
