/* ============================================
   SHIFT3 TECH MEDIA — MAIN STYLESHEET
   ============================================ */

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

/* ─── CSS VARIABLES ─── */
:root {
  --bg-base:      #0a0a0a;
  --bg-card:      #111111;
  --bg-elevated:  #181818;
  --bg-glass:     rgba(255,255,255,0.04);

  --cyan:    #00ffff;
  --green:   #39ff14;
  --pink:    #ff006e;
  --purple:  #bf00ff;
  --yellow:  #ffff00;
  --white:   #f0f0f0;
  --muted:   #777;
  --border:  rgba(255,255,255,0.07);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;

  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg-card);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

body {
  background: var(--bg-base);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: var(--font-body); }

/* ─── CUSTOM CURSOR ─── */
#cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(0,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 20px; height: 20px;
  background: var(--pink);
  box-shadow: 0 0 16px var(--pink), 0 0 32px var(--pink);
}

/* Hide custom cursor + restore default on touch devices */
@media (hover: none), (pointer: coarse) {
  body, a, button { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}

/* ─── NAVIGATION ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,255,255,0.15);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: border-color var(--transition);
}
#nav.scrolled {
  border-bottom-color: rgba(0,255,255,0.4);
  box-shadow: 0 4px 40px rgba(0,255,255,0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}
.nav-logo span { color: var(--cyan); }
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-logo:hover::after { transform: scaleX(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,240,240,0.7);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.nav-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.2), inset 0 0 12px rgba(0,255,255,0.04);
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  width: 160px;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search svg { color: var(--muted); flex-shrink: 0; transition: color var(--transition); }
.nav-search:focus-within svg { color: var(--cyan); }

.nav-cta {
  margin-left: 1rem;
  padding: 0.4rem 1rem;
  background: var(--cyan);
  color: var(--bg-base);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0,255,255,0.3);
}
.nav-cta:hover {
  background: var(--white);
  box-shadow: 0 0 24px rgba(0,255,255,0.5);
  transform: translateY(-1px);
}

/* ─── NEWS TICKER ─── */
.ticker-wrap {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 999;
  background: var(--bg-base);
  border-bottom: 1px solid rgba(57,255,20,0.25);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--green);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 0 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
}
.ticker-track {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(240,240,240,0.7);
  padding: 0 2rem;
  letter-spacing: 0.05em;
}
.ticker-item::before {
  content: '◆';
  color: var(--green);
  margin-right: 0.75rem;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTION STRUCTURE ─── */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.section-full { padding: 5rem 2rem; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  position: relative;
}
.section-title .accent { color: var(--cyan); }
.section-title .accent-pink { color: var(--pink); }
.section-title .accent-green { color: var(--green); }
.section-title .accent-purple { color: var(--purple); }
.section-title .accent-yellow { color: var(--yellow); }

.section-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,255,255,0.3);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.section-link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ─── CARDS BASE ─── */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); }

/* Cyan card */
.card-cyan:hover { border-color: rgba(0,255,255,0.5); box-shadow: 0 8px 40px rgba(0,255,255,0.12), 0 0 0 1px rgba(0,255,255,0.1); }
.card-cyan::before { background: radial-gradient(circle at 50% 0%, rgba(0,255,255,0.08), transparent 70%); }
.card-cyan:hover::before { opacity: 1; }

/* Pink card */
.card-pink:hover { border-color: rgba(255,0,110,0.5); box-shadow: 0 8px 40px rgba(255,0,110,0.12), 0 0 0 1px rgba(255,0,110,0.1); }
.card-pink::before { background: radial-gradient(circle at 50% 0%, rgba(255,0,110,0.08), transparent 70%); }
.card-pink:hover::before { opacity: 1; }

/* Green card */
.card-green:hover { border-color: rgba(57,255,20,0.5); box-shadow: 0 8px 40px rgba(57,255,20,0.12), 0 0 0 1px rgba(57,255,20,0.1); }
.card-green::before { background: radial-gradient(circle at 50% 0%, rgba(57,255,20,0.08), transparent 70%); }
.card-green:hover::before { opacity: 1; }

/* Purple card */
.card-purple:hover { border-color: rgba(191,0,255,0.5); box-shadow: 0 8px 40px rgba(191,0,255,0.12), 0 0 0 1px rgba(191,0,255,0.1); }
.card-purple::before { background: radial-gradient(circle at 50% 0%, rgba(191,0,255,0.08), transparent 70%); }
.card-purple:hover::before { opacity: 1; }

/* ─── TAGS / BADGES ─── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px solid;
  line-height: 1.4;
}
.tag-cyan   { color: var(--cyan);   border-color: rgba(0,255,255,0.4);   background: rgba(0,255,255,0.06); }
.tag-green  { color: var(--green);  border-color: rgba(57,255,20,0.4);  background: rgba(57,255,20,0.06); }
.tag-pink   { color: var(--pink);   border-color: rgba(255,0,110,0.4);   background: rgba(255,0,110,0.06); }
.tag-purple { color: var(--purple); border-color: rgba(191,0,255,0.4); background: rgba(191,0,255,0.06); }
.tag-yellow { color: var(--yellow); border-color: rgba(255,255,0,0.4); background: rgba(255,255,0,0.06); }

/* ─── FOOTER ─── */
#footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(0,255,255,0.15);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.footer-brand .logo span { color: var(--cyan); }
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(240,240,240,0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-newsletter {
  display: flex;
  gap: 0.5rem;
}
.footer-newsletter input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.footer-newsletter input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.15);
}
.footer-newsletter input::placeholder { color: var(--muted); }
.footer-newsletter button {
  background: var(--pink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  box-shadow: 0 0 16px rgba(255,0,110,0.3);
}
.footer-newsletter button:hover {
  background: var(--white);
  color: var(--pink);
  box-shadow: 0 0 24px rgba(255,0,110,0.5);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(240,240,240,0.5);
  transition: color var(--transition);
  font-family: var(--font-body);
}
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.social-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.3);
}

/* ─── UTILITIES ─── */
.neon-text-cyan   { color: var(--cyan);   text-shadow: 0 0 20px rgba(0,255,255,0.6); }
.neon-text-green  { color: var(--green);  text-shadow: 0 0 20px rgba(57,255,20,0.6); }
.neon-text-pink   { color: var(--pink);   text-shadow: 0 0 20px rgba(255,0,110,0.6); }
.neon-text-purple { color: var(--purple); text-shadow: 0 0 20px rgba(191,0,255,0.6); }

/* ─── GRID LAYOUTS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 1rem; }
  .nav-search { display: none; }
}

/* ─── SIBLING CARD BLUR ON HOVER ─── */
.grid-3:has(.card:hover) .card:not(:hover),
.grid-4:has(.card:hover) .card:not(:hover),
.post-grid:has(.bc:hover) .bc:not(:hover),
.video-grid:has(.vc:hover) .vc:not(:hover) {
  opacity: 0.45;
  filter: blur(1.5px);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

/* ─── SIDEBAR NEWSLETTER WIDGETS ─── */
.sw-input:focus { border-color: var(--accent, var(--cyan)); }
.sw-subscribe:hover {
  background: var(--white) !important;
  box-shadow: 0 0 30px var(--accent-glow, rgba(0,255,255,0.4)) !important;
}
.contrib-row:hover { background: rgba(255,255,255,0.04); }
.contrib-link:hover { color: var(--pink) !important; }
.cta-btn-alt:hover {
  background: var(--purple) !important;
  color: var(--white) !important;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.01);
}
