/* Custom Aesthetic Cursor Styles (Minimalist Spinning Halo + Center Dot) */
.custom-cursor-dot {
  width: 5px;
  height: 5px;
  background-color: var(--secondary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 8px var(--secondary-glow);
  transition: transform 0.2s, background-color 0.2s;
}

.custom-cursor-circle {
  width: 24px;
  height: 24px;
  border: 1px dashed var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s, 
              box-shadow 0.3s;
  animation: spinSlow 12s linear infinite;
}

/* Hover States for Aesthetic Cursor */
.custom-cursor-circle.hovered {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 0 15px var(--secondary-glow);
}

.custom-cursor-dot.hovered {
  transform: translate(-50%, -50%) scale(1.6);
  background-color: #fff;
  box-shadow: 0 0 10px #fff;
}

/* Hide default cursor on desktop with hover devices */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, .clickable, .social-card, .tech-badge, .term-input, .control-btn, .volume-slider {
    cursor: none;
  }
}

/* Header & Profile Section */
.profile-card {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  width: 130px;
  height: 130px;
  position: relative;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-glow {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(15px);
  opacity: 0.8;
}

.student-coder-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.svg-draw-path {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawSvg 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.svg-accent-path {
  stroke: var(--secondary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawSvg 2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

/* Live Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 500;
  margin-top: 0.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
}

/* Grid Layout structure */
.main-layout-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .main-layout-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

/* Glassmorphic Base Panel styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glass-panel:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
}

.panel-header {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

/* 1. Links grid inside left column */
.links-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.links-panel .links-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1rem;
}

.social-card {
  background: rgba(22, 14, 45, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 16px;
  padding: 1.75rem 1.5rem; /* Increased padding to stretch card heights */
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
  flex: 1; /* Stretch vertically in the links panel */
}

.social-card:hover {
  transform: translateX(4px);
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.15);
}

.social-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: var(--transition-smooth);
}

.social-card:hover .social-icon-wrapper {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.08);
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  transition: var(--transition-smooth);
}

.social-card.github:hover .social-icon { fill: #fff; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); }
.social-card.instagram:hover .social-icon { fill: #ff3366; filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.5)); }
.social-card.gitlab:hover .social-icon { fill: #fc6d26; filter: drop-shadow(0 0 8px rgba(252, 109, 38, 0.5)); }
.social-card.discord:hover .social-icon { fill: #5865f2; filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.5)); }

.social-info {
  display: flex;
  flex-direction: column;
}

.social-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.social-handle {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* 2. Tech Stack Badges Panel */
.tech-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-badge {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  transition: var(--transition-smooth);
}

.tech-badge:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15);
}

.tech-badge.python:hover { color: #ffe873; border-color: #306998; background: rgba(48, 105, 152, 0.1); }
.tech-badge.javascript:hover { color: #f7df1e; border-color: #f7df1e; background: rgba(247, 223, 30, 0.08); }
.tech-badge.htmlcss:hover { color: #e34f26; border-color: #1572b6; background: rgba(227, 79, 38, 0.08); }
.tech-badge.git:hover { color: #f05032; border-color: #f05032; background: rgba(240, 80, 50, 0.08); }

/* 3. Lofi Music Player Panel (Fully Featured) */
.music-player-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.player-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.album-art-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.2);
  border: 4px solid #080511; /* thick vinyl outer rim */
  /* Real vinyl record look with ridges */
  background: repeating-radial-gradient(
    circle,
    #120c24,
    #120c24 2px,
    #0a0615 3px,
    #0a0615 5px,
    #1c1236 6px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Rotation animation when playing */
  animation: vinylSpin 12s infinite linear;
  animation-play-state: paused;
}

.album-art-container.spinning {
  animation-play-state: running;
}

/* Spindle hole exactly in the center */
.album-art-container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #0c0816;
  border: 2px solid #000;
  border-radius: 50%;
  z-index: 10;
}

.album-art-img {
  width: 48px; /* album art acts as circular label in middle of vinyl */
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #080511;
  transition: var(--transition-smooth);
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.player-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.song-status {
  font-size: 0.7rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.song-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition-smooth);
}

.song-artist {
  font-size: 0.775rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Audio visualizer wave bar alignment */
.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.visualizer-bar {
  width: 3px;
  height: 4px; /* default flat */
  background-color: var(--primary);
  border-radius: 5px;
  transform-origin: bottom;
  transition: height 0.1s ease;
}

.visualizer-bar.bar-1 { background-color: var(--primary); }
.visualizer-bar.bar-2 { background-color: var(--accent); }
.visualizer-bar.bar-3 { background-color: var(--secondary); }
.visualizer-bar.bar-4 { background-color: var(--indigo-accent); }
.visualizer-bar.bar-5 { background-color: var(--secondary); }

/* Player Control Bar & Volume */
.player-controls-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 5, 20, 0.4);
  border-radius: 14px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-btn {
  background: transparent;
  border: none;
  outline: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  color: var(--secondary);
}

.control-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.control-btn.play-pause-btn {
  background: rgba(139, 92, 246, 0.15);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.control-btn.play-pause-btn:hover {
  background: rgba(217, 70, 239, 0.2);
  border-color: var(--secondary);
}

.player-timeline-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 0.5rem;
}

.time-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  min-width: 32px;
}

.timeline-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 5px;
  outline: none;
  transition: var(--transition-smooth);
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 6px var(--secondary-glow);
  transition: var(--transition-smooth);
}

.timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 5px;
  outline: none;
  transition: var(--transition-smooth);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 6px var(--secondary-glow);
  transition: var(--transition-smooth);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Karaoke Synced Lyrics Display */
.lyrics-wrapper {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  padding-top: 0.75rem;
  position: relative;
}

.lyrics-container {
  height: 110px;
  overflow-y: auto;
  scroll-behavior: smooth;
  text-align: center;
  mask-image: linear-gradient(to bottom, transparent 0%, white 25%, white 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, white 25%, white 75%, transparent 100%);
}

/* Hide scrollbar for lyrics */
.lyrics-container::-webkit-scrollbar {
  display: none;
}

.lyric-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.35;
  font-weight: 500;
  line-height: 1.4;
  transform: scale(0.95);
}

.lyric-line.active {
  color: #fff;
  font-size: 1.025rem;
  font-weight: 700;
  opacity: 1;
  transform: scale(1);
  text-shadow: 0 0 12px var(--secondary-glow), 0 0 6px var(--primary-glow);
}

/* 4. simplified Coding Stats Card (Aligned at the bottom) */
.stats-panel {
  padding: 1.25rem 1.5rem;
}

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

.stat-box {
  background: rgba(139, 92, 246, 0.04);
  padding: 0.6rem 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.08);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-box:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* 5. Geliştirici Terminali (Interactive Terminal) */
.terminal-panel {
  grid-column: 1 / -1; /* spans full width */
}

.terminal-window {
  width: 100%;
  background: rgba(8, 4, 18, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.terminal-titlebar {
  background: rgba(20, 12, 38, 0.8);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

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

.control-dot.close { background-color: #ef4444; }
.control-dot.minimize { background-color: #eab308; }
.control-dot.maximize { background-color: #22c55e; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.725rem;
  user-select: none;
}

.terminal-content {
  padding: 1.25rem;
  height: 160px;
  overflow-y: auto;
  font-size: 0.825rem;
  line-height: 1.5;
  color: #c084fc;
}

.term-line {
  margin-bottom: 4px;
}

.term-input-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.term-prompt {
  color: var(--secondary);
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  flex: 1;
}

/* Discord Toast Alert */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 11, 40, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  color: var(--text-main);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(217, 70, 239, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 18px;
  height: 18px;
  fill: var(--secondary);
}

/* Footer styling */
footer {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  z-index: 10;
}

.footer-text {
  opacity: 0.7;
}

/* Drag and Selection Prevention */
.no-select {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.no-drag-img {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  user-select: none !important;
  pointer-events: none;
}

/* Force block drag and select on all images, SVGs and non-clickable titles */
img, svg {
  user-drag: none !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Block clicks/selection on labels, headers, status dot, and play descriptions */
.song-title,
.song-artist,
.song-status,
.status-badge,
.panel-header,
.footer-text,
.visualizer,
.logo-container,
.student-coder-svg {
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: none !important;
}

/* Allow text selection and copyability in terminal lines, content, and prompts */
.terminal-content,
.term-line,
.term-prompt,
.term-input {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  pointer-events: auto !important;
}

/* --- Discord Presence Widget --- */
.social-card.discord {
  padding: 1.1rem 1.25rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  width: 100%;
}

.discord-widget {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.85rem;
  position: relative;
}

.discord-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
}

.discord-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.discord-status-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #06030c; /* Matches primary background color to simulate cut out */
  background: #80848e; /* Default offline grey */
  transition: var(--transition-smooth);
}

.discord-status-badge.online {
  background: #23a55a;
}

.discord-status-badge.idle {
  background: #f0b232;
  /* clip-path to look like a crescent moon shape */
  clip-path: circle(50% at 50% 50%);
}

.discord-status-badge.dnd {
  background: #f23f43;
}

.discord-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0.15rem;
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.discord-username {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.discord-badge-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.discord-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 1px 5px;
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-muted);
}

.discord-badge.meow {
  background: rgba(255, 51, 102, 0.08);
  border-color: rgba(255, 51, 102, 0.2);
  color: #ff4785;
}

.badge-icon-svg {
  width: 13px;
  height: 13px;
  display: block;
}

.discord-status-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.discord-custom-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-custom-status.watching {
  color: var(--text-main);
  font-weight: 600;
}

.discord-custom-status-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.discord-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-activity-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

