/* style.css */

/* --- Font Import & Basic Setup --- */
/* UPDATED: Added Courier Prime */
@import url('https://fonts.googleapis.com/css2?family=Caesar+Dressing&family=Courier+Prime:wght@400;700&family=Roboto:wght@300;400&display=swap');

:root {
  --primary-bg: #1a1a1a;
  --secondary-bg: #2b2b2b;
  --text-color: #e0e0e0;
  --title-color: #e8e8e8;
  --accent-color: #c8a2c8;
  --font-body: 'Roboto', sans-serif;
  --font-title: 'Caesar Dressing', cursive;
  --font-name: 'Courier Prime', monospace; /* NEW: Font for profile names */
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Typography --- */
.site-title {
  font-family: var(--font-title);
  color: var(--title-color);
  font-size: 2.5rem;
  text-align: center;
  margin: 20px 0;
  letter-spacing: 2px;
}

.subtle-heading {
    text-align: center;
    color: #888;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 40px;
    margin-bottom: 15px;
}

/* NEW: Class for the profile name */
.profile-name {
    font-family: var(--font-name);
    font-weight: 700;
}


a {
  color: var(--accent-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Layout & Structure --- */
.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
  flex-grow: 1;
}

header {
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

footer {
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}
footer p {
  margin: 0;
  font-size: 0.9rem;
}
.footer-logo {
  margin-top: 20px;
}
.footer-logo img {
  width: 100px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer-logo img:hover {
  opacity: 1;
}

/* Homepage Description, Search, Index... (No changes in these sections) */
.site-description { background-color: var(--secondary-bg); padding: 20px; border-radius: 8px; margin-bottom: 30px; font-size: 1.05rem; line-height: 1.7; font-weight: 300; }
.search-container { margin: 10px auto 20px; width: 90%; max-width: 500px; }
#search-bar { width: 100%; padding: 12px; border-radius: 20px; border: 1px solid #444; background-color: #2b2b2b; color: var(--text-color); font-size: 1rem; }
#search-results { margin-top: 20px; }
.search-result-item { background-color: var(--secondary-bg); padding: 15px; border-radius: 5px; margin-bottom: 10px; }
.alpha-index details { background-color: var(--secondary-bg); border-radius: 8px; margin-bottom: 30px; }
.alpha-index summary { padding: 15px; font-weight: bold; cursor: pointer; outline: none; }
.alpha-index-content { padding: 0 15px 15px 15px; border-top: 1px solid #444; }
.alpha-index-content h3 { margin-top: 15px; color: var(--accent-color); }
.alpha-index-content ul { list-style: none; padding-left: 10px; }
.alpha-index-content li { padding: 5px 0; }

/* --- Profile Card Styling --- */
.profile-card { background-color: var(--secondary-bg); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.2); margin-top: 20px; }
.profile-photo { position: relative; }
.profile-photo img { width: 100%; height: auto; display: block; }
.profile-info { padding: 20px; }
.profile-info h2 { margin-top: 0; font-size: 1.8rem; }
.profile-info .profile-id { font-size: 0.9rem; color: #aaa; margin-bottom: 15px; }
.profile-info .profile-text-snippet { line-height: 1.6; font-weight: 300; }
.profile-info .profile-text-full { line-height: 1.7; font-weight: 300; white-space: pre-wrap; }
.loading-state { text-align: center; padding: 50px; font-size: 1.2rem; }

/* Puking Emoji Overlay & Animation */
.puke-emoji-overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 4rem;
    z-index: 5;
    pointer-events: none;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* "Hall of Shame" Scrolling Belt */
.scrolling-belt { width: 100%; overflow: hidden; padding: 20px 0; margin-top: 40px; background: linear-gradient(90deg, #111 0%, #222 50%, #111 100%); white-space: nowrap; position: relative; }
.scrolling-belt h2 { text-align: center; margin-bottom: 20px; font-family: var(--font-title); letter-spacing: 1px; }
.belt-track { display: inline-block; animation: scroll 30s linear infinite; }
.belt-track a {
    display: inline-block;
    vertical-align: top;
    position: relative; /* NEW: Needed for emoji overlay */
}
.belt-track img { height: 120px; width: 120px; object-fit: cover; margin: 0 10px; border-radius: 5px; border: 2px solid #444; transition: transform 0.3s, border-color 0.3s; }
.belt-track img:hover { transform: scale(1.1); border-color: var(--accent-color); z-index: 10; }

/* NEW: Sized-down emoji for the Hall of Shame */
.puke-emoji-overlay-small {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 2rem; /* Sized down */
    z-index: 5;
    pointer-events: none;
    animation: float 4s ease-in-out infinite; /* Re-using same animation */
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Desktop View --- */
@media (min-width: 768px) {
  .site-title { font-size: 4rem; }
  .profile-card { display: flex; }
  .profile-photo { flex: 0 0 300px; }
  .profile-photo img { width: 100%; height: 100%; object-fit: cover; }
  .profile-info { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
  .puke-emoji-overlay { font-size: 5rem; }
}