
html {
    background-color: #000000; 
}

@font-face {
  font-family: 'Laude Title';
  src: url('/assets/LaudeTitle.ttf') format('truetype');
}


body {
    font-family: 'Laude Title', 'Inter', sans-serif;
}

/* --- Blinking Cursor Animation --- */

.blinking-cursor {
    display: inline-block;
    width: 0.5em;
    height: 0.85em;
    background-color: #75706d;
    margin-left: 0.2em;
    vertical-align: middle;
    transform: translateY(-0.05em); 
    animation: blink-caret 2.3s step-end infinite;
}
@keyframes blink-caret {
    from, to { 
        background-color: #75706d;
    }
    50% { 
        background-color: transparent;
    }
}


:root {
    --laude-text: #7592fd;
    --laude-accent: #e9de97;
    --laude-accent-darker: #d9ce8a;
    --dark-text: #333333; 
}
#fetchButton {
    background-color: var(--laude-accent);
    color: var(--dark-text);
}
#fetchButton:hover {
    background-color: var(--laude-accent-darker);
}
.timeframe-btn.active-btn {
    background-color: var(--laude-text); 
    color: white; 
    font-weight: 600;
}
.timeframe-btn.active-btn:hover {
    background-color: #5f7ce8;
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px -2px rgba(233, 222, 151, 0.6);
  }
  50% {
    box-shadow: 0 0 16px 2px rgba(233, 222, 151, 0.8);
  }
  100% {
    box-shadow: 0 0 10px -2px rgba(233, 222, 151, 0.6);
  }
}
.btn-pulse-glow {
  animation: fade-in-up 0.8s ease-out, pulse-glow 3s infinite ease-in-out;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* LAYER 0: The Fullscreen Background */
.site-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  
  background-image: url('/assets/darklaude.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden; 
}

/* --- Background Wave Animation --- */


#line-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; 
}

#character-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2; 
    overflow: hidden;
}


.floating-char-wrapper {
    position: absolute;
    width: 64px;
    height: 64px;
    will-change: left, top;
    user-select: none;
}

.char-image {
    width: 100%;
    height: 100%;
    opacity: 0.7; 
}

.char-border-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    
}

/* --- NEW: The X/Y coordinates label --- */
.char-coords-label {
    position: absolute;
    bottom: -18px; 
    left: 50%;
    transform: translateX(-50%);
    
    color: white;
    font-family: 'Laude Title', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

/* LAYER 3: The Main Card 
*/
#main-card {
    position: relative;
    z-index: 3; 
}

/* --- NEW CARD SANDWICH STYLES --- */
.card-background-texture {
    background-image: url('/assets/darklaude.png');
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem; 
    overflow: hidden;
    position: relative;
}
.card-tint {
    background-color: rgba(48, 6, 15, 0.3); 
   
}
.card-content {
    padding: 2rem; 
}

/* --- Profile Modal Styles --- */

/* 1. The Backdrop: Centers the modal */
.profile-modal-backdrop {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* Darkens the rest of the site */
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  animation: modal-fade-in 0.2s ease-out;
}

/* 2. The Content Box: Pure darklaude.png background */
.profile-modal-content {
  position: relative;

  /* --- FIXED: Just the image, no color overlay --- */
  background-image: url('/assets/darklaude.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* ---------------------------------------------- */

  border: 1.5px solid #444; /* Slightly lighter border to define the edges */
  border-radius: 0.5rem;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

/* Close Button */
.profile-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 2rem;
  line-height: 1;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.profile-modal-close:hover {
  color: #ffffff;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Profile README Content Styles --- */
.profile-readme-content {
  max-height: 400px;
  overflow-y: auto;
  color: #d1d5db;
}
.profile-readme-content h1,
.profile-readme-content h2,
.profile-readme-content h3 {
  font-weight: 600;
  color: #f3f4f6;
  border-bottom: 1.5px solid #374151;
  padding-bottom: 0.25rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.profile-readme-content h1 { font-size: 1.25rem; }
.profile-readme-content h2 { font-size: 1.15rem; }
.profile-readme-content h3 { font-size: 1.1rem; }
.profile-readme-content p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.profile-readme-content a {
  color: #60a5fa;
  text-decoration: underline;
}
.profile-readme-content ul,
.profile-readme-content ol {
  list-style-position: inside;
  margin-left: 0.5rem;
  margin-bottom: 0.75rem;
}
.profile-readme-content li {
  margin-bottom: 0.25rem;
}
.profile-readme-content img {
  display: none;
}

/* --- Character 360 Spin Animation --- */
@keyframes spin-360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- UPDATED: Now targets the image --- */
.char-image.spinning {
  animation: spin-360 0.6s linear;
}

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

.char-image.spinning {
  animation: spin-360 0.6s linear;
}

/* --- NEW: Bookmark Button Styles --- 
*/

.bookmark-toggle {
    width: 100%;
    padding: 0.5rem 1rem; 
    border: 1.5px solid var(--laude-text); 
    color: var(--laude-text);
    font-family: 'Laude Title', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

/* --- Blue Button Hover Effect --- */
.bookmark-toggle:hover {
   
    background-color: rgba(117, 146, 253, 0.1);
}

.bookmark-toggle.active {
    background-color: var(--laude-text);
    color: white;
}

.bookmark-btn {
    padding: 0.25rem;
    border-radius: 0.25rem; 
    transition: all 0.2s ease-in-out;
}

.bookmark-btn:hover {
    background-color: #374151; 
}


.bookmark-btn .icon-filled {
    display: none; 
}
.bookmark-btn .icon-empty {
    display: block;
}

.bookmark-btn.bookmarked .icon-filled {
    display: block; 
    color: var(--laude-accent);
}
.bookmark-btn.bookmarked .icon-empty {
    display: none; 
}


.topic-toggle {
    border: 1.5px solid #c9587c; 
    color: #c9587c;            
    font-family: 'Laude Title', 'Inter', sans-serif;
    
    
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
    white-space: nowrap;       
}

.topic-toggle:hover {
    background-color: rgba(201, 88, 124, 0.1); 
}

.topic-toggle.active {
    background-color: #c9587c;
    color: white;
}

/* --- TIMEFRAME BUTTONS (Gold Theme - Fixed Thickness) --- */

/* 1. Base State */
.timeframe-toggle {
    /* CHANGED: 2px thickness to match other buttons */
    border: 1.5px solid var(--laude-accent) !important; 
    
    color: var(--laude-accent) !important;
    background-color: transparent !important;
    
    font-family: 'Laude Title', 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

/* 2. Hover State (Gold Tint, NO BLUE) */
.timeframe-toggle:hover {
    background-color: rgba(233, 222, 151, 0.15) !important;
    box-shadow: 0 0 10px rgba(233, 222, 151, 0.2);
}

/* 3. Active State (Solid Gold) */
.timeframe-toggle.active-btn {
    background-color: var(--laude-accent) !important;
    color: #000000 !important;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(233, 222, 151, 0.4);
}

/* 4. Active Hover (Darker Gold) */
.timeframe-toggle.active-btn:hover {
    background-color: #d9ce8a !important;
}

/* --- BLINKING SENTRY MODULE (Periwinkle Theme) --- */
.blinking-red-btn {
    border: 1px solid #99aaff; /* Periwinkle Border */
    color: #99aaff;            /* Periwinkle Text */
    
    /* Periwinkle Tint */
    background: rgba(153, 170, 255, 0.15); 
    
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    height: 28px;
}

.blinking-red-btn:hover {
    background: rgba(153, 170, 255, 0.25);
    box-shadow: 0 0 15px rgba(153, 170, 255, 0.3);
}

.blinking-red-btn.armed {
    border-color: #99aaff;
    background: rgba(153, 170, 255, 0.2);
    color: #99aaff;
}

.sentry-dot {
    width: 8px;
    height: 8px;
    background-color: #99aaff; /* Periwinkle Dot */
    border-radius: 50%;
    display: inline-block;
}

.blinking-red-btn.armed .sentry-dot {
    animation: sentry-pulse 2s infinite;
}

@keyframes sentry-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(153, 170, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(153, 170, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(153, 170, 255, 0);
    }
}

/* --- LAUDE LIST BUTTON (Matches Category Pink) --- */
.laude-gold-btn {
    /* Color: #c9587c (Laude Pink) */
    border: 1px solid #c9587c; 
    color: #c9587c;            
    
    /* Background: Dark Pink Tint */
    background-color: rgba(201, 88, 124, 0.15) !important; 
    
    /* Glow Effect */
    box-shadow: 0 0 12px rgba(201, 88, 124, 0.3);

    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
}

.laude-gold-btn:hover {
    background-color: rgba(201, 88, 124, 0.25) !important;
    box-shadow: 0 0 20px rgba(201, 88, 124, 0.5);
}

.laude-gold-btn.active {
    background-color: #c9587c !important;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(201, 88, 124, 0.6);
}

/* --- 1. Laude Button ACTIVE State (Turns Grey) --- */
.laude-gold-btn.active {
    background-color: rgba(107, 114, 128, 0.5) !important; /* Grey Tint */
    border-color: #9ca3af !important;                      /* Light Grey Border */
    color: #f3f4f6 !important;                             /* White/Grey Text */
    box-shadow: 0 0 15px rgba(156, 163, 175, 0.4);         /* Grey Glow */
}

/* --- 2. The "Grey Out" Effect for Filters --- */
.filters-disabled {
    opacity: 0.3 !important;       /* Fades it out */
    pointer-events: none !important; /* Stops clicks */
    filter: grayscale(100%) !important; /* Removes color */
    transition: all 0.3s ease;
}