/* ===================================================
   TECH COMMUNITY - Global Styles
   =================================================== */

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: rgba(22, 27, 34, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --accent-blue: #4f8ef7;
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-pink: #ec4899;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --gradient-hero: linear-gradient(135deg, #1a1f35 0%, #0d1117 50%, #1a1225 100%);
  --gradient-card: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(168, 85, 247, 0.1));
  --shadow-glow: 0 0 30px rgba(79, 142, 247, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --site-name: "AsiaConsole";
  --bg-nav: rgba(13, 17, 23, 0.85);

  /* Typography & Structure */
  --base-font-size: 16px;
  --line-height: 1.6;
  --heading-scale: 1.0;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --border-width: 1px;
  --nav-blur: 20px;
  --card-padding: 1.5rem;
  --skeleton-bg: rgba(255, 255, 255, 0.05);
  --skeleton-highlight: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size);
  line-height: var(--line-height);
}

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

img {
  max-width: 100%;
  height: auto;
  font-style: italic;
  vertical-align: middle;
  shape-margin: 0.75rem;
  content-visibility: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  transform: scale(var(--heading-scale));
  transform-origin: center;
}

h1 {
  font-size: calc(clamp(3rem, 7vw, 5.5rem) * var(--heading-scale));
}

h2 {
  font-size: calc(clamp(1.8rem, 4vw, 2.8rem) * var(--heading-scale));
}

h3 {
  font-size: calc(1.5rem * var(--heading-scale));
}

h4 {
  font-size: calc(1.2rem * var(--heading-scale));
}

h5 {
  font-size: calc(1.1rem * var(--heading-scale));
}

h6 {
  font-size: calc(1rem * var(--heading-scale));
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 3px;
}

/* --- SELECTION --- */
::selection {
  background: var(--accent-blue);
  color: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: var(--bg-nav);
  backdrop-filter: blur(var(--nav-blur, 20px));
  -webkit-backdrop-filter: blur(var(--nav-blur, 20px));
  border-bottom: 1px solid var(--border);
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  transition: transform 0.3s ease;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent !important;
}

.brand-icon img {
  filter: drop-shadow(0 0 8px rgba(79, 142, 247, 0.3));
}

.site-name {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent-blue);
  /* Fallback */
  position: relative;
}

/* ===== ANIMATION LIBRARY ===== */

/* Animation Library */
.anim-none {
  display: initial;
}

.anim-glow {
  animation: anim-glow 2s infinite alternate;
}

@keyframes anim-glow {
  from {
    filter: drop-shadow(0 0 2px var(--accent-blue));
  }

  to {
    filter: drop-shadow(0 0 10px var(--accent-blue));
  }
}

.anim-float {
  animation: anim-float 3s infinite ease-in-out;
}

@keyframes anim-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.anim-glitch {
  animation: anim-glitch 1s infinite linear alternate-reverse;
}

@keyframes anim-glitch {
  0% {
    text-shadow: 2px 0 0 #ff00c1, -2px 0 0 #00fff9;
  }

  25% {
    text-shadow: -2px 0 0 #ff00c1, 2px 0 0 #00fff9;
  }

  50% {
    text-shadow: 2px 0 0 #ff00c1, -2px 0 0 #00fff9;
  }

  75% {
    text-shadow: -2px 0 0 #ff00c1, 2px 0 0 #00fff9;
  }

  100% {
    text-shadow: 2px 0 0 #ff00c1, -2px 0 0 #00fff9;
  }
}

.anim-neon {
  animation: anim-neon 1.5s infinite alternate;
}

@keyframes anim-neon {
  from {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-blue), 0 0 20px var(--accent-blue);
  }

  to {
    text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 8px var(--accent-blue), 0 0 12px var(--accent-blue);
  }
}

.anim-typing {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--accent-blue);
  white-space: nowrap;
  animation: typing 3.5s steps(30, end), blink-caret .5s step-end infinite;
  max-width: fit-content;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-blue)
  }
}

.anim-pulse {
  animation: anim-pulse 2s infinite;
}

@keyframes anim-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.anim-shimmer {
  background: linear-gradient(90deg, var(--accent-blue), #fff, var(--accent-purple));
  background-size: 200% auto;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: anim-shimmer 2s linear infinite;
}

@keyframes anim-shimmer {
  to {
    background-position: 200% center;
  }
}

.anim-bounce {
  animation: anim-bounce 2s infinite;
}

@keyframes anim-bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.anim-flip {
  animation: anim-flip 2s infinite;
  backface-visibility: visible;
}

@keyframes anim-flip {
  0% {
    transform: perspective(400px) rotateY(0);
  }

  100% {
    transform: perspective(400px) rotateY(360deg);
  }
}

.anim-skew {
  animation: anim-skew 3s infinite alternate;
}

@keyframes anim-skew {
  0% {
    transform: skewX(-10deg);
  }

  100% {
    transform: skewX(10deg);
  }
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.navbar-brand .brand-icon svg {
  fill: white;
  width: 20px;
  height: 20px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* NAVBAR ANIMATION STYLES (10 VARIATIONS) */

/* 1. Default Gloss (Current) */
.nav-style-gloss a:hover,
.nav-style-gloss a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* 2. Neon Pulse */
.nav-style-neon a:hover,
.nav-style-neon a.active {
  color: var(--accent-blue);
  text-shadow: 0 0 8px var(--accent-blue);
  background: rgba(0, 255, 242, 0.05);
}

/* 3. Underline Slide */
.nav-style-slide a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-style-slide a:hover::after,
.nav-style-slide a.active::after {
  width: 15px;
}

/* 4. Floating Lift */
.nav-style-float a:hover {
  transform: translateY(-3px);
  color: var(--accent-purple);
}

/* 5. Border Glow */
.nav-style-border a {
  border: 1px solid transparent;
}

.nav-style-border a:hover {
  border-color: var(--accent-blue);
  box-shadow: inset 0 0 10px rgba(0, 255, 242, 0.1);
}

/* 6. Text Glitch */
.nav-style-glitch a:hover {
  animation: glitch-text 0.3s infinite;
}

@keyframes glitch-text {
  0% {
    transform: translate(1px, 1px);
  }

  25% {
    transform: translate(-1px, -1px);
    color: var(--accent-purple);
  }

  50% {
    transform: translate(1px, -1px);
  }

  75% {
    transform: translate(-1px, 1px);
    color: var(--accent-cyan);
  }

  100% {
    transform: translate(0);
  }
}

/* 7. Retro Typewriter Cursor */
.nav-style-type a:hover::before {
  content: '|';
  color: var(--accent-blue);
  animation: blink 0.8s infinite;
}

/* 8. Skew Flip */
.nav-style-skew a:hover {
  transform: skewX(-15deg);
  background: rgba(168, 85, 247, 0.1);
}

/* 9. Background Pulse */
.nav-style-pulse a:hover {
  background: rgba(255, 255, 255, 0.05);
  animation: bg-pulse 1.5s infinite;
}

@keyframes bg-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 142, 247, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(79, 142, 247, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(79, 142, 247, 0);
  }
}

/* 10. Shimmer Wave */
.nav-style-shimmer a:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer-nav 0.8s infinite;
}

@keyframes shimmer-nav {
  to {
    left: 100%;
  }
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-login {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: var(--border-width) solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-nav-login:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-nav-register {
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
  color: white;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-nav-register:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(79, 142, 247, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(20px);
  padding: 5rem 1.5rem 2rem;
  z-index: 1000;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* ===== LAYOUT ===== */
.page-wrapper {
  padding-top: 65px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NEWS TICKER (Full-Width Refactor) ===== */
.news-ticker-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 50px;
  z-index: 100;
  animation: slideInUp 0.6s ease both;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}


.ticker-content-wrapper {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}


.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 40px;
  transition: color 0.3s ease;
}

.ticker-item:hover {
  color: var(--accent-blue);
}

.ticker-item .dot {
  width: 5px;
  height: 5px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.section {
  padding: 4rem 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: min-height 0.4s ease;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}

/* Background Image Overlay Support */
.hero.has-bg {
  z-index: 1;
  /* Ensure a stacking context */
}

.hero.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}

.hero.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--bg-primary);
  /* Use a solid color to fade against */
  opacity: calc(1.5 - var(--hero-bg-opacity, 1));
  /* Invert logic: 1 opacity in setting = 0 overlay */
  z-index: -1;
  pointer-events: none;
}

.hero-glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(79, 142, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes heroGlow {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1.1) rotate(5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(79, 142, 247, 0.15);
  border: var(--border-width) solid rgba(79, 142, 247, 0.3);
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ===== HERO LAYOUT UPDATES ===== */
.hero .container {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  /* Kutu genişliği kadar kenar boşlukları */
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 5;
}

.hero .container::after {
  content: "";
  /* Sağ tarafta dengeleyici boşluk */
  width: 320px;
}

.snippet-hero-wrapper {
  grid-column: 1;
  width: 320px;
  flex-shrink: 0;
  animation: fadeInUp 0.8s ease both;
}

.hero-content {
  grid-column: 2;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content .hero-badge,
.hero-content h1,
.hero-content p {
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  justify-content: center;
}

/* ===== HERO RESPONSIVE FIXES v4.21.0 ===== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .snippet-hero-wrapper {
    display: none;
    /* Hide snippet card on tablets/mobiles to save space */
  }

  .hero-content {
    grid-column: 1;
    max-width: 100%;
  }

  .hero .container::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1.5rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
}

/* ===== SNIPPET CARD (Compact Square) ===== */
.snippet-hero-wrapper {
  width: 320px;
  flex-shrink: 0;
  animation: fadeInUp 0.8s ease both;
}

.snippet-card.is-square {
  padding: 1.5rem;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.9rem;
}

.snippet-card.is-square .snippet-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.snippet-card.is-square .snippet-desc {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.snippet-card.is-square .snippet-code-wrapper {
  padding: 0.75rem;
  flex-grow: 1;
  overflow: hidden;
  margin-bottom: 0;
}

.snippet-card.is-square .snippet-code {
  font-size: 0.8rem;
  line-height: 1.4;
}

.snippet-card.is-square .snippet-footer {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.snippet-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.8rem;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.snippet-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.snippet-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.snippet-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.snippet-code-wrapper {
  background: #0d1117;
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.snippet-code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  color: #e6edf3;
  white-space: pre-wrap;
  word-break: break-all;
}

.snippet-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.snippet-copy:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

.snippet-footer {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.snippet-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 142, 247, 0.4);
  opacity: 0.95;
}

/* ===== GÜNÜN İPUCU (TIP) BUTTON & MODAL v4.13.0 ===== */
.tip-trigger-wrapper {
  position: absolute;
  bottom: 64px;
  /* Position above the ticker */
  left: 1.5rem;
  z-index: 10;
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* Hide Tip Trigger on Mobile to prevent layout issues */
@media (max-width: 768px) {
  .tip-trigger-wrapper {
    display: none !important;
  }
}

.btn-tip-trigger {
  background: rgba(79, 142, 247, 0.1);
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(79, 142, 247, 0.2);
  animation: tipPulse 3s infinite;
}

.btn-tip-trigger span {
  font-size: 1.1rem;
}

.btn-tip-trigger:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(79, 142, 247, 0.4);
}

@keyframes tipPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 142, 247, 0.4);
  }

  50% {
    box-shadow: 0 0 15px 5px rgba(79, 142, 247, 0.1);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(79, 142, 247, 0);
  }
}

/* Modal Stilleri */
.tip-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
  opacity: 1;
}

.tip-modal-overlay.is-active {
  display: flex !important;
}

.tip-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  position: relative;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

.tip-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== END TIP MODAL ===== */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Hero floating elements & Project Showcase */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  z-index: 2;
}

.hero-card-mini {
  width: 140px;
  height: 100px;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.animate-stagger {
  opacity: 0;
  transform: translateX(30px);
  animation: staggerIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-card-mini {
  text-decoration: none;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-card-mini:hover {
  transform: translateY(-10px) scale(1.05) rotate(2deg);
  border-color: var(--accent-blue);
  box-shadow: 0 15px 45px rgba(0, 255, 242, 0.2);
  z-index: 10;
}

.hero-card-mini .mini-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-card-mini .mini-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}

.hero-card-mini .mini-tag {
  font-size: 0.6rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.5rem;
  }
}

.stat-item {
  text-align: center;
  padding: 0.35rem 0.5rem;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text-primary);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(79, 142, 247, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card:hover::before {
  opacity: 1;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge-tech {
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent-blue);
}

.badge-game {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
}

.badge-app {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.badge-forum {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ===== CATEGORY HERO ===== */
.page-hero {
  padding: 0.5rem 0 0.25rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(79, 142, 247, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.125rem;
}

.page-hero p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 0.5rem;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-tab {
  padding: 0.45rem 1.1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.filter-tab:hover,
.filter-tab.active {
  background: rgba(79, 142, 247, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ===== FORUM ===== */
.forum-topic {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.forum-topic:hover {
  border-color: rgba(79, 142, 247, 0.4);
  transform: translateX(4px);
}

.forum-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  color: white;
}

.forum-content {
  flex: 1;
  min-width: 0;
}

.forum-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.forum-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.forum-stats {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.forum-stat {
  text-align: center;
}

.forum-stat-num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.forum-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.new-topic-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.new-topic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.4);
}

/* ===== CONTACT ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-secondary);
}

/* ===== MEMBER PANEL (Auth) ===== */
.auth-container {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 2rem;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo h2 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  padding: 0.25rem;
  border-radius: var(--radius);
}

.auth-tab {
  padding: 0.625rem;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

/* User Dashboard */
.dashboard-header {
  padding: 2rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.user-details h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.user-details p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.dash-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.dash-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.dash-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease both;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

  .navbar-nav,
  .navbar-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .cards-grid,
  .cards-grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .forum-stats {
    display: none;
  }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  animation: slideInRight 0.3s ease;
  box-shadow: var(--shadow-card);
}

.toast.success {
  border-color: var(--accent-green);
}

.toast.error {
  border-color: var(--accent-pink);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 0.9rem;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 4rem;
  }

  .navbar-nav {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .navbar {
    height: auto;
    padding: 1rem 0;
  }

  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
    height: 65px;
  }

  .navbar-nav,
  .navbar-actions {
    display: none;
  }

  .hero {
    padding: 8rem 0 4rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.75rem;
    line-height: 1.1;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .grid-articles,
  .grid-forum {
    grid-template-columns: 1fr;
  }

  /* AI Widget on Mobile */
  .ai-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .ai-chat-window {
    width: calc(100vw - 2rem);
    height: 400px;
    right: 0;
  }

  .ai-bubble {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .brand-icon {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ================================================
   PROFILE PAGE STYLES
   ================================================ */

.profile-cover {
  width: 100%;
  height: 280px;
  background: var(--gradient-hero);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5));
}

.profile-cover-edit {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.profile-cover-edit:hover {
  background: rgba(0, 0, 0, 0.85);
}

.profile-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.profile-top {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.profile-avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-blue);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-name-block {
  padding-bottom: 0.75rem;
  flex: 1;
}

.profile-name-block h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}

.profile-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.75rem;
}

.profile-stats-bar {
  display: flex;
  gap: 2.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.profile-stat {
  text-align: center;
}

.profile-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  font-family: var(--font-heading);
}

.profile-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.profile-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-sidebar .card {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  cursor: default;
}

.profile-bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.profile-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.profile-social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.profile-social-link:hover {
  color: var(--accent-blue);
}

.profile-joined {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .profile-body {
    grid-template-columns: 1fr;
  }

  .profile-cover {
    height: 180px;
  }

  .profile-avatar-lg {
    width: 90px;
    height: 90px;
    font-size: 2rem;
    margin-top: -45px;
  }

  .profile-top {
    margin-top: -45px;
  }

  .profile-stats-bar {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .profile-actions {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .messages-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .msg-sidebar {
    height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ================================================
   MESSAGING SYSTEM STYLES
   ================================================ */

.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: calc(100vh - 100px);
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.msg-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.msg-sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.msg-conv-list {
  flex: 1;
  overflow-y: auto;
}

.msg-conv-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
  position: relative;
}

.msg-conv-item:hover,
.msg-conv-item.active {
  background: rgba(79, 142, 247, 0.07);
}

.msg-conv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-blue);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.msg-conv-info {
  flex: 1;
  min-width: 0;
}

.msg-conv-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-conv-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.msg-unread-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 50px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.msg-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.msg-main-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
}

.msg-chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.msg-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.msg-bubble-row.mine {
  flex-direction: row-reverse;
}

.msg-bubble {
  max-width: 65%;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.msg-bubble-row.theirs .msg-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}

.msg-bubble-row.mine .msg-bubble {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-bottom: 4px;
}

.msg-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.msg-input-area textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border-radius: 22px;
  padding: 0.65rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.5;
}

.msg-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
  z-index: 10;
  position: relative;
}

.msg-send-btn:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.msg-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.msg-empty-state .empty-icon {
  font-size: 3.5rem;
}

@media (max-width: 768px) {
  .messages-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .msg-sidebar {
    max-height: 40vh;
  }

  .msg-main {
    min-height: 60vh;
  }
}

/* Navbar message icon badge */
.nav-msg-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-msg-badge .badge-dot {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  margin: 0 auto;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1.5rem 0;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  min-width: 42px;
  text-align: center;
}

.page-btn:hover {
  background: rgba(79, 142, 247, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.2);
}

.page-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.35);
}

@media (max-width: 600px) {
  .page-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: 36px;
  }
}

/* ===== SKELETON LOADER & LAYOUT STABILITY ===== */
.skeleton {
  background: var(--skeleton-bg);
  background: linear-gradient(90deg,
      var(--skeleton-bg) 25%,
      var(--skeleton-highlight) 50%,
      var(--skeleton-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

#featuredArticles {
  min-height: 400px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

#homeForumList {
  min-height: 300px;
}

.skeleton-card {
  height: 380px;
  width: 100%;
}

.skeleton-link {
  height: 60px;
  width: 100%;
  margin-bottom: 1rem;
}

.news-ticker-container {
  min-height: 40px;
}