/*
================================================================================
  BOT DETAIL PAGE - Aiarchaea's Ecosystem
================================================================================
*/

:root {
    --bg-color: #053256;
    --primary-text: #a8dadc;
    --accent-glow: #9ef01a;
    --accent-alt: #f9bd61;
    --glass-bg: rgba(6, 46, 57, 0.1);
    --glass-border: rgba(168, 218, 220, 0.2);
    --glass-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.25);
}

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

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: "Courier Prime", monospace;
    overflow-x: hidden;
}

/* Background */
.background-image {
    position: fixed;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background-image: url('https://file.garden/aL3b6wMTIgrFH4s6/sammeh543_cyanobacteria_827ccdf6-400e-4656-8a0a-c85a9ab9041e.png');
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.6);
    z-index: -1;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Back Button */
.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    color: var(--primary-text);
    text-decoration: none;
    font-family: "Silkscreen", sans-serif;
    transition: all 0.3s ease;
}

.back-button:hover {
    border-color: var(--accent-glow);
    color: var(--accent-glow);
    background-color: rgba(158, 240, 26, 0.1);
}

/* Main Container */
.bot-detail-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* LEFT SIDEBAR */
.bot-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    border-radius: 30px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

.bot-image-container {
    width: 100%;
    margin-bottom: 1.5rem;
}

.bot-image-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 0 20px rgba(158, 240, 26, 0.3);
}

.bot-description-box {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.bot-description-box a {
  color: var(--accent-glow);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-glow);
  transition: 0.2s;
}

.bot-description-box a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}


.bot-description-box hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 1rem 0;
}


.bot-description-box em {
    color: #cbd5db;
    font-style: italic;
    font-size: 0.9rem;
}

.bot-description-box strong {
    color: var(--accent-alt);
}

.bot-pov {
    font-style: italic;
    color: var(--accent-glow);
    margin-top: 0.5rem;
}

.bot-links-box {
  background: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.bot-links-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.network-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    justify-items: center;
}
.network-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.network-links a:hover {
    border-color: var(--accent-glow);
    background-color: rgba(158, 240, 26, 0.1);
    transform: translateY(-3px);
}
.network-links a img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(168, 218, 220, 0.3);
    filter: grayscale(0.5) sepia(0.4) hue-rotate(120deg) saturate(1.2);
    transition: filter 0.3s ease, border-color 0.3s ease;
}

.network-links a:hover img {
    filter: none;
    border-color: var(--accent-glow);
}
.network-links a span {
    font-size: 0.8rem;
    color: var(--primary-text);
    font-family: "IBM Plex Mono", monospace;
    text-align: center;
    line-height: 1.3;
    display: block;
    width: 100%;
}

.network-links a:hover span {
    color: var(--accent-glow);
}


.bot-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.meta-label {
    color: var(--primary-text);
    opacity: 0.8;
}

.meta-value {
    color: var(--accent-glow);
    font-weight: 500;
}

/* Tags */
.bot-tags-container {
    width: 100%;
}

.bot-tags {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.bot-tags li {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(168, 218, 220, 0.3);
    color: var(--primary-text);
    box-shadow: var(--glass-shadow);
    font-family: "VT323", monospace; 
    text-transform: uppercase;
    border-radius: 4px;
    font-size: 14px;
    padding: 4px 6px;
    text-align: center;
    transition: 0.2s;
}

.bot-tags li:hover {
   background: rgba(158, 240, 26, 0.2);
   border-color: #ebe9da;
   color: var(--accent-glow);
}

.bot-tags .tag-nsfw {
    grid-column: 1 / 3;
}

/* RIGHT CONTENT */
.bot-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    border-radius: 30px;
    padding: 2rem;
}

.bot-title {
    font-family: "Press Start 2P", monospace;
    font-size: 1.5rem;
    color: var(--accent-glow);
    text-shadow: 0 0 10px rgba(158, 240, 26, 0.5);
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Dropdowns */
.content-dropdown {
    width: 100%;
    margin: 1rem 0;
    background-color: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.content-dropdown[open] {
    border-color: var(--glass-border);
    box-shadow: 0 0 12px rgba(158,240,26,0.15), var(--glass-shadow);
}

.content-dropdown summary {
    padding: 1rem 1.25rem;
    font-family: "Space Mono", monospace;
    font-size: 1.1rem;
    color: var(--primary-text);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.content-dropdown summary::-webkit-details-marker {
    display: none;
}

.content-dropdown summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-glow);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.content-dropdown[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.dropdown-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
    line-height: 1.8;
}

.dropdown-content p {
    margin-bottom: 1rem;
}

.dropdown-content hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 1rem 0;
}

.dropdown-content em {
    color: #cbd5db;
    font-style: italic;
}

.dropdown-content strong {
    color: var(--accent-alt);
}

/* Fix for code blocks in dropdowns */
.dropdown-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto; /* Allows horizontal scrolling if needed */
    white-space: pre-wrap; /* Wraps long lines */
    word-wrap: break-word; /* Breaks long words */
    max-width: 100%;
}

.dropdown-content code {
    font-family: "Courier Prime", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--primary-text);
}

/* For inline code (not in pre blocks) */
.dropdown-content :not(pre) > code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Alternative Greetings */
.alt-greeting {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.alt-greeting:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.alt-greeting h4 {
    font-family: "IBM Plex Mono", monospace;
    color: var(--accent-glow);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .bot-detail-container {
        grid-template-columns: 1fr;
    }
    
    .bot-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 1rem;
    }
    
    .bot-content {
        padding: 1.5rem;
    }
    
    .bot-title {
        font-size: 1.2rem;
    }
      .network-links {
    grid-template-columns: 1fr;
  }
    .network-links a {
    padding: 0.75rem;
  }

  .network-links a img {
    width: 48px;
    height: 48px;
  }

  .network-links a span {
    font-size: 0.9rem;
  }
    .bot-sidebar {
    padding: 1.25rem;
  }

  .bot-links-box,
  .bot-meta,
  .bot-description-box {
    padding: 0.9rem;
  }
  @media (max-width: 1024px) {
  .bot-sidebar {
    margin-bottom: 1.5rem;
  }
}