/* ==========================================================================
   NEXUS // DEV & ART - COMPONENTS STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   CATEGORY BADGES & TAGS
   -------------------------------------------------------------------------- */
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.badge-vfx {
  background: hsla(185, 90%, 50%, 0.12);
  color: var(--cat-vfx);
  border: 1px solid hsla(185, 90%, 50%, 0.3);
}

.badge-game {
  background: hsla(38, 95%, 55%, 0.12);
  color: var(--cat-game);
  border: 1px solid hsla(38, 95%, 55%, 0.3);
}

.badge-3d {
  background: hsla(265, 75%, 65%, 0.12);
  color: var(--cat-3d);
  border: 1px solid hsla(265, 75%, 65%, 0.3);
}

.badge-software {
  background: hsla(155, 80%, 48%, 0.12);
  color: var(--cat-software);
  border: 1px solid hsla(155, 80%, 48%, 0.3);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.difficulty-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.difficulty-bars {
  display: flex;
  gap: 2px;
}

.difficulty-bar {
  width: 4px;
  height: 10px;
  border-radius: 1px;
  background: var(--border-medium);
}

.difficulty-bar.filled-easy {
  background: var(--accent-emerald);
}

.difficulty-bar.filled-medium {
  background: var(--accent-amber);
}

.difficulty-bar.filled-hard {
  background: var(--accent-coral);
}

/* --------------------------------------------------------------------------
   BLOG & ARTICLE CARDS
   -------------------------------------------------------------------------- */
.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.tab-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.blog-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: 320px;
  transition: border-color var(--transition-fast);
}

.blog-search-box:focus-within {
  border-color: var(--accent-cyan);
}

.blog-search-box svg {
  color: var(--text-muted);
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.blog-search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

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

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-cyan-dim);
}

.article-card-media {
  width: 100%;
  height: 170px;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.article-card-media img,
.article-card-media canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.article-card:hover .article-card-media img {
  transform: scale(1.05);
}

.media-interactive-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: hsla(220, 20%, 8%, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.article-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
}

.article-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.article-card-title {
  font-size: 1.12rem;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color var(--transition-fast);
  overflow-wrap: break-word;
}

.article-card:hover .article-card-title {
  color: var(--accent-cyan);
}

.article-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.read-more-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform var(--transition-fast);
}

.article-card:hover .read-more-link {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   3D & VFX LAB / INTERACTIVE TURNTABLE
   -------------------------------------------------------------------------- */
.lab-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.lab-viewport-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.lab-canvas-wrapper {
  height: 480px;
  position: relative;
  background: radial-gradient(circle at center, hsl(220, 20%, 14%) 0%, hsl(220, 24%, 6%) 100%);
  cursor: grab;
}

.lab-canvas-wrapper:active {
  cursor: grabbing;
}

.lab-canvas-wrapper canvas {
  width: 100%;
  height: 100%;
}

.lab-hud-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hud-pill {
  pointer-events: auto;
  background: hsla(220, 20%, 8%, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lab-controls-panel {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.control-value {
  color: var(--accent-cyan);
  font-weight: 600;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  background: var(--bg-secondary);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.segmented-btn {
  padding: 0.4rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.segmented-btn.active {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid hsla(185, 90%, 50%, 0.3);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   PROJECT PORTFOLIO & BEFORE-AFTER SLIDER
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-lg);
}

/* Before / After Interactive Slider */
.comparison-slider-container {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--bg-tertiary);
  user-select: none;
}

.comparison-image-before,
.comparison-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.comparison-image-before img,
.comparison-image-after img,
.comparison-image-before canvas,
.comparison-image-after canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comparison-image-after {
  width: 50%;
  border-right: 2px solid var(--accent-cyan);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--text-primary);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 0.7rem;
}

.slider-label {
  position: absolute;
  bottom: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: hsla(220, 20%, 8%, 0.85);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  z-index: 4;
}

.slider-label.label-before {
  right: 0.65rem;
}

.slider-label.label-after {
  left: 0.65rem;
}

.project-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   TECH ARSENAL & SKILLS MATRIX
   -------------------------------------------------------------------------- */
.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.tech-domain-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-normal);
}

.tech-domain-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.domain-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.domain-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.domain-vfx .domain-icon-box {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.domain-game .domain-icon-box {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
}

.domain-3d .domain-icon-box {
  background: var(--accent-violet-dim);
  color: var(--accent-violet);
}

.domain-software .domain-icon-box {
  background: var(--accent-emerald-dim);
  color: var(--accent-emerald);
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tech-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.tech-name {
  color: var(--text-primary);
}

.tech-level-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.tech-level-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease-in-out;
}

/* --------------------------------------------------------------------------
   INTERACTIVE SHADER SANDBOX
   -------------------------------------------------------------------------- */
.sandbox-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.sandbox-canvas-container {
  height: 340px;
  border-radius: var(--radius-md);
  background: #000;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.sandbox-canvas-container canvas {
  width: 100%;
  height: 100%;
}

.sandbox-code-preview {
  background: hsl(220, 20%, 6%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  height: 340px;
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   ABOUT & JOURNEY SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 2.25rem;
  align-items: flex-start;
}

.about-visual {
  position: relative;
  width: 100%;
}

.author-portrait-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 380px;
  margin: 0 auto;
}

.author-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0.25rem auto 0.75rem;
  width: fit-content;
}

.author-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at center, hsl(220, 20%, 18%), hsl(220, 20%, 6%));
  border: 3px solid var(--accent-cyan);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-cyan-dim), 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-normal);
}

.author-avatar:hover {
  border-color: #fff;
  box-shadow: 0 0 25px var(--accent-cyan-glow), 0 10px 24px rgba(0, 0, 0, 0.6);
}

.author-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform var(--transition-smooth);
}

.author-avatar:hover .author-photo-img {
  transform: scale(1.08);
}

.avatar-status-pill {
  position: absolute;
  bottom: -6px;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.avatar-status-pill.is-online {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(6, 44, 30, 0.88);
}

.avatar-status-pill.is-online .status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-green-dot 1.4s infinite ease-in-out;
}

.avatar-status-pill.is-offline {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(45, 10, 15, 0.88);
}

.avatar-status-pill.is-offline .status-dot {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-red-dot 1.4s infinite ease-in-out;
}

@keyframes pulse-green-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.6);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.75);
    box-shadow: 0 0 2px #10b981;
  }
}

@keyframes pulse-red-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.6);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.75);
    box-shadow: 0 0 2px #ef4444;
  }
}

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-subtle);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   INTERACTIVE TERMINAL CONSOLE
   -------------------------------------------------------------------------- */
.terminal-widget {
  background: hsl(220, 24%, 6%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  margin-top: 4rem;
}

.terminal-header {
  background: hsl(220, 20%, 10%);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem;
  min-height: 180px;
  max-height: 260px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.terminal-line {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.terminal-line.output {
  color: var(--text-secondary);
}

.terminal-line.success {
  color: var(--accent-emerald);
}

.terminal-line.system {
  color: var(--accent-amber);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.terminal-prompt {
  color: var(--accent-cyan);
  font-weight: 700;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-info-item:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* --------------------------------------------------------------------------
   ARTICLE READER MODAL & FULL-VIEW
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: hsla(220, 24%, 4%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.reader-modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
  }

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

.reader-modal-header {
  padding: 1rem 1.5rem;
  background: var(--bg-glass-heavy);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-coral-dim);
  color: var(--accent-coral);
  border-color: var(--accent-coral);
}

.reader-modal-body {
  padding: 2.5rem 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-hero-banner {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tertiary);
  position: relative;
}

.article-hero-banner img,
.article-hero-banner canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Prose Typography */
.article-prose {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-prose h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.article-prose h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.article-prose p {
  margin-bottom: 1.5rem;
}

.article-prose ul,
.article-prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-prose blockquote {
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--text-primary);
  background: var(--accent-cyan-dim);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Code Blocks with Copy Feature */
.code-block-wrapper {
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  background: hsl(220, 24%, 6%);
  border: 1px solid var(--border-medium);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: hsl(220, 20%, 9%);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copy-code-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.copy-code-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.code-content {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: hsl(220, 15%, 85%);
}

/* Article Reader Footer (Claps, Bookmark, Share) */
.reader-modal-footer {
  padding: 1.25rem 2.5rem;
  background: var(--bg-glass-heavy);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.engagement-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clap-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border: 1px solid hsla(38, 95%, 55%, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.clap-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px hsla(38, 95%, 55%, 0.3);
}

.bookmark-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.bookmark-btn.bookmarked {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   GLOBAL SEARCH MODAL (CMD+K)
   -------------------------------------------------------------------------- */
.search-modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-input-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.search-global-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-primary);
  width: 100%;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.search-result-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cyan);
}

.search-result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.35rem;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* Footer Styles */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 340px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   OFFICIAL DOMAINS INFORMATIONAL BANNER
   -------------------------------------------------------------------------- */
.official-domains-banner {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.official-domains-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-amber));
}

.domains-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.domains-banner-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.domains-banner-sub {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.domains-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.domain-chip:hover {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-cyan-dim);
}

.domain-chip::before {
  content: '⚡';
  font-size: 0.75rem;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   PROGRAMMING LANGUAGES MATRIX & CARDS
   -------------------------------------------------------------------------- */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.language-group-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.language-group-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.lang-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-group-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.lang-group-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.lang-group-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.lang-items-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.lang-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* --------------------------------------------------------------------------
   MULTI-PAGE LAYOUT & PAGE HERO BANNERS
   -------------------------------------------------------------------------- */
.page-hero-banner {
  padding: 3.5rem 0 2.25rem;
  background: radial-gradient(ellipse at 50% 0%, hsla(186, 100%, 50%, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--accent-cyan);
}

.breadcrumb-sep {
  color: var(--silver-dim);
}

.breadcrumb-active {
  color: var(--accent-cyan);
}

.page-hero-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SILVER & CHROME BADGES / GLOW
   -------------------------------------------------------------------------- */
.badge-silver {
  background: rgba(226, 232, 240, 0.08);
  color: var(--silver-base);
  border: 1px solid rgba(226, 232, 240, 0.25);
}

.badge-cad {
  background: hsla(210, 90%, 60%, 0.12);
  color: var(--cat-cad);
  border: 1px solid hsla(210, 90%, 60%, 0.35);
}

.silver-gradient-text {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cyan-gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   CATEGORIZED ARSENAL & SKILLS (3D, CAD, OYUN MOTORLARI, DİLLER)
   -------------------------------------------------------------------------- */
.arsenal-categorized-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.arsenal-cat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.arsenal-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-subtle);
  transition: background var(--transition-fast);
}

.arsenal-cat-card.cat-3d::before {
  background: linear-gradient(90deg, #e2e8f0, #94a3b8);
}

.arsenal-cat-card.cat-cad::before {
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.arsenal-cat-card.cat-engine::before {
  background: linear-gradient(90deg, #00f0ff, #2563eb);
}

.arsenal-cat-card.cat-languages::before {
  background: linear-gradient(90deg, #10b981, #00f0ff);
}

.arsenal-cat-card:hover {
  border-color: var(--silver-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 20px var(--silver-glow);
}

.arsenal-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.arsenal-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.arsenal-cat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arsenal-cat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.arsenal-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-silver);
  transition: all var(--transition-fast);
}

.skill-tag-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  transform: translateY(-1px);
}

.skill-tag-highlight {
  border-color: rgba(0, 240, 255, 0.4);
  background: hsla(186, 100%, 50%, 0.08);
  color: #00f0ff;
}

/* --------------------------------------------------------------------------
   NEWS / HABERLER SECTION
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.news-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-normal);
  position: relative;
}

.news-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 18px rgba(56, 189, 248, 0.12);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  overflow-wrap: break-word;
}

.news-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   DOMAIN MATRIX & CONTACT CARDS
   -------------------------------------------------------------------------- */
.domains-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.domain-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.domain-card:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.domain-badge-active {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Active Nav State */
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-nav-link.active {
  color: var(--accent-cyan);
  background: hsla(186, 100%, 50%, 0.08);
  border-left-color: var(--accent-cyan);
}

/* About Specs Grid */
.about-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.spec-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.spec-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-tertiary);
}

.spec-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   MODERN CHAT UI — Instagram × Facebook DM Karışımı (Revize v5.0)
   -------------------------------------------------------------------------- */

/* ─── Genel Chat Container ────────────────────────────────────────────────── */
.chat-window-card {
  background: hsl(222, 38%, 6%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 270px 1fr 260px;
  height: 800px;
  max-height: 88vh;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

/* ─── SOL SÜTUN: Kanallar, DM Listesi & Profil ─── */
.chat-sidebar-left {
  background: hsl(225, 42%, 4%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar-header {
  padding: 1.25rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsl(225, 45%, 3.5%);
}

.chat-sidebar-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

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

.chat-left-scroll::-webkit-scrollbar { width: 3px; }
.chat-left-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-left-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.chat-section-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 0.5rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-channels-list,
.chat-dm-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-channel-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  background: transparent;
}

.chat-channel-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.chat-channel-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(56, 189, 248, 0.07));
  border-color: rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
}

.chat-channel-hash {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1rem;
}

.chat-channel-btn.active .chat-channel-hash { color: var(--accent-cyan); }

/* DM butonları — Instagram DM listesi tarzı */
.chat-dm-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  background: transparent;
  overflow: hidden;
  white-space: nowrap;
}

.chat-dm-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.chat-dm-btn.active,
.chat-dm-row.active .chat-dm-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(56, 189, 248, 0.05));
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
}

.chat-dm-avatar-mini {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #05070c;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.chat-dm-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  border-radius: 10px;
  transition: all 0.15s ease;
  position: relative;
}

.chat-dm-row:hover { background: rgba(255, 255, 255, 0.05); }
.chat-dm-row.active { background: rgba(0, 240, 255, 0.07); }

.chat-dm-row .chat-dm-btn {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
}

.chat-dm-nick-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.82rem;
}

.chat-dm-del-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.2);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  opacity: 0;
  transition: all 0.15s;
  margin-right: 4px;
  flex-shrink: 0;
}

.chat-dm-row:hover .chat-dm-del-btn { opacity: 1; }
.chat-dm-del-btn:hover { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.chat-header-del-dm-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-header-del-dm-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
}

.chat-msg-del-action {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  margin-left: auto;
  transition: opacity 0.2s, transform 0.2s;
  padding: 2px 4px;
}

.chat-message-row:hover .chat-msg-del-action { opacity: 0.8; }
.chat-msg-del-action:hover { opacity: 1; transform: scale(1.2); }

/* Sol Alt Profil Paneli */
.chat-user-panel {
  background: hsl(225, 45%, 3.5%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem;
}

.chat-user-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #05070c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  flex-shrink: 0;
  transition: all 0.2s;
  cursor: default;
}

.chat-user-details { flex: 1; min-width: 0; }

.chat-user-nickname {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  user-select: none;
}

.chat-color-palette {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.color-dot:hover,
.color-dot.active { transform: scale(1.3); border-color: rgba(255, 255, 255, 0.6); }

/* ─── ORTA SÜTUN: Mesajlaşma Alanı ─── */
.chat-main {
  display: flex;
  flex-direction: column;
  background: hsl(222, 36%, 7%);
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(0, 240, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(168, 85, 247, 0.03) 0%, transparent 60%);
}

.chat-main-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: hsla(222, 40%, 7%, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.chat-header-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-dm-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--accent-violet);
  padding: 2px 7px;
  border-radius: 20px;
}

.chat-header-topic {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-dm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #05070c;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.chat-header-dm-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  right: -1px;
  border: 2px solid hsl(222, 36%, 7%);
}
.chat-header-dm-status.online { background: #10b981; box-shadow: 0 0 6px #10b981; }
.chat-header-dm-status.offline { background: #6b7280; }

/* ─── Mesaj Akışı ─── */
.chat-messages-stream {
  flex: 1;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.chat-messages-stream::-webkit-scrollbar { width: 4px; }
.chat-messages-stream::-webkit-scrollbar-track { background: transparent; }
.chat-messages-stream::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ─── Mesaj Satırı — Instagram/Facebook Bubble ─── */
.chat-message-row {
  display: flex;
  gap: 0.6rem;
  animation: msgFadeIn 0.2s ease-out;
  align-items: flex-end;
  max-width: 100%;
}

.chat-message-row.chat-msg-own { flex-direction: row-reverse; }

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #05070c;
  flex-shrink: 0;
  align-self: flex-end;
  overflow: hidden;
}

/* Kendi mesajlarımda avatar gizle */
.chat-message-row.chat-msg-own .chat-msg-avatar { display: none; }

.chat-msg-content-wrap {
  max-width: 72%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chat-message-row.chat-msg-own .chat-msg-content-wrap { align-items: flex-end; }

.chat-msg-author-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.chat-message-row.chat-msg-own .chat-msg-author-row { flex-direction: row-reverse; }

.chat-msg-author {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.chat-msg-author:hover { text-decoration: underline; }

.chat-admin-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-msg-time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Mesaj Balonu */
.chat-msg-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  background: hsl(225, 35%, 14%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.65rem 1rem;
  border-radius: 18px 18px 18px 4px;
  display: inline-block;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Kendi mesajlarım — Facebook mavi */
.chat-msg-own .chat-msg-text {
  background: linear-gradient(135deg, #0084ff, #006bd6);
  border: none;
  border-radius: 18px 18px 4px 18px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 132, 255, 0.35);
}

.chat-msg-dm .chat-msg-text {
  background: hsl(265, 30%, 14%);
  border-color: rgba(168, 85, 247, 0.2);
}

/* ─── SAĞ SÜTUN: Üyeler ─── */
.chat-sidebar-right {
  background: hsl(225, 42%, 4%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-members-header {
  padding: 1.25rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsl(225, 45%, 3.5%);
}

.chat-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.presence-dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: presencePulse 2s infinite;
}

@keyframes presencePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.35); opacity: 0.6; }
}

.chat-members-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-members-list::-webkit-scrollbar { width: 3px; }
.chat-members-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.chat-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.chat-member-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}

.chat-member-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.chat-member-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #05070c;
  overflow: hidden;
}

.chat-member-avatar-wrap.is-active .chat-member-avatar {
  box-shadow: 0 0 0 2px hsl(225, 42%, 4%), 0 0 0 3.5px #10b981;
}

.chat-member-avatar-wrap.is-passive .chat-member-avatar {
  box-shadow: 0 0 0 2px hsl(225, 42%, 4%), 0 0 0 3.5px rgba(255, 255, 255, 0.1);
}

.chat-member-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid hsl(225, 42%, 4%);
}

.chat-member-status-dot.status-active {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.chat-member-status-dot.status-passive {
  background: #4b5563;
}

.chat-member-name-wrap { min-width: 0; flex: 1; }

.chat-member-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-member-role {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  font-family: var(--font-body);
}

.chat-member-role.admin-online { color: #10b981 !important; font-weight: 600; }
.chat-member-role.admin-offline { color: rgba(255, 255, 255, 0.3) !important; }

.chat-member-dm-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0;
  flex-shrink: 0;
}

.chat-member-card:hover .chat-member-dm-btn {
  opacity: 1;
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.08);
}

.chat-member-card.chat-member-me {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.15);
}

.chat-member-card.admin-active-card {
  background: rgba(16, 185, 129, 0.04);
  border-left: 2px solid rgba(16, 185, 129, 0.5);
}

.chat-member-card.admin-passive-card {
  background: transparent;
  border-left: 2px solid rgba(107, 114, 128, 0.3);
}

/* ─── Input Bar — Instagram tarzı ─── */
.chat-input-wrapper {
  padding: 0.85rem 1rem;
  background: hsl(225, 40%, 5%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-quick-emojis {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.quick-emoji-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.quick-emoji-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  transform: scale(1.15);
}

.chat-form-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-text-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0.85rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
  min-height: 48px;
}

.chat-text-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.chat-text-input:focus {
  border-color: rgba(0, 132, 255, 0.6);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.12);
}

.chat-send-btn {
  background: linear-gradient(135deg, #0084ff, #006bd6);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 132, 255, 0.4);
  padding: 0;
}

.chat-send-btn span { display: none; }

.chat-send-btn svg { width: 18px; height: 18px; stroke: #fff; }

.chat-send-btn:hover {
  background: linear-gradient(135deg, #1a8fff, #0077e8);
  box-shadow: 0 4px 20px rgba(0, 132, 255, 0.55);
  transform: scale(1.08);
}

.chat-attach-btn,
.chat-emoji-trigger-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.chat-attach-btn:hover,
.chat-emoji-trigger-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

/* Görsel Önizleme */
.chat-image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 132, 255, 0.08);
  border: 1px solid rgba(0, 132, 255, 0.2);
  border-radius: 12px;
  animation: fadeIn 0.2s ease-out;
}

.chat-image-preview.hidden { display: none !important; }

.chat-image-preview-thumb-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.chat-image-preview-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }

.chat-image-preview-cancel {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-image-preview-info { flex: 1; min-width: 0; }
.chat-image-preview-name { font-size: 0.8rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chat-image-preview-status { font-size: 0.7rem; color: #60a5fa; }

.chat-msg-image-wrap {
  margin-top: 6px;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: rgba(0, 0, 0, 0.3);
}

.chat-msg-image-wrap:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

.chat-msg-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

/* ─── Reply Preview ─── */
.chat-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 132, 255, 0.08);
  border: 1px solid rgba(0, 132, 255, 0.2);
  border-left: 3px solid #0084ff;
  padding: 8px 12px;
  border-radius: 10px;
  animation: slideUpReply 0.2s ease-out;
}

.chat-reply-preview.hidden { display: none !important; }

@keyframes slideUpReply {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-reply-preview-left { flex: 1; min-width: 0; }
.chat-reply-preview-title { font-size: 0.74rem; color: #60a5fa; display: flex; align-items: center; gap: 4px; }
.chat-reply-preview-text { font-size: 0.8rem; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.chat-reply-cancel-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-reply-cancel-btn:hover { background: rgba(239,68,68,0.2); color: #ef4444; border-color: rgba(239,68,68,0.4); }

.chat-quoted-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px 8px 8px 4px;
  padding: 5px 9px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-msg-own .chat-quoted-box { border-left-color: rgba(255,255,255,0.5); background: rgba(0,0,0,0.2); }
.chat-quoted-box:hover { background: rgba(255,255,255,0.08); }
.chat-quoted-author { font-weight: 700; font-size: 0.7rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; }
.chat-quoted-snippet { color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-msg-reply-action {
  background: transparent;
  border: none;
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  padding: 2px 5px;
  color: rgba(255,255,255,0.35);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
}

.chat-message-row:hover .chat-msg-reply-action {
  opacity: 1;
}

.chat-msg-reply-action:hover {
  opacity: 1;
  color: #60a5fa;
}

.chat-msg-actions-bottom {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chat-message-row:hover .chat-msg-actions-bottom {
  opacity: 1;
}

.chat-msg-own .chat-msg-actions-bottom {
  margin-left: 0;
  margin-right: 4px;
  justify-content: flex-end;
}

.chat-msg-reply-action-chic {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-msg-reply-action-chic:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.chat-msg-del-action-chic {
  background: rgba(255, 70, 70, 0.08);
  border: 1px solid rgba(255, 70, 70, 0.15);
  border-radius: 12px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: #ff6b6b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 4px;
}

.chat-msg-del-action-chic:hover {
  background: rgba(255, 70, 70, 0.15);
  border-color: rgba(255, 70, 70, 0.3);
  transform: translateY(-1px);
}

.chat-msg-highlight { animation: highlightMessage 1.5s ease-out; }

@keyframes highlightMessage {
  0%   { background: rgba(0, 132, 255, 0.2); border-radius: 10px; }
  100% { background: transparent; border-radius: 0; }
}

@media (max-width: 768px) { .chat-msg-reply-action { opacity: 0.85; } }

/* ─── Mobil Sekme Çubuğu ─── */
.chat-mobile-tabs-bar {
  display: none;
  background: hsl(225, 45%, 4%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 3px;
  margin-bottom: 0.75rem;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 4px;
}

.chat-mobile-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  white-space: nowrap;
}

.chat-mobile-tab-btn.active {
  background: rgba(0, 132, 255, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(0, 132, 255, 0.3);
}

/* ─── Mobil Alt Dock ─── */
.mobile-app-dock {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: hsla(225, 45%, 5%, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
  z-index: 990;
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
}

.mobile-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  border-radius: 10px;
  min-width: 44px;
  flex: 1;
  max-width: 64px;
  transition: all 0.15s;
}

.mobile-dock-item:hover,
.mobile-dock-item.active { color: #60a5fa; background: rgba(0, 132, 255, 0.1); }

.dock-icon { font-size: 1.15rem; line-height: 1; }
.dock-label { font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; }

/* ─── Responsive ─── */
@media (max-width: 1024px) and (min-width: 901px) {
  .chat-window-card { grid-template-columns: 220px 1fr 200px; }
}

@media (max-width: 900px) {
  .chat-mobile-tabs-bar { display: grid; }

  .chat-window-card {
    grid-template-columns: 1fr;
    height: 70vh;
    min-height: 320px;
  }

  .chat-sidebar-left,
  .chat-sidebar-right { display: none; }

  .chat-sidebar-left.mobile-open {
    display: flex;
    position: absolute;
    top: 0; left: 0;
    width: 290px; height: 100%;
    z-index: 30;
    background: hsl(225, 45%, 5%);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.6);
  }

  .chat-sidebar-right.mobile-open {
    display: flex;
    position: absolute;
    top: 0; right: 0;
    width: 290px; height: 100%;
    z-index: 30;
    background: hsl(225, 45%, 5%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 768px) {
  .mobile-app-dock { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ─── Emoji Seçici ─── */
.chat-emoji-picker-container {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: hsl(225, 42%, 8%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 100;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: modalFadeIn 0.18s ease-out;
}

.chat-emoji-picker-container.hidden { display: none !important; }

.emoji-picker-header {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.emoji-picker-tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; }

.emoji-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.emoji-tab-btn.active,
.emoji-tab-btn:hover { background: rgba(0,132,255,0.15); border-color: rgba(0,132,255,0.3); }

.emoji-close-btn { background: transparent; border: none; color: rgba(255,255,255,0.4); font-size: 1rem; cursor: pointer; padding: 4px 6px; }
.emoji-close-btn:hover { color: #fff; }

.emoji-search-wrap { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }

.emoji-search-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #fff;
  outline: none;
}

.emoji-search-input:focus { border-color: rgba(0,132,255,0.5); }

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 10px;
  max-height: 210px;
  overflow-y: auto;
}

.emoji-item {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  padding: 4px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.emoji-item:hover { background: rgba(255,255,255,0.1); transform: scale(1.25); }

/* ─── Lightbox ─── */
.chat-lightbox-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.chat-lightbox-modal.active { opacity: 1; pointer-events: auto; }

.chat-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.25s ease-out;
}

.chat-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 50px rgba(0,0,0,0.9);
  object-fit: contain;
}

.chat-lightbox-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

.chat-lightbox-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s;
}
.chat-lightbox-btn:hover { background: #0084ff; border-color: #0084ff; }

.chat-lightbox-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.15s;
}
.chat-lightbox-close:hover { transform: scale(1.15); }

/* ─── FULLSCREEN CHAT APP STYLES (FB/IG DM Layout) ─── */
.chat-fullscreen-main {
  height: calc(100vh - var(--header-height));
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.chat-fullscreen-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
}

.chat-fullscreen-container .chat-window-card {
  height: 100%;
  max-height: none;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  margin: 0;
}

/* On mobile, adjust height to account for the bottom dock */
@media (max-width: 900px) {
  .chat-fullscreen-main {
    height: calc(100vh - var(--header-height) - 60px); /* 60px is mobile dock approx height */
  }
}
