
/* ==========================================================================
   saivan personal portal — high-contrast purple / pink cyber-indie design
   ========================================================================== */

:root {
  --bg-color: #040810;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --text-sub: #cbd5e1;
  --text-dim: #94a3b8;

  --accent-cyan: #d946ef;
  --accent-cyan-bright: #ff00ff;
  --accent-cyan-hover: #e879f9;
  --accent-blue: #9333ea;
  --accent-blue-hover: #a855f7;
  --accent-blue-deep: #7e22ce;
  --accent-ice: #fae8ff;

  --card-bg: rgba(10, 18, 36, 0.9);
  --card-bg-hover: rgba(14, 26, 52, 0.96);
  --card-border: rgba(217, 70, 239, 0.32);
  --card-border-hover: rgba(217, 70, 239, 0.75);
  
  --card-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.8), 0 0 24px rgba(217, 70, 239, 0.12);
  --card-shadow-hover: 0 18px 42px -4px rgba(0, 0, 0, 0.9), 0 0 32px rgba(217, 70, 239, 0.3);

  --font-krona: 'Krona One', sans-serif;
  --font-inter: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-jersey: 'Jersey 25', sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

#bg-iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-color);
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: transparent;
  color: var(--text-main);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   Site Header & Logo
   ========================================================================== */

.site-header {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-inter);
  font-size: clamp(52px, 9vw, 74px);
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-transform: lowercase;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.logo-gif {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  border: 1.5px solid rgba(217, 70, 239, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(217, 70, 239, 0.35);
  vertical-align: middle;
}

.bio {
  font-family: var(--font-inter);
  font-size: clamp(14.5px, 2.5vw, 16px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.75;
  max-width: 660px;
  margin: 0 auto;
  letter-spacing: 0.15px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(217, 70, 239, 0.25);
  padding: 18px 26px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(217, 70, 239, 0.08);
}

/* ==========================================================================
   Content Sections & Blocks
   ========================================================================== */

.content-sections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 65px;
}

.section-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.section-title {
  font-family: var(--font-inter);
  font-size: clamp(30px, 5vw, 40px);
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '//';
  font-family: var(--font-inter);
  font-size: 0.85em;
  font-weight: 700;
  color: var(--accent-cyan-bright);
}

.item-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.item-link {
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(217, 70, 239, 0.35);
  padding: 8px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(217, 70, 239, 0.12);
}



.item-link:hover .arrow {
  color: #ffffff;
}

.arrow {
  display: inline-block;
  font-size: 1.1em;
  color: #ffffff;
}

.item-subtext {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  color: #f1f5f9;
  letter-spacing: 0.15px;
  line-height: 1.6;
  max-width: 600px;
}

/* ==========================================================================
   Contact Buttons Row
   ========================================================================== */

.contact-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.contact-btn {
  font-family: var(--font-inter);
  font-size: 15.5px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(217, 70, 239, 0.35);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(217, 70, 239, 0.12);
  cursor: pointer;
}



.contact-btn:hover .arrow {
  color: #ffffff;
}

.contact-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   Social Icons Row
   ========================================================================== */

.social-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.social-icon-link {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(217, 70, 239, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(217, 70, 239, 0.12);
  cursor: pointer;
  text-decoration: none;
}

.social-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
}

.social-icon-link.telegram:hover {
  background: rgba(42, 171, 238, 0.35);
  border-color: #d946ef;
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.6);
}

.social-icon-link.youtube:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: #ff4d4d;
  box-shadow: 0 0 24px rgba(255, 77, 77, 0.55);
}

.social-icon-link.tiktok:hover {
  background: rgba(254, 44, 85, 0.3);
  border-color: #fe2c55;
  box-shadow: 0 0 24px rgba(254, 44, 85, 0.55);
}

/* ==========================================================================
   My Button (88x31) & Code Box
   ========================================================================== */

.my-button-badge {
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(217, 70, 239, 0.25);
  border-radius: 4px;
  border: 1px solid rgba(217, 70, 239, 0.3);
}

.my-button-badge:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 24px rgba(217, 70, 239, 0.45);
}

.button-code-textarea {
  background: rgba(6, 12, 24, 0.95);
  color: var(--accent-ice);
  border: 1.5px solid rgba(217, 70, 239, 0.35);
  border-radius: 10px;
  font-family: var(--font-inter);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px 16px;
  width: 100%;
  max-width: 480px;
  height: 56px;
  resize: both;
  overflow: auto;
  text-align: center;
  margin-top: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.button-code-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan-bright);
  background: rgba(8, 16, 34, 0.98);
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.4);
}

/* ==========================================================================
   Last.fm Widget
   ========================================================================== */

.lastfm-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 20px;
  max-width: 440px;
  width: 100%;
  text-align: left;
  box-shadow: var(--card-shadow);
}

.lastfm-widget:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.lastfm-cover-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(4, 8, 16, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(217, 70, 239, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.lastfm-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lastfm-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.lastfm-track-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lastfm-track-link {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 15.5px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.lastfm-track-link:hover {
  color: var(--accent-cyan-bright);
}

.lastfm-heart {
  font-size: 13px;
  flex-shrink: 0;
}

.lastfm-artist-link {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--accent-ice);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.lastfm-artist-link:hover {
  color: #ffffff;
}

.lastfm-date {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 12px;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.now-playing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan-bright);
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan-bright);
  animation: pulseAnimation 1.8s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ==========================================================================
   Footer: Userbars & Badges
   ========================================================================== */

.site-footer {
  margin-top: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.userbar-link {
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
}

.userbar-link:hover {
  opacity: 0.95;
}

.lastfm-userbar,
.nickname-userbar {
  max-width: 350px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(217, 70, 239, 0.2);
}

.userbar-link:hover .lastfm-userbar,
.userbar-link:hover .nickname-userbar {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75), 0 0 26px rgba(217, 70, 239, 0.45);
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  max-width: 394px; /* 4 кнопки по 88px + 3 отступа по 14px = 394px */
}

.badge-link {
  display: inline-block;
  text-decoration: none;
}

.badge-88x31 {
  width: 88px;
  height: 31px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 10px rgba(217, 70, 239, 0.15);
}

.badge-link:hover .badge-88x31 {
  filter: brightness(1.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(217, 70, 239, 0.4);
}

.copyright {
  font-family: var(--font-inter);
  font-size: 12.5px;
  color: var(--text-dim);
  opacity: 0.55;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  letter-spacing: 0.2px;
}

.copyright:hover {
  opacity: 0.9;
}

.copyright a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(217, 70, 239, 0.4);
  padding-bottom: 1px;
}



/* ==========================================================================
   Navigation Links & Pages (Donate, Server, Back)
   ========================================================================== */

.back-link {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(14, 28, 56, 0.9);
  border: 1.5px solid rgba(217, 70, 239, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}



/* ==========================================================================
   Donate Page Styles
   ========================================================================== */

.donate-grid {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.donate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 24px;
  text-align: left;
  box-shadow: var(--card-shadow);
}



.donate-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.donate-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(217, 70, 239, 0.3);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.donate-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.donate-name {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 16.5px;
  color: #ffffff;
}

.donate-desc {
  font-family: var(--font-inter);
  font-size: 13.5px;
  color: #f1f5f9;
}

.donate-btn {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.65), rgba(217, 70, 239, 0.45));
  border: 1.5px solid rgba(217, 70, 239, 0.5);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}



.donate-btn:hover .arrow {
  color: #ffffff;
}

/* ==========================================================================
   Server Page (Terminal Window)
   ========================================================================== */

.terminal-window {
  width: 100%;
  max-width: 780px;
  background: rgba(6, 12, 26, 0.95);
  border: 1.5px solid rgba(217, 70, 239, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(217, 70, 239, 0.1);
}

.terminal-header {
  background: rgba(4, 8, 18, 0.95);
  border-bottom: 1.5px solid rgba(217, 70, 239, 0.2);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  position: relative;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-close { background-color: #ff5f56; box-shadow: 0 0 8px rgba(255, 95, 86, 0.6); }
.dot-minimize { background-color: #ffbd2e; box-shadow: 0 0 8px rgba(255, 189, 46, 0.6); }
.dot-maximize { background-color: #27c93f; box-shadow: 0 0 8px rgba(39, 201, 63, 0.6); }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-inter);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-ice);
  letter-spacing: 0.3px;
}

.terminal-section {
  color: #f1f5f9;
  padding: 26px 30px;
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  min-height: 400px;
  text-align: left;
  width: 100%;
}

.terminal-section pre {
  margin: 0;
  font-family: inherit;
  white-space: pre;
}

.prompt { color: var(--accent-cyan-bright); font-weight: 600; text-shadow: 0 0 10px rgba(217, 70, 239, 0.5); }
.prompt-path { color: #93c5fd; font-weight: 500; }
.typewriter-text {
  border-right: 2px solid var(--accent-cyan-bright);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.server-logo {
  width: 250px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  border: 1.5px solid rgba(217, 70, 239, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(217, 70, 239, 0.2);
  flex-shrink: 0;
}

.fetch-layout {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.info-panel {
  min-width: max-content;
}

.info-labels { color: #93c5fd; font-weight: 700; }
.info-title { color: var(--accent-cyan-bright); font-weight: 700; font-size: 15px; text-shadow: 0 0 10px rgba(217, 70, 239, 0.4); }
.color-blocks { display: flex; flex-direction: column; gap: 0; margin-top: 16px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(217, 70, 239, 0.2); }
.color-row { display: flex; }
.color-block { width: 26px; height: 18px; }

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 14, 30, 0.98);
  color: #ffffff;
  border: 1.5px solid rgba(217, 70, 239, 0.6);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(217, 70, 239, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 650px) {
  body {
    padding: 35px 16px;
  }

  .site-header {
    margin-bottom: 45px;
  }

  .content-sections {
    gap: 45px;
  }

  .donate-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .donate-btn {
    align-self: flex-start;
    width: 100%;
    justify-content: center;
  }

  .fetch-layout {
    flex-direction: column;
    align-items: center;
  }

  .server-logo {
    width: 100%;
    max-width: 260px;
  }
}





