/* =============================================================
   shared.css - vinaymangal.com
   Base design tokens and utilities shared across all hub pages.
   Each hub imports this and overrides --primary / --accent as needed.
   ============================================================= */

/* ---- CSS Custom Properties: Dark Theme Base ---- */
:root {
    --bg-color:       #050505;
    --surface-color:  #121212;
    --text-main:      #e5e5e5;
    --text-muted:     #a3a3a3;
    --primary:        #2dd4bf;   /* teal - homepage / insights default */
    --secondary:      #a78bfa;   /* violet */
    --accent:         #f43f5e;   /* rose */
    --glass-bg:       rgba(18, 18, 18, 0.6);
    --glass-border:   rgba(255, 255, 255, 0.08);
    --glass-hover:    rgba(25, 25, 25, 0.7);
    --nav-bg:         rgba(18, 18, 18, 0.8);
}

/* ---- Body Base ---- */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* ---- Glassmorphism Panel ---- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--glass-border);
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Locked / coming-soon card variant - no hover lift */
.card-locked {
    opacity: 0.45;
    filter: grayscale(0.3);
    pointer-events: none;
    cursor: default;
}

/* ---- Gradient Text Utilities ---- */
.text-gradient-primary {
    background: linear-gradient(to right, #2dd4bf, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(to right, #a78bfa, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Noise Overlay ---- */
.noise-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #777; }

/* ---- Fade-up Animation ---- */
@keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; }

/* ---- Blob Animation ---- */
@keyframes blob {
    0%   { transform: translate(0px,   0px)   scale(1);   }
    33%  { transform: translate(30px,  -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px)  scale(0.9); }
    100% { transform: translate(0px,   0px)   scale(1);   }
}
.animate-blob                { animation: blob 7s infinite; }
.animation-delay-2000        { animation-delay: 2s; }
.animation-delay-4000        { animation-delay: 4s; }

/* ---- Hub Badge Chip ---- */
.hub-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
