/* ============================= */
/*        GLOBAL RESET           */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================= */
/*           BACKGROUND          */
/* ============================= */
body {
  min-height: 100vh;
  font-family: "Poltawski Nowy", serif;
  background-color: #353535; /* Graphite */
  color: #D9D9D9; /* Dust Grey */
  font-size: 20px;
  background-color: #353535;
  opacity: 1;
  background-size: 10px 10px;
  background-image: repeating-linear-gradient(45deg, #096d70 0, #096d70 1px, #353535 0, #353535 50%);
}

a {
  color: white;
  text-decoration: none;
}

a:visited {
  color: white;
  text-decoration: none;
}

a:hover {
  color: #3C6E71;
}

/* ============================= */
/*        LAYOUT CONTAINER       */
/* ============================= */
.layout {
  width: 80%;
  max-width: 1400px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ============================= */
/*           LEFT MENU           */
/* ============================= */
.left-menu {
  flex: 1;
  /* margin-top: 15rem; */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-left: 5px;
}

.left-menu .menu-logo {
  width: 60px;
  display: block;
  margin-bottom: 1rem;
}

.left-menu ul {
  list-style-type: none;
}

.left-menu li + li {
  margin-top: 0.75rem;
}

.left-menu a {
  text-decoration: none;
  color: #D9D9D9; /* Stormy Teal */
  font-family: "Playfair Display";
  font-size: 1.5rem;
}

.left-menu a:hover {
  color: #3C6E71; /* Stormy Teal */
}

.site-logo svg {
  width: 100px;
  height: 100px;
  color: #D9D9D9; /* Yale Blue */
}

.site-logo svg:hover {
  color: #3C6E71; /* Stormy Teal */
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* ============================= */
/*         MAIN CONTENT          */
/* ============================= */
.main-content {
  flex: 4;
  /* max-width: 800px; */
  height: 100vh;
  padding: 20px;
}

.main-content h1 {
  color: #D9D9D9; /* Yale Blue */
  padding-top: 5px;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  /* text-shadow: 1px 1px #D9D9D9;  */
}

.main-content h3 {
  color: #3C6E71; /* Stormy Teal */
}

.main-content .card2 {
  background-color: #353535; /* Graphite */
  border: 2px double #3C6E71; /* Stormy Teal */
  color: #D9D9D9; /* Dust Grey */
  padding: 1rem;

}
.welcome {
 font-size: 1.2rem;
 text-align: justify;
}

/* === CARD CONTAINER === */
.recent-book-card {
  background-color: #353535; /* Graphite */
  border: 2px double #3C6E71; /* Stormy Teal */
  color: #D9D9D9; /* Dust Grey */
  padding: 1rem;
  overflow: auto;
  margin-bottom: 20px;
}

.recent-book-card a {
  color: white;
  text-decoration: none;
}

.recent-book-card a:visited {
  color: white;
  text-decoration: none;
}

.recent-book-card a:hover {
  color: #3C6E71;
}

/* === THUMBNAIL IMAGE ON THE LEFT === */
.recent-book-thumbnail {
  float: left;
  width: 96px;
  height: auto;
  margin: 0 1rem 1rem 0;
  border-radius: 4px;
  object-fit: cover;
}

.right {
  float: right;
  margin-right: 5px;
  margin-left: 5px;
}

/* === BOOK DETAILS === */
.details-right {
  text-align: right;
}

.recent-book-title {
  font-size: 1.3rem;
  background-color: #284B63;
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #FFFFFF; /* White */
}

.recent-book-author {
  font-size: 1rem;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #D9D9D9; /* Dust Grey */
}

.recent-book-rating {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #D9D9D9; /* Stormy Teal */
}

.recent-book-summary {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.dates {
  color:#096d70;
  font-style: italic;
}
/* === RESPONSIVE BEHAVIOR === */
@media (max-width: 600px) {
  .recent-book-thumbnail {
    float: none;
    display: block;
    margin: 0 auto 1rem auto;
    width: 120px;
  }

  .recent-book-card {
    text-align: center;
  }

  .recent-book-details {
    text-align: left;
  }
}

/* ============================= */
/*         RIGHT SIDEBAR         */
/* ============================= */
.right-sidebar {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1em;
}

.right-sidebar a {
  text-decoration: none;
  color: white; /* Stormy Teal */
  font-size: 1.5rem;
}

.right-sidebar a:hover {
  color: #D9D9D9; /* Stormy Teal */
}

.right-sidebar h2 {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  color: #D9D9D9; /* Yale Blue */
}

.card {
  background: #284B63;
  border: 1px solid #353535; /* Graphite */
  padding: 1rem;
  border-radius: 6px;
  color: #D9D9D9; /* Graphite */
}

.readingexplanation {
  padding: 5px;
  margin: 5px;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  /* font-family: Arial, sans-serif; */
}

.task-list li {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  display: flex;
  align-items: top;
}

.task-list input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  width: 1rem;
  height: 1.2rem;
  /* vertical-align: top; */
}


/* =========================================================
   DETAILS / ARCHIVE
   ========================================================= */

details summary {
  cursor: pointer;
  font-size: 1.2em;
  list-style:none;
}

details[open] .hidden-text {
  animation: fadeIn 0.3s ease;
}

.hidden-text {
  font-size: 1.1em;
}

 .hidden-text a:before {  
   font-family: "Font Awesome 5 Free"; 
   content:'📘';
   display: inline-block;
        padding-right: 3px;
        vertical-align: middle;
        font-weight: 900;
 }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================= */
/*        RESPONSIVE RULES       */
/* (for screens <= 900px wide) */
/* ============================= */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    margin: 0 auto;
    width: 90%;
  }

  .main-content {
    width: 100%;
    order: 0;
    margin-bottom: 1rem;
    padding: 0px;
  }

  .left-right-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
  }

  .left-menu,
  .right-sidebar {
    flex: 1;
    margin-top: 10px;
  }

  .menu-logo {
    display: none;
  }

  .right-sidebar {
    width: 100%;
    margin-bottom: 15px;
  }

  .left-menu ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    padding: 0.5rem 0;
  }

  .left-menu li {
    margin: 0;
  }

  .left-menu a {
    /* font-size: 0.95rem; */
    padding: 0.25rem 0.5rem;
    text-align: center;
  }

  .left-menu {
    width: 100%;
  }
}

.rating {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 4px;
  color: #ffffff;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-family: "Playfair Display", serif; /* or whatever body font you’re using */
}

.rating.excellent {
  background-color: #1B5E20; /* forest green */
}

.rating.very-good {
  background-color: #2E7D32; /* lighter green */
}

.rating.good {
  background-color: #558B2F; /* yellowish‑green */
}

.rating.poor {
  background-color: #C62828; /* red */
}

.rating.unknown {
  background-color: yellowgreen; 
}

.tags {
  text-transform: lowercase;
}


