/* --- FONTS --- */
@font-face {
    font-family: 'Magazine';
    src: url('https://wist-eria.neocities.org/assets/Magazine-Cutouts-Font.woff') format('woff');
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--bg-dark);
    /* Checkered Pattern Background */
    background-image:
      linear-gradient(45deg, var(--bg-alt) 25%, transparent 25%, transparent 75%, var(--bg-alt) 75%),
      linear-gradient(45deg, var(--bg-alt) 25%, transparent 25%, transparent 75%, var(--bg-alt) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    color: var(--text);
    font-family: 'Tahoma', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url(/assets/wistcursor.png), auto;
}

/* Hover state */
a, button, .clickable, input[type="submit"], select {
    cursor: url(/assets/wistgrab.png), pointer;
}

/* --- VARIABLES --- */
:root {
    --bg-dark: #1D1423;
    --bg-alt: #170F1B;
    --panel-bg: rgba(29, 20, 35, 0.98);
    --btn-light: #9E8DB0;
    --btn-dark: #57476B;
    --border: #6C548A;
    --text: #BBB2C2;
}

/* --- GLOBAL LAYOUT --- */
.container { 
    display: flex; 
    height: 85vh; 
    gap: 25px; 
    width: 1500px; 
    max-width: 100vw; 
    padding: 0 20px; 
}

/* --- SIDEBAR --- */
.sidebar { 
    width: 260px; 
    min-width: 260px; 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0; 
}

.profile-section { 
    display: flex; 
    justify-content: center; 
    width: 100%; 
    margin-bottom: 25px; 
}

.logo { 
    height: 125px; 
    width: auto; 
    display: block; 
}

.nav-menu { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

/* --- HEADINGS & DIVIDERS --- */
h2 { 
    font-family: 'Tahoma', sans-serif; 
    color: #fff; 
    font-size: 22px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    text-transform: lowercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15); 
}

.home-page h2 { 
    font-family: 'Magazine', sans-serif; 
    font-size: 32px; 
}

/* --- BUTTONS --- */
.btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    background: linear-gradient(to bottom, var(--btn-light) 0%, var(--btn-dark) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 0 rgba(0,0,0,0.5) !important;
    line-height: 1 !important;
    transition: 0.1s !important;
    position: relative;
}

.btn:hover {
    filter: brightness(1.15);
    transform: translateX(2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 0 rgba(0,0,0,0.55);
}

.btn:active {
    transform: translateX(-2px);
    background: linear-gradient(to bottom, var(--btn-dark) 0%, var(--btn-light) 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

/* --- DISCORD POPUP FEATURE --- */
.socials { 
    margin-top: auto; 
    padding-top: 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.discord-wrapper {
    position: relative;
    display: inline-block;
}

.discord-widget-popout {
    position: absolute;
    bottom: 120%; /* Sits above the button */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
    pointer-events: none;
}

/* Reveal on Hover */
.discord-wrapper:hover .discord-widget-popout {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.discord-only-btn {
    width: 50px; 
    height: 40px; 
    padding: 10px;
    background: linear-gradient(to bottom, var(--btn-light), var(--btn-dark));
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: 0.2s;
}

.discord-only-btn svg { width: 24px; height: 24px; fill: white; }

.discord-only-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

/* --- PANELS --- */
.content, .changelog { 
    background: var(--panel-bg); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    padding: 30px; 
    overflow-y: auto; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

.content { flex-grow: 1; }
.changelog { width: 280px; flex-shrink: 0; }

/* --- GRADIENT --- */

.scrolling-gradient {
  background: linear-gradient(to right, #432A4C, #9378AC, #DDBAD9, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: colorScroll 4s ease-in-out infinite alternate;
}

@keyframes colorScroll {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}