@font-face {
  font-family: 'zrnic';
  src: url('fonts/zrnic___.ttf') format('truetype');
}
html {
  scroll-behavior: smooth;
}
body {
    font-family: 'zrnic', 'Courier New', monospace;
    background-color: #050b06; 
    color: #a3b8a3;
    padding: 30px;
    margin: 0;
    
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(0, 255, 50, 0.08), transparent 60%),
        linear-gradient(rgba(0, 255, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 25px 25px, 25px 25px;
}
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 25px;
    border-bottom: 2px solid #141a2d;
    padding-bottom: 15px;
}

nav a { 
    color: #7c784e; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.2s, text-shadow 0.2s;
}

nav a:hover 
{
  color: #fbff14;
  text-shadow: 0 0 8px #ff1414;
  text-decoration: none;
}

.xbox-spidey-interface 
{
    display: grid;
    grid-template-columns: 280px auto;
    gap: 20px;
    background: #0c180c;
    border: 2px solid #1b381b;
    padding: 15px;
    margin: 30px 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0,0,0,0.6);
}

.system-title 
{
    color: #39ff14;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bookshelf-rack-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-book 
{
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #122412; 
    border: 1px solid #285428;
    color: #a3b8a3;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-book:hover {
    background-color: #1b3d1b;
    color: #ffffff;
    border-color: #39ff14;
    transform: scale(1.03) skewX(-1deg);
}

.btn-marker {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #285428;
    margin-right: 10px;
    transition: background 0.2s;
}
body:has(#select-neojungianism:checked) .btn-neojungianism,
body:has(#select-focusing:checked) .btn-focusing,
body:has(#select-shadow:checked) .btn-shadow,
body:has(#select-gravity:checked) .btn-gravity {
    background: #39ff14 !important; 
    color: #050b06 !important;  
    border-color: #ffffff;
    padding-left: 22px;
    font-weight: 900;
}
body:has(#select-neojungianism:checked) .btn-neojungianism .btn-marker,
body:has(#select-focusing:checked) .btn-focusing .btn-marker,
body:has(#select-shadow:checked) .btn-shadow .btn-marker,
body:has(#select-gravity:checked) .btn-gravity .btn-marker {
    background: #050b06;
}

.interface-display-side {
    background: #050b06;
    border: 1px solid #1b381b;
    padding: 20px;
    position: relative;
    min-height: 280px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
}

.display-card {
    display: none;
    animation: glitch-appear 0.25s ease-out;
}
body:has(#select-neojungianism:checked) .card-neojungianism,
body:has(#select-focusing:checked) .card-focusing,
body:has(#select-shadow:checked) .card-shadow,
body:has(#select-gravity:checked) .card-gravity {
  display: block !important;
}

.display-flex {
    display: flex;
    gap: 20px;
}

.book-preview {
    flex-shrink: 0;
    text-align: center;
}

.book-preview img {
    width: 110px;
    height: 160px;
    object-fit: cover;
    border: 2px solid #285428;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
}

.system-blueprint {
    font-size: 0.65rem;
    color: #618c61;
    margin-top: 8px;
    letter-spacing: 1px;
}

.book-stats {
    flex-grow: 1;
}

.book-stats h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 1px dotted #285428;
    padding-bottom: 5px;
}

.book-badges {
    margin-bottom: 12px;
}

.analysis-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #a3b8a3;
    margin: 0 0 15px 0;
    text-align: justify;
}

.system-link {
    display: inline-block;
    font-size: 0.8rem;
    color: #39ff14;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #39ff14;
    padding: 6px 12px;
    background: rgba(57, 255, 20, 0.03);
    letter-spacing: 1px;
    transition: all 0.2s;
}

.system-link:hover {
    background: #39ff14;
    color: #050b06;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

@keyframes glitch-appear {
    0% { opacity: 0; transform: scale(0.98); filter: brightness(1.6); }
    100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}
.rec-flex-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.rec-cover-box {
  flex: 0 0 75px;
}

.rec-book-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #285428;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.rec-text-box {
  flex: 1;
}

.rec-meta {
  font-size: 0.85rem;
  margin-bottom: 6px;
  border-bottom: 1px solid #142d14;
  padding-bottom: 5px;
}

.rec-year {
  font-weight: bold;
  color: #39ff14;
  margin-right: 8px;
}

.rec-title {
  font-weight: bold;
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rec-author {
  font-style: normal;
  color: #618c61;
}

.rec-comment {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 10px 0;
  color: #a3b8a3; 
}

.rec-link {
  font-size: 0.82rem;
  color: #39ff14;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
}

.rec-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 5px #39ff14;
}

.tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: bold;
  background-color: #060c06;
  color: #4e7c4e;
  border: 1px solid #142d14;
}

.tag-read { color: #39ff14; border-color: #285428; }
.tag-mind { color: #00ffcc; border-color: #006655; }
.tag-body { color: #ffff00; border-color: #666600; }

.diary {
  background: #090f09;
  border: 1px solid #1b381b;
  padding: 20px;
  margin-top: 40px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
  .xbox-spidey-interface { 
    grid-template-columns: 1fr; 
  }
  .display-flex { 
    flex-direction: column; 
    align-items: center; 
  }
  .analysis-text {
    text-align: left;
  }
}

@media (max-width: 500px) {
  .rec-flex-container {
    flex-direction: column;
  }
}
