/* ===============================
     SERIES TITLE WRAPPING
================================ */
.series-title.one-line {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 95px;
    color: inherit;
}
.series-title.two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px;
    white-space: normal;
    color: inherit;
}
.series-title.three-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85px;
    white-space: normal;
    color: #e5e5e5;
    font-size: 0.72rem;
    text-align: center;
    margin-bottom: 2px;
}
.series-card.current-volume .series-title.three-lines {
    color: #2F6BFF !important;
    text-align: center;
}
    font-size: 0.72rem;
    text-align: center;
    margin-bottom: 2px;
}
.series-volume {
    display: block;
    font-size: 0.68rem;
    color: #8FA3BF;
    text-align: center;
    margin-top: 2px;
    line-height: 1.2;
}
.series-card.current-volume .series-volume {
    color: #2F6BFF !important;
    text-align: center;
}
}
/* Loader pentru pagini dinamice */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    color: #8FA3BF;
    font-size: 18px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2F6BFF;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Ascunde vizual toate breadcrumb-urile din site */
nav[aria-label="Breadcrumb"],
.legal-breadcrumb {
    display: none !important;
}
/* ===============================
   GLOBAL
================================ */

body {
  background: linear-gradient(180deg, #0B1220, #111C2E);
  color: #E6ECF5;
  margin: 0;
}

/* ===============================
   LAYOUT
================================ */

.book-review-container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 60px auto;
}

.book-left {
  width: 40%;
  perspective: 1400px;
  position: relative;
}

.book-right {
  width: 60%;
}


.book-item.hidden {
  display: none;
}

.currently-reading-page .description-box{
  border-left: 4px solid #2F6BFF;
}


/* ACTIVE GEN COLOR TEXT */



.genre-menu a.active.thriller,
.genre-menu a.active[class*="thriller"]{
    color:#63E6BE;
}

.genre-menu a.active.romance,
.genre-menu a.active[class*="romance"]{
    color:#FF8FB1;
}

.genre-menu a.active.dark,
.genre-menu a.active[class*="dark"]{
    color:#E056FD;
}

.genre-menu a.active.romantasy,
.genre-menu a.active[class*="romantasy"]{
    color:#8EA6FF;
}


/* EROTIC */
.genre-menu a.active.erotic,
.genre-menu a.active[class*="erotic"]{
    color:#C2185B;
}

/* FICTIUNE FANTASY */
.genre-menu a.active.fictiune-fantasy,
.genre-menu a.active[class*="fictiune-fantasy"]{
    color:#512DA8;
}



.book-subtitle .author-link{
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}

.book-subtitle .author-link:hover{
  color: #2F6BFF;
}


.author-genres-wrapper{
    margin-top:30px;
    text-align:center;
}

.author-genres-label{
    font-size:11px;
    letter-spacing:3px;
    opacity:.6;
    margin-bottom:15px;
}

.author-genres{
    display:flex;
    justify-content:center;
    gap:14px;
}

.author-genre-badge{
    padding:8px 18px;
    border-radius:30px;
    font-size:11px;
    letter-spacing:1.5px;
    font-weight:500;
    border:1px solid transparent;
}

/* THRILLER */
.author-genre-badge[class*="thriller"]{
    background:rgba(99,230,190,.12);
    border-color:rgba(99,230,190,.5);
    color:#63E6BE;
}

/* ROMANCE */
.author-genre-badge[class*="romance"]{
    background:rgba(255,143,177,.12);
    border-color:rgba(255,143,177,.5);
    color:#FF8FB1;
}

/* DARK */
.author-genre-badge[class*="dark"]{
    background:rgba(224,86,253,.12);
    border-color:rgba(224,86,253,.5);
    color:#E056FD;
}

/* ROMANTASY */
.author-genre-badge[class*="romantasy"]{
    background:rgba(142,166,255,.12);
    border-color:rgba(142,166,255,.5);
    color:#8EA6FF;
}

/* EROTIC */
.author-genre-badge[class*="erotic"]{
    background:rgba(194,24,91,.12);
    border-color:rgba(194,24,91,.5);
    color:#C2185B;
}

/* FICTIUNE FANTASY */
.author-genre-badge[class*="fictiune-fantasy"]{
    background:rgba(81,45,168,.12);
    border-color:rgba(81,45,168,.5);
    color:#512DA8;
}



.stars{
    margin-top:12px;
    margin-bottom:18px; /* 👈 asta adaugă spațiu sub stele */
}
 
/* ===============================
   COVER – CINEMATIC UPGRADE
================================ */

.book-cover {
  width: 100%;
  border-radius: 15px;
  position: relative;
  z-index: 2;

  transition:
    transform 0.15s ease,
    box-shadow 0.25s ease;

  will-change: transform, box-shadow;

  box-shadow:
    0 30px 60px rgba(0,0,0,0.35),
    0 0 40px rgba(47,107,255,0.25);
}

/* Glossy reflection */
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0.08) 35%,
    rgba(255,255,255,0) 60%
  );
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Glow layer 
.book-cover-glow {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 84%;
  height: 84%;
  background: radial-gradient(
    circle at center,
    rgba(47,107,255,0.35),
    transparent 70%
  );
  filter: blur(45px);
  z-index: 1;
  transition: transform 0.2s ease-out;
}
*/
/* ===============================
   TITLES
================================ */

.book-main-title {
  font-size: 2.8rem;
  color: #E6ECF5; /* alb soft */
  margin-bottom: 5px;
}

.book-subtitle {
  font-family: Inter, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #8FA3BF;
}

.title-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #2F6BFF, transparent);
  margin: 15px 0;
}

/* ===============================
   BADGES
================================ */

.book-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.badge {
  display: inline-flex;        /* important */
  align-items: center;         /* vertical */
  justify-content: center;     /* orizontal */

  background: #1E2C44;
  color: #C9D8F0;
  padding: 6px 16px;           /* puțin mai echilibrat */
  border-radius: 20px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1;              /* elimină offset vertical */
}



/* ===============================
   SPEC SHEET
================================ */

.spec-sheet {
  padding: 25px;
  border-radius: 14px;
  margin-top: 30px;
  border-left: 4px solid #2F6BFF;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.30);

  transition:
    box-shadow 0.4s ease,
    transform 0.3s ease;

  backdrop-filter: blur(2px);
}


.spec-sheet:hover {
  transform: translateY(-4px);
}

.spec-sheet strong {
  font-variant: small-caps;
  letter-spacing: 1px;
}

.spec-top {
  margin-bottom: 5px;
}

.spec-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.genre-menu{
    position: sticky;
    top: 0;
    z-index: 1000;
}

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



.spec-ratings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}


.spec-ratings div {
  min-width: 0;
}


.spec-ratings div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spec-ratings div strong{
  min-width:140px;
  flex-shrink:0;
}




.spec-ratings strong {
  color: #8FA3BF;
  min-width: 140px;
}

.spec-ratings i {
  font-size: 16px;
  width: 18px;
  text-align: center;
  transition: transform 0.2s ease, text-shadow 0.3s ease;
}

.spec-ratings i:hover {
  transform: scale(1.15);
}


/* ===============================
   GENRE SYSTEM (NO GLOW)
================================ */

.spec-romance {
  background: linear-gradient(145deg, #1A2433, #2A1F2B);
  border-left-color: #FF6B9A;
}

.spec-dark-romance {
  background: linear-gradient(145deg, #141822, #2A1B2E);
  border-left-color: #C44569;
}

.spec-romantasy {
  background: linear-gradient(145deg, #142033, #1F2F4D);
  border-left-color: #6C8CFF;
}

.spec-thriller {
  background: linear-gradient(145deg, #101A22, #1A2E33);
  border-left-color: #4FD1C5;
}

/* EROTIC */
.spec-erotic {
  background: linear-gradient(145deg, #1A1B28, #2E1624);
  border-left-color: #C2185B;
}

/* FICTIUNE FANTASY */
.spec-fictiune-fantasy {
  background: linear-gradient(145deg, #141A2A, #241A3D);
  border-left-color: #512DA8;
}

/* ===============================
   ICON COLORS PER GEN (NO GLOW)
================================ */

/* Romance */
.spec-romance .spec-ratings i.fa-solid {
  color: #FF8FB1;
  text-shadow: none;
}

/* Dark Romance */
.spec-dark-romance .spec-ratings i.fa-solid {
  color: #E056FD;
  text-shadow: none;
}

/* Romantasy */
.spec-romantasy .spec-ratings i.fa-solid {
  color: #8EA6FF;
  text-shadow: none;
}

/* Thriller */
.spec-thriller .spec-ratings i.fa-solid {
  color: #63E6BE;
  text-shadow: none;
}

/* EROTIC */
.spec-erotic .spec-ratings i.fa-solid {
  color: #C2185B;
  text-shadow: none;
}

/* FICTIUNE FANTASY */
.spec-fictiune-fantasy .spec-ratings i.fa-solid {
  color: #512DA8;
  text-shadow: none;
}


/* ===============================
   FILLED ICONS – SOLID WHITE OUTLINE
================================ */

.rating-icon:hover{
  -webkit-text-stroke: 1px #ffffff;
}
.rating-icon:hover{
  -webkit-text-stroke: 1px #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
}


/* ===============================
   OUTLINE ICONS – DEFAULT
================================ */

.spec-ratings i.fa-regular {
  color: rgba(230,236,245,0.35);
  text-shadow: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* ===============================
   OUTLINE ICONS – HOVER → WHITE
================================ */

.spec-ratings div:hover i.fa-regular {
  color: #ffffff;
}



/* ===============================
   REVIEW BOX – LAYER 2
================================ */

.review-box {
  background: #162338 !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

 

.review-box {
  background: #162338;
  padding: 35px 40px;
  border-radius: 14px;
  border-left: 4px solid #2F6BFF;
  margin-top: 30px;

  box-shadow:
    0 25px 70px rgba(0,0,0,0.35),
    0 0 40px rgba(47,107,255,0.18);

  transition:
    transform 0.25s ease-out,
    box-shadow 0.3s ease;

  will-change: transform;
}

.review-box p {
  line-height: 1.8;
  font-size: 1.05rem;
  text-indent: 2em;
  color: #DCE6F5;
}

.review-box p:first-of-type {
  text-indent: 0;
}

.review-box p:first-of-type::first-letter {
  float: left;
  font-size: 3rem;
  line-height: 1;
  padding-right: 8px;
  font-weight: bold;
  color: #2F6BFF;
}

.review-box h2 {
  text-align: center;
  margin-bottom: 25px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 3px;
  color: #E6ECF5;
}

.review-box h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 12px auto 0 auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(47,107,255,0.7),
    transparent
  );
}

.review-box::after {
  content: "❦";
  display: block;
  text-align: center;
  margin: 40px 0 10px 0;
  font-size: 18px;
  color: rgba(47,107,255,0.6);
}

.book-description{
  margin-top: 25px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #bdbdbd;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.book-description p{
  margin-bottom: 12px;
}

.book-description p:last-child{
  margin-bottom: 0;
}

.book-description{
  opacity: 0.85;
}

.description-content{
    font-size:16px;
    line-height:1.8;
}

/* prima literă mare */
.description-content::first-letter{
    float:left;
    font-family:'Playfair Display', serif;
    font-size:58px;
    line-height:1;
    padding-right:10px;
    padding-top:4px;
    font-weight:600;
    color:var(--genre-accent, #2F6BFF);
}

.book-cover-wrapper {
  position: relative;
  z-index: 2;
}


.series-box{
  margin-top:50px;
  padding:30px;
  border-radius:14px;
}

.series-grid{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    align-items: flex-start;
}


.series-card{
  width: 95px;
  text-decoration: none;
  color: #DCE6F5; /* culoarea textului recenzie */
  transition: all .3s ease;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 140px;
}

.series-card:hover{
  transform:translateY(-5px);
}

.series-card img{
  width:100%;
  border-radius:10px;
  margin-bottom:8px;
}

.series-info{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 4.5em;
    margin-bottom: 8px;
}

/* titlu + volum implicit */
.series-card strong,
.series-card span{
  color:#e5e5e5;
}

.series-card strong {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Fix for series-title wrapping */
.series-title.one-line {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 95px;
    color: inherit;
}
.series-title.two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px;
    white-space: normal;
    color: inherit;
}
.series-title.three-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85px;
    white-space: normal;
    color: #e5e5e5;
    font-size: 0.72rem;
    text-align: center;
    margin-bottom: 2px;
}
}

/* doar cartea curentă */
/* Blue for current book title and volume */
.series-card.current-volume .series-title {
    color: #2F6BFF !important;
    text-align: center;
}
.series-card.current-volume .series-volume {
    color: #2F6BFF !important;
    text-align: center;
}
}


.series-box h2{
  text-align: center;          /* centrează textul în card */
  margin-bottom: 25px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 3px;
  color: #E6ECF5;
  position: relative;
  display: inline-block;       /* IMPORTANT */
  left: 50%;
  transform: translateX(-50%);
}


.series-box h2::after{
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 12px auto 0 auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(47,107,255,0.7),
    transparent
  );
}


/* ===== TOP GENRE MENU ===== */

.genre-menu{
    display:flex;
    justify-content:center;
    gap:60px;
    padding:25px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
    text-transform:uppercase;
    font-size:12px;
    letter-spacing:3px;
    background:#0B1220;
}

.genre-menu a{
    color:#8FA3BF;
    text-decoration:none;
    position:relative;
    padding-bottom:6px;
    transition:.3s ease;
}

.genre-menu a span{
    font-size:10px;
    opacity:.6;
    margin-left:6px;
}

.genre-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:#2F6BFF;
    transition:.3s ease;
}

.genre-menu a:hover{
    color:#ffffff;
}

.genre-menu a:hover::after{
    width:100%;
}

.genre-menu a.active{
    color:#2F6BFF;
}

.genre-menu a.active::after{
    width:100%;
}

/* HOME ICON */

.home-link{
    font-size:14px;
    letter-spacing:0;
    padding-bottom:6px;
}

.home-link i{
    font-size:16px;
    color:#c89b63; /* golden tone */
    transition:.3s ease;
}

.home-link:hover i{
    color:#e6c28b; /* lighter gold on hover */
    transform:scale(1.1);
}


/* ===============================
   VIBE LINE – CINEMATIC
================================ */

.review-vibe {
  margin-top: 45px;
  display: flex;
  justify-content: center;  /* 🔥 centru real */
}

.vibe-line {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 32px;
  border-radius: 50px;

  background: linear-gradient(
    145deg,
    rgba(47,107,255,0.08),
    rgba(108,140,255,0.05)
  );

  border: 1px solid rgba(47,107,255,0.15);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.3),
    0 0 25px rgba(47,107,255,0.15);
}

/* ICON BASE */
.vibe-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, filter .25s ease;
}

.vibe-icon:hover {
  transform: scale(1.25);
  filter: brightness(1.2);
}

/* 🎨 THEME COLORS */

.vibe-heart { filter: drop-shadow(0 0 6px rgba(230,57,70,.6)); }
.vibe-brain { filter: drop-shadow(0 0 6px rgba(157,78,221,.6)); }
.vibe-pepper { filter: drop-shadow(0 0 6px rgba(255,107,53,.6)); }
.vibe-drop  { filter: drop-shadow(0 0 6px rgba(177,18,38,.6)); }
.vibe-knife { filter: drop-shadow(0 0 6px rgba(255,255,255,.4)); }

.vibe-empty {
  width: 26px;
  height: 26px;
}

/* ===============================
   CASETĂ DESCRIERE
================================ */

.description-box {
  margin-top: 40px;
  padding: 30px;
  border-radius: 18px;
  background: rgba(20,20,20,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);

  text-align: justify;
  hyphens: auto;
}

/* Paragrafe */
.description-box p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.75);
}

/* Drop cap */
.description-box p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  float: left;
  line-height: 0.9;
  margin-right: 10px;
  margin-top: 6px;
  color: rgba(255,255,255,0.9);
}

/* Indent pentru paragrafele următoare */
.description-box p:first-of-type {
  text-indent: 0;
}

.description-box p:not(:first-of-type) {
  text-indent: 20px;
}

.description-box{
  position:relative;
}

.has-spoiler .description-content{
  filter:blur(6px);
  transition:filter .3s ease;
}

.spoiler-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(11,18,32,0.85);
  border-radius:12px;
  z-index:2;
}

.spoiler-warning{
  text-align:center;
  color:#fff;
  font-weight:600;
  letter-spacing:1px;
}

.reveal-btn{
  display:block;
  margin:12px auto 0;
  padding:8px 18px;
  border:none;
  border-radius:20px;
  background:linear-gradient(135deg,#2F6BFF,#4D82FF);
  color:white;
  cursor:pointer;
  transition:.3s;
}

.reveal-btn:hover{
  transform:scale(1.05);
}

.current-progress-box{
    padding:30px;
}

.progress-label{
    font-family:'Playfair Display',serif;
    font-size:14px;
    letter-spacing:2px;
    opacity:.6;
    margin-bottom:18px;
}

.current-progress-box{
    margin-top:40px;
    padding:30px;
}

.progress-label{
    font-family:'Playfair Display',serif;
    font-size:14px;
    letter-spacing:2px;
    opacity:.6;
    margin-bottom:18px;
}

.reading-progress.large{
    height:22px;
    border-radius:40px;
    background:#0E1624;
    position:relative;
    overflow:hidden;
}

.reading-progress.large .reading-progress-fill{
    height:100%;
    border-radius:40px;
    background:linear-gradient(90deg,#2F6BFF,#4D82FF);
    transition:width 1.2s ease;
}

.reading-progress.large .reading-progress-text{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:600;
    color:#fff;
}



/* ===============================
   CINEMATIC BACKGROUND LAYER
================================ */

.cinematic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;

  background: radial-gradient(
      circle at 30% 30%,
      rgba(47,107,255,0.25),
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(108,140,255,0.18),
      transparent 50%
    ),
    linear-gradient(180deg, #0B1220, #111C2E);

  transition: filter 0.25s ease, transform 0.25s ease;
  will-change: transform, filter;
}

/* Conținut peste background */
#page-wrapper {
  position: relative;
  z-index: 2;
}

.reading-badge{
  font-size:12px;
  margin-left:15px;
  padding:6px 14px;
  border-radius:30px;
  background:#2F6BFF;
  color:white;
  font-weight:600;
}

.progress-fill{
  width:0;
  height:100%;
  background:linear-gradient(90deg,#2F6BFF,#4D82FF);
  border-radius:20px;
  transition:width 1.2s ease;
}


/* ===============================
   SIGNATURE
================================ */

.site-signature {
  text-align: center;
  margin: 80px 0 30px 0;
  font-size: 0.8rem;
  color: #8FA3BF;
  letter-spacing: 1.2px;
  font-family: 'Playfair Display', serif;
}

.site-signature::after {
  content: "✦";
  display: block;
  margin: 12px auto 0 auto;
  font-size: 12px;
  color: rgba(47,107,255,0.6);
}

.site-signature a {
  color: #AFC3E6;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.site-signature a:hover {
  color: #2F6BFF;
}

.site-signature a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #2F6BFF;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.site-signature a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Description box: desktop version in book-left, mobile version in book-right */
.desc-mobile {
  display: none;
}

@media (max-width: 768px) {

  .desc-mobile {
    display: block;
  }

  /* Ascunde coperta */
  .book-left {
    display: none;
  }

  /* Container general */
  .book-review-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 15px;
    margin: 30px auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .book-right {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Centrează doar blocurile, nu textul din ele */
  .spec-sheet,
  .review-box {
    margin: 0 auto 25px auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Mărim textul */
  .book-main-title {
    font-size: 28px;
  }

  .book-subtitle {
    font-size: 20px;
  }

  .spec-sheet p,
  .review-box p {
    font-size: 16px;
  }

  .review-box p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .description-box {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .series-grid {
    gap: 12px;
  }

  .series-card {
    width: 75px;
  }

  #page-wrapper {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

}

.spec-ratings div{
  display:flex;
  align-items:center;
  gap:14px;
}

@media (max-width: 768px) {

  .spec-ratings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

}

@media (max-width: 768px) {

  .book-main-title {
    text-align: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1.2;
    width: 100%;
  }

  .book-main-title .obsessed-badge-inline,
  .book-main-title .tbr-badge-inline,
  .book-main-title .cr-badge-inline {
    flex-basis: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .desc-mobile-title {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 3px;
    color: #E6ECF5;
  }

  .desc-mobile-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 1px;
    margin: 12px auto 0 auto;
    background: linear-gradient(
      to right,
      transparent,
      rgba(47,107,255,0.7),
      transparent
    );
  }

  .book-subtitle {
    text-align: center;
    font-size: 20px;
    margin-top: 6px;
  }

}


.book-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

@media (max-width: 1024px) {

  .book-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* <- aliniere stânga */
    gap: 10px;
  }

  .book-badges .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* text centrat în badge */
    text-align: center;
    padding: 6px 14px;
    white-space: nowrap;
  }

}
@media(max-width:768px){

  .currently-reading{
    padding:0 25px 40px;
  }

  .currently-grid{
    grid-template-columns:1fr;
    gap:50px;
  }

  /* FEATURED devine card normal */
  .featured-card{
    grid-column:span 1;
    flex-direction:column;
    padding:25px;
  }

  .featured-cover{
    max-width:100%;
  }

  .featured-cover img{
    width:100%;
    aspect-ratio:2/3;
    object-fit:cover;
    border-radius:14px;
    margin-bottom:18px;
  }

  .featured-content{
    text-align:center;
  }

  .continue-btn{
    width:100%;
  }

  /* SIDE CARD identic cu book-card */
  .side-card{
    grid-column:span 1;
    min-height:auto;
    padding:25px;
  }

}



@media(max-width:768px){

    header h1{font-size:40px;}
    .grid{padding:0 25px 60px;}

    .currently-section{
        padding:0 25px 60px;
    }

    .currently-wrapper{
        justify-content:center;
    }

    .currently-wrapper .book-card{
        width:100%;
        max-width:100%;   /* identic cu restul pe mobil */
    }

    .hero-stats{gap:20px;}
}


    .stat-box{
        padding:25px 20px;
    }

    .stat-number{
        font-size:36px;
    }
    
    
    .stars i{
    transition: transform .2s ease, opacity .2s ease;
}

.book-card:hover .stars i{
    transform: scale(1.1);
}
.progress-bar-fill,
.reading-progress-fill{
    transition: width 1.2s cubic-bezier(.25,.8,.25,1);
}
.review-btn{
    transition: transform .25s ease, box-shadow .25s ease;
}

.review-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(47,107,255,.3);
}

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}



/* =====================================================
   PROFILE STATS CARD – FINAL CLEAN
===================================================== */

.profile-stats{
    margin-top:60px;
    display:flex;
    justify-content:center;
}

.profile-stats-card{
    display:flex;
    align-items:center;
    gap:70px;
    padding:50px 80px;
    border-radius:30px;

    background:linear-gradient(145deg,#0f1722,#0c111a);
    border:1px solid rgba(255,255,255,.05);

    box-shadow:0 30px 70px rgba(0,0,0,.45);
}

.stat-item{
    text-align:center;
    min-width:160px;
}

.stat-number{
    font-size:44px;
    font-weight:700;
    color:#E6ECF5;
}

.stat-label{
    margin-top:10px;
    font-size:12px;
    letter-spacing:2px;
    color:#8FA3BF;
}

.stat-divider{
    width:1px;
    height:70px;
    background:rgba(255,255,255,.08);
}

.stat-link{
    text-decoration:none;
    color:inherit;
    transition:all .3s ease;
}

.stat-link:hover{
    transform:translateY(-4px);
}

/* GOLD STARS */

.stars{
    margin-top:8px;
}

.stars i{
    font-size:16px;
    margin:0 2px;
    background:linear-gradient(180deg,#FFD875,#E6A600);
    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* RESPONSIVE */

@media(max-width:900px){

    .profile-stats-card{
        flex-direction:column;
        gap:35px;
        padding:40px;
    }

    .stat-divider{
        display:none;
    }

}

/* =====================================================
   CURRENTLY OBSESSED – CLEAN SAFE VERSION
===================================================== */

.obsessed-hero{
    display:flex;
    justify-content:center;
    padding:60px 20px;
    position:relative;
}

.obsessed-content{
    width:100%;
    max-width:820px;
    background:#162338;
    padding:35px 40px;
    border-radius:14px;
}

.obsessed-title{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:16px;
    text-align:left;
}

.obsessed-title::before{
    content:"";
    width:1px;
    height:32px;
    background:linear-gradient(
        to bottom,
        transparent,
        rgba(47,107,255,.8),
        transparent
    );
}

.obsessed-book{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.obsessed-left{
    display:flex;
    flex-direction:column;
    align-items:center;
    max-width:220px;
    text-align:center;
}

.obsessed-cover{
    width:100%;
    max-width:220px;
    aspect-ratio:2/3;
    object-fit:cover;
    border-radius:14px;
}

.obsessed-title-book{
    margin-top:18px;
    font-size:20px;
    line-height:1.3;
    color:#E6ECF5;
}

.obsessed-author{
    margin-top:6px;
    font-size:14px;
    color:#8FA3BF;
}

.obsessed-author .author-link{
    color:inherit;
    text-decoration:none;
    transition:color .25s ease;
}

.obsessed-author .author-link:hover{
    color:#2F6BFF;
}

/* Progress bar */
.obsessed-progress{
    width:100%;
    height:18px;
    margin-top:15px;
    background:#0E1624;
    border-radius:20px;
    overflow:hidden;
}

/* Heartbeat area */
.snippets-area{
    display:flex;
    flex-direction:column;
    gap:10px;
    max-width:500px;
    margin:0 auto;
}

.heartbeat-wrapper{
    display:flex;
    justify-content:center;
    width:100%;
    margin-bottom:5px;
}

.heartbeat-visual{
    position:relative;
    width:100%;
    max-width:500px;
}

.heartbeat-svg{
    display:block;
    width:100%;
    height:120px;
}

.heartbeat-line{
    fill:none;
    stroke:url(#hbGradient);
    stroke-width:3;
    stroke-linecap:round;
    filter:drop-shadow(0 0 8px #00e5ff);
}

#heartbeatRunner{
    filter:drop-shadow(0 0 18px #00e5ff);
}

.heartbeat-center-text{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:18px;
    letter-spacing:1px;
    color:#00e5ff;
    text-shadow:0 0 12px rgba(0,229,255,0.8);
    pointer-events:none;
}

/* Live snippets */
.live-snippets{
    margin-top:8px;
    display:flex;
    flex-direction:column;
    gap:14px;
    width:100%;
}

.snippet-badge{
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(47,107,255,0.18);
    display:flex;
    align-items:center;
    gap:14px;
    box-sizing:border-box;
    transition:.25s ease;
}

.snippet-badge:hover{
    transform:translateY(-3px);
    border-color:#2F6BFF;
}

.snippet-meta{
    min-width:80px;
    text-align:center;
    font-size:11px;
    letter-spacing:.5px;
    opacity:.75;
    font-weight:600;
}

.snippet-divider{
    width:1px;
    align-self:stretch;
    background:linear-gradient(
        to bottom,
        transparent,
        rgba(47,107,255,0.6),
        transparent
    );
}

.snippet-text{
    flex:1;
    font-size:14px;
    line-height:1.5;
}

/* ===== CURRENTLY OBSESSED – MOBILE ===== */

/* Mobile-only info block: hidden on desktop */
.obsessed-meta-info {
    display: none;
}

@media (max-width: 768px) {

    /* Fix rounded corners — reduce padding so box fits in viewport */
    .obsessed-hero {
        padding: 30px 10px;
    }

    .obsessed-content {
        padding: 20px 15px;
        border-radius: 14px;
        overflow: hidden;
        box-sizing: border-box;
        max-width: 100%;
    }

    .obsessed-title {
        font-size: 1.6rem;
        justify-content: center;
    }

    /* Rearrange: grid with cover left, info right, snippets below */
    .obsessed-book {
        display: grid;
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto auto;
        gap: 12px 14px;
        align-items: start;
    }

    /* Cover stays in left column */
    .obsessed-left {
        grid-column: 1;
        grid-row: 1;
        max-width: 120px;
        align-items: center;
    }

    .obsessed-cover {
        max-width: 120px;
        border-radius: 10px;
    }

    /* Hide title, author, publisher, button from obsessed-left on mobile */
    .obsessed-left .obsessed-title-book,
    .obsessed-left .obsessed-author,
    .obsessed-left .obsessed-publisher-year,
    .obsessed-left .read-more {
        display: none;
    }

    /* Make .obsessed-meta transparent so its children participate in the grid */
    .obsessed-meta {
        display: contents;
    }

    /* Info block in right column, row 1 */
    .obsessed-meta-info {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    /* Snippets area spans full width, row 2 */
    .snippets-area {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .obsessed-meta-heartbeat-label {
        display: none;
    }

    .obsessed-meta-info .obsessed-title-book {
        margin-top: 0;
        font-size: 15px;
        line-height: 1.25;
    }

    .obsessed-meta-info .obsessed-author {
        margin-top: 2px;
        font-size: 12px;
    }

    .obsessed-meta-info .obsessed-publisher-year {
        font-size: 11px !important;
        margin: 2px 0 4px 0 !important;
    }

    .obsessed-read-more {
        font-size: 10px !important;
        padding: 6px 14px !important;
        white-space: nowrap !important;
        letter-spacing: 0.8px;
        margin-top: 6px !important;
    }

    /* Heartbeat scaled for mobile */
    .heartbeat-wrapper {
        margin-bottom: 5px;
    }

    .heartbeat-svg {
        height: 90px;
    }

    /* Snippets centered below both columns */
    .live-snippets {
        width: 100%;
        text-align: center;
    }

    .snippet-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 10px;
    }

    .snippet-divider {
        width: 80px;
        height: 1px;
        align-self: center;
        background: linear-gradient(to right, transparent, rgba(47,107,255,0.6), transparent);
    }

    .snippet-meta {
        min-width: auto;
    }

    .snippet-text {
        font-size: 13px;
    }
}

/* ===== OBSESSED BOOKSHELF – MOBILE ROUNDED CORNERS FIX ===== */
@media (max-width: 768px) {
    .obsessed-bookshelf-content {
        border-radius: 14px !important;
        overflow: hidden;
        box-sizing: border-box;
        max-width: 100%;
    }
}

.rating-icon{
  background: linear-gradient(90deg, currentColor 100%, rgba(255,255,255,0.15) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 1px color-mix(in srgb, currentColor 80%, white);

}

/* ===============================
   PAGINATION – MINIMAL CLEAN
================================ */

.pagination{
    display:flex;
    justify-content:center;
    gap:50px;
    padding:25px 0;
    margin-top:40px;   /* 👈 mărește aici */
    text-transform:uppercase;
    font-size:12px;
    letter-spacing:3px;
}


.pagination button{
    all:unset;
    color:#8FA3BF;
    cursor:pointer;
    transition:.3s ease;
}

/* hover */
.pagination button:hover{
    color:#ffffff;
}

/* disabled */
.pagination button:disabled{
    opacity:.4;
    cursor:default;
}

/* page numbers container */
.page-numbers{
    display:flex;
    gap:40px;
}

/* active page */
.page-numbers button.active{
    color:#2F6BFF;
}

/* ===============================
   HEADER NAV – MENU STYLE
================================ */

header nav{
    display:flex;
    justify-content:center;
    gap:60px;
    padding:25px 0;
    text-transform:uppercase;
    font-size:12px;
    letter-spacing:3px;
}

header nav a{
    color:#8FA3BF;
    text-decoration:none;
    position:relative;
    padding-bottom:6px;
    transition:.3s ease;
}

/* underline animation */
header nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:#2F6BFF;
    transition:.3s ease;
}

header nav a:hover{
    color:#ffffff;
}

header nav a:hover::after{
    width:100%;
}

/* active link */
header nav a.active{
    color:#2F6BFF;
}

header nav a.active::after{
    width:100%;
}


/* ===============================
   QUIZ CTA – DRAMATIC VERSION
================================ */

.quiz-cta{
    margin-top:50px;
    margin-bottom:20px;
    display:flex;
    justify-content:center;
    position:relative;
}

.quiz-btn{
    position:relative;
    display:inline-block;
    padding:16px 44px;
    border-radius:22px;
    font-size:12px;
    letter-spacing:3px;
    text-transform:uppercase;
    text-decoration:none;
    color:#ffffff;
    border:1px solid rgba(47,107,255,.4);
    background:rgba(47,107,255,.05);
    backdrop-filter:blur(6px);
    transition:.4s ease;

    animation:
        glowPulse 3.5s ease-in-out infinite,
        textBreath 3s ease-in-out infinite;
}


/* glow animat */
@keyframes glowPulse{
    0%{
        box-shadow:0 0 0 rgba(47,107,255,0);
    }
    50%{
        box-shadow:0 0 25px rgba(47,107,255,.35);
    }
    100%{
        box-shadow:0 0 0 rgba(47,107,255,0);
    }
}



@keyframes textBreath{
    0%{ transform:translateY(0); }
    50%{ transform:translateY(-2px); }
    100%{ transform:translateY(0); }
}

/* hover intensifică */
.quiz-btn:hover{
    border-color:#2F6BFF;
    box-shadow:0 0 35px rgba(47,107,255,.6);
    transform:translateY(-3px);
}

/* badge NEW */
.quiz-badge{
    position:absolute;
    top:-10px;
    right:-12px;
    background:#2F6BFF;
    color:#fff;
    font-size:9px;
    padding:4px 8px;
    border-radius:20px;
    letter-spacing:1px;
    box-shadow:0 0 12px rgba(47,107,255,.6);
    animation: badgeFloat 3s ease-in-out infinite;
}

/* badge plutește subtil */
@keyframes badgeFloat{
    0%{ transform:translateY(0); }
    50%{ transform:translateY(-4px); }
    100%{ transform:translateY(0); }
}

.quiz-icon{
    display:inline-block;
    margin-right:12px;
    position:relative;
    animation:mysticFloat 6s ease-in-out infinite;
}

/* plutire foarte subtilă */
@keyframes mysticFloat{
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-3px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* LAYER 1 – HALO PRINCIPAL */
.quiz-icon::after{
    content:"";
    position:absolute;
    inset:-8px;
    border-radius:50%;
    background: radial-gradient(circle,
        rgba(170,120,255,.55) 0%,   /* mov aproape */
        rgba(170,120,255,.35) 25%,
        rgba(47,107,255,.40) 45%,   /* albastru interior */
        rgba(47,107,255,.25) 60%,
        rgba(47,107,255,0) 75%
    );
    opacity:0;
    animation:mysticAura 5s ease-in-out infinite;
    z-index:-1;
}

/* LAYER 2 – HALO EXTERIOR FOARTE SOFT */
.quiz-icon::before{
    content:"";
    position:absolute;
    inset:-16px;
    border-radius:50%;
    background: radial-gradient(circle,
        rgba(170,120,255,.25) 20%,
        rgba(47,107,255,.18) 40%,
        rgba(47,107,255,0) 70%
    );
    opacity:0;
    animation:mysticOuter 9s ease-in-out infinite;
    z-index:-2;
}

/* animație layer principal */
@keyframes mysticAura{
    0%   { opacity:0; transform:scale(.85); }
    50%  { opacity:.65; transform:scale(1.12); }
    100% { opacity:0; transform:scale(.85); }
}

/* animație layer exterior – mult mai lent */
@keyframes mysticOuter{
    0%   { opacity:0; transform:scale(.9); }
    50%  { opacity:.4; transform:scale(1.25); }
    100% { opacity:0; transform:scale(.9); }
}
button.read-more {
    all: unset;
    display: inline-block;
    padding:10px 24px;
    border-radius:30px;
    font-size:12px;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#2F6BFF;
    border:1px solid rgba(47,107,255,.5);
    cursor:pointer;
}

button.read-more:hover {
    background:rgba(47,107,255,.08);
    color:#fff;
}


.quiz-intro p{
    color:#9FB4D6;
    font-size:17px;
    line-height:1.8;
}
.vibe-icon{
    position:relative;
    cursor:pointer;
    font-size:22px;
    transition:.2s ease;
}




#global-tooltip{
  position:fixed;
  padding:8px 12px;
  background:#111C2E;
  color:#fff;
  font-size:12px;
  border-radius:10px;
  white-space:nowrap;
  border:1px solid rgba(47,107,255,.4);
  box-shadow:0 0 20px rgba(47,107,255,.35);
  pointer-events:none;
  opacity:0;
  transform:translate(-50%,-10px);
  transition:.2s ease;
  z-index:99999;
}


.review-vibe{
  margin-top:8px;
  margin-bottom:8px;   /* 👈 adaugă asta */
}

.obsessed-title-book{
    font-family:'Playfair Display', serif;
    font-size:22px;
    margin:10px 0 5px;
}

.obsessed-title-link{
    text-decoration:none;
    color:inherit;
}

.obsessed-title-link:hover{
    color:#ffffff;
}


.obsessed-vibe{
    margin-top:4px;
    margin-bottom:4px;
}

.obsessed-vibe .vibe-line{
    padding:10px 20px;
    gap:14px;
}

.obsessed-vibe .vibe-icon{
    font-size:18px;
}


.obsessed-author{
    margin-bottom:4px;
}

.obsessed-vibe .vibe-line{
    border-radius: 12px;
}

.read-more{
    margin-top:18px;
    padding:10px 24px;
    border-radius:12px;
    font-size:12px;
    letter-spacing:1px;
    text-transform:uppercase;
    text-decoration:none;
    color:#2F6BFF;
    border:1px solid rgba(47,107,255,.5);
    transition:.3s ease;
    display:inline-block;
}

.read-more:hover{
    background:rgba(47,107,255,.08);
    border:1px solid rgba(200,155,99,.7);
    color:#ffffff;
}

body{
    margin:0;
    font-family:'Inter',sans-serif;
    background:linear-gradient(180deg,#0B1220,#111C2E);
    color:#E6ECF5;
}
h1,h2,h3{font-family:'Playfair Display',serif;letter-spacing:1px;}
a{text-decoration:none;color:inherit;}

.section-title{
    font-family:'Playfair Display',serif;
    font-size:34px;
    font-weight:600;
    letter-spacing:1px;
    margin:0 0 40px 0;
    padding:0 80px;
    position:relative;
}

.section-title::after{
    content:"";
    display:block;
    width:120px;
    height:2px;
    margin-top:14px;
    background:linear-gradient(
        to right,
        #2F6BFF,
        transparent
    );
}

.section-title{
    text-align:center;
}
.section-title::after{
    margin:14px auto 0 auto;
}
.section-title{
    color:#E6ECF5;
}

@media(max-width:768px){
    .section-title{
        padding:0 25px;
        font-size:26px;
    }
}

/* ===== TOP AUTHORS ===== */

.top-authors{
    padding:0 80px;
    margin-top:60px;
    text-align:center;
}


.authors-row{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:40px;
    max-width:1100px;
    margin:0 auto;
}

/* Desktop: hide 6th author (show only 5) */
.authors-row .author-card:nth-child(n+6){
    display:none;
}

@media(max-width:1100px){
    .authors-row{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:700px){
    .authors-row{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:480px){
    .authors-row{
        grid-template-columns:1fr;
    }
}


.author-card{
    text-align:center;
}

.author-avatar{
    width:130px;
    height:130px;
    border-radius:50%;
    position:relative;
    margin:0 auto 20px;
    background:linear-gradient(145deg,#c89b63,#a8743a);
    padding:6px;
}

.author-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
    display:block;
}

.author-fallback{
    position:absolute;
    top:6px;
    left:6px;
    right:6px;
    bottom:6px;
    border-radius:50%;
    background:#1a2333;

    display:none;          /* important */
    align-items:center;
    justify-content:center;

    font-size:36px;
    color:#8FA3BF;
}

.author-fallback i{
    line-height:1;
}



.author-card h3{
    margin:10px 0 6px;
    font-size:22px;
}

.author-card{
    color:#8FA3BF;
}


.author-card h3{
    color:#E6ECF5;   /* titlul rămâne alb */
}



@media(hover:hover){
    .author-avatar:hover{
        transform:translateY(-8px);
        box-shadow:0 25px 50px rgba(0,0,0,.45);
    }
}
/* Mobile */
@media(max-width:768px){
    .top-authors{
        padding:60px 25px;
    }
    .authors-row{
        gap:30px;
    }
}



/* HERO */
header{
    position:relative;
    padding:100px 20px;
    text-align:center;
    overflow:hidden;
}

header::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            180deg,
            rgba(11,18,32,.65) 0%,
            rgba(11,18,32,.75) 50%,
            rgba(11,18,32,.85) 100%
        ),
        url('images/hero.webp') center/cover no-repeat;
    filter: blur(4px);
    transform: scale(1.05);
    z-index:0;
}

header > *{
    position:relative;
    z-index:1;
}


header h1{font-size:60px;margin:0;color:#2F6BFF;}
header p{margin-top:12px;font-size:18px;color:#8FA3BF;}



/* HERO STATS */
.hero-stats{
    display:flex;
    flex-wrap:wrap;
    gap:40px;
    justify-content:center;
    margin:40px 0 20px;
}

.stat-box{
    flex:1 1 220px;
    max-width:220px;
    padding:35px;
    border-radius:22px;
    background:linear-gradient(145deg,#0f1722,#0c111a);
    text-align:center;
    border:1px solid rgba(200,155,99,.45);
    position:relative;   /* 👈 ADAUGĂ ASTA */
    overflow:hidden;     /* 👈 ADAUGĂ ASTA */
}


.stat-box::before {
    content:"";
    position:absolute;
    inset:0;
    border-radius:22px;
    padding:1px;
    background:linear-gradient(145deg,#c89b63,#a8743a);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite:exclude;
}

.stat-number{font-size:48px;font-weight:700;}
.stat-label{margin-top:10px;font-size:14px;color:#8b95a7;}

/* GOAL */
.goal-progress{max-width:900px;margin:0 auto 40px;text-align:center;}
.progress-bar-wrapper{height:8px;background:#1b2432;border-radius:50px;overflow:hidden;}
.progress-bar-fill{height:100%;width:0;background:linear-gradient(90deg,#2F6BFF,#00C6FF);transition:1.4s;}

.progress-bar-wrapper{
    position:relative;
    height:16px;
    background:#1b2432;
    border-radius:50px;
    overflow:hidden;
}

.progress-bar-text{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:600;
    color:white;
    pointer-events:none;
    letter-spacing: 1px;
}


.goal-highlight{
    color:#2F6BFF;
    font-weight:600;
}

.goal-text{
    margin-bottom:12px;
}

/* ===== GENRES GRID ===== */

.genres-section{
    max-width:950px;
    margin:60px auto 0 auto;
    padding:80;
}


.genres-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}




@media(max-width:1200px){
    .genres-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:900px){
    .genres-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .genres-grid{
        grid-template-columns:1fr;
    }
}



.genre-card{
    position:relative;
    aspect-ratio:1/1;
    border-radius:24px;
    overflow:hidden;
    display:flex;
    align-items:flex-end;
    padding:10px;
    font-family:'Playfair Display',serif;
    font-size:18px;
    letter-spacing:1px;
    border:1px solid rgba(255,255,255,.05);
    cursor:pointer;
    transition:transform .4s ease, box-shadow .4s ease;
    display:flex;
    align-items:flex-end;
    justify-content:flex-start;
    padding:24px;
}




/* background color layer */
.genre-card::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    background:
        var(--bg-image) center/cover no-repeat,
        var(--genre-color);
    transition:transform .6s ease;
    pointer-events:none;
}




/* cinematic overlay */
.genre-card::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,.2) 0%,
        var(--genre-color) 100%
    );
    opacity:.75;
    transition:opacity .35s ease;
    pointer-events:none;
}



/* title */
.genre-title{
    position:relative;
    z-index:2;
    color:#fff;
        text-align:left;
    width:100%;
}

/* icon bubble */
.genre-icon{
    position:absolute;
    top:20px;
    right:20px;
    width:56px;
    height:56px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    border:1px solid rgba(200,155,99,.6);
    box-shadow:0 0 15px rgba(200,155,99,.25);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    color: #ffffff;
    z-index:2;
    transition:all .3s ease;
}

/* hover */
@media(hover:hover){
    .genre-card:hover{
        transform:translateY(-8px);
        box-shadow:0 30px 60px rgba(0,0,0,.45);
    }

    .genre-title,
    .genre-icon{
        transition: color .3s ease;
    }

    .genre-card:hover .genre-title,
    .genre-card:hover .genre-icon{
        color: var(--genre-accent);
    }

    .genre-card:hover::before{
        transform:scale(1.05);
    }
}

.genre-card:hover::after{
    opacity:.55;
}

.genre-card:hover .genre-icon{
    transform:scale(1.08);
}


.genre-card:hover .genre-title{
    transform:translateY(-8px);
}


/* mobile */
@media(max-width:768px){
    .genres-section{
        padding:40px 25px;
    }
    .genres-grid{
        gap:50px;
    }
}


/* GRID */
.grid{
    display:grid;
    /* limit to max 3 columns; each column min 220px, up to 1fr */
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap:50px;
    padding:40px 80px 0;
}

/* Responsive: 2 columns for medium screens, 1 column for small */
@media (max-width:1200px){
    .grid{
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}
@media (max-width:768px){
    .grid{
        grid-template-columns: 1fr;
        padding:0 25px 60px; /* keep existing mobile padding */
    }
}

#books{
    margin-top:60px;
}


/* CARD */
.book-card{
    background:#162338;
    border-radius:20px;
    padding:25px;
    text-align:center;
    border:1px solid rgba(255,255,255,.04);
    transition:all .3s ease;
    display:flex;
    flex-direction:column;
    position:relative;
    opacity:1;
    transform:translateY(0);
    animation:fadeUp .6s ease forwards;
    text-decoration:none;
    color:inherit;
}
.book-card p{
    color:#8FA3BF;
    margin:0 0 6px;
}
.book-card h3 {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 4px 0;
}
a.book-card{
    display:flex;
}
.book-card .book-cover{
    width:100%;
    height:auto;
    aspect-ratio:2/3;
    object-fit:cover;
}


@media (hover:hover){
    .book-card:hover{
        transform:translateY(-10px);
        box-shadow:0 30px 60px rgba(0,0,0,.4), 0 0 30px rgba(200,155,99,.35), inset 0 0 20px rgba(47,107,255,.1);
        border:1px solid rgba(200,155,99,.7);
    }
    .book-card:hover .book-cover{
        transform:scale(1.05);
    }
    .book-card:hover .stars i{
        transform:scale(1.1);
    }
}

.book-card:active{
    transform:scale(.98);
}
.review-btn.reading{
    opacity:.85;
    background:linear-gradient(135deg,#3a4d7a,#2F6BFF);
}

.book-cover{
    width:100%;
    aspect-ratio:2/3;
    object-fit:cover;
    border-radius:14px;
    margin-bottom:18px;
    transition:transform .4s ease;
}

.stars{
    margin:6px 0;
    min-height:28px;
}

.stars i{
    background:linear-gradient(145deg,#e6c28b,#a8743a);
    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    transition:transform .2s ease;
}


.new-badge{
    position:absolute;
    top:15px;
    left:15px;
    background: linear-gradient(135deg, #2F6BFF, #5A8CFF);
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    z-index:10;
    color: #fff;
    font-weight:600;
    border: none;
    box-shadow: 0 0 15px rgba(47,107,255,.6);
}

/* TBR BADGE - same styling as NEW */
.tbr-badge{
    position:absolute;
    top:15px;
    left:15px;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    z-index:10;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:0.5px;
    background:rgba(255,255,255,.06);
    color:#C8D3E6;
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
}

/* OBSESSED BADGE */
.obsessed-badge{
    position:absolute;
    top:15px;
    left:15px;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    z-index:10;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:0.5px;
    display:inline-block;
}

.review-btn{
    margin-top:auto;
    padding:14px;
    border-radius:14px;
    background:linear-gradient(135deg,#2F6BFF,#4D82FF);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

/* Reading progress */
.reading-progress{
    position:relative;
    height:18px;
    background:#0E1624;
    border-radius:20px;
    overflow:hidden;
    margin-top:12px;
    margin-bottom:16px;   /* asta lipsea */
}

.reading-progress-fill{
    height:100%;
    width:0;
    background:linear-gradient(90deg,#2F6BFF,#4D82FF);
    border-radius:20px;
    transition:width 1.2s ease;
}

.reading-progress-text{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:600;
    color:#fff;
    pointer-events:none;
}


/* MOBILE */
@media(max-width:768px){
    header h1{font-size:40px;}
    .grid{padding:0 25px 60px;}
    .currently-section{padding:0 25px 60px;text-align:center;}
    .currently-wrapper{justify-content:center;}
    .currently-wrapper .book-card{margin:0 auto;width:100%;max-width:320px;}
    .hero-stats{gap:20px;}
}

footer {
    text-align:center;
    padding:40px 0;
    color:#8FA3BF;
}

.footer-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:start;
}
@media(max-width:900px){
    .footer-grid{grid-template-columns:1fr}
}
/* ===============================
   FOOTER ALIGN FIX
================================ */

/* Container identic cu grid */
footer .container{
    max-width: 100%;
    padding: 0 80px;  /* EXACT ca .grid */
    box-sizing: border-box;
}

/* Aliniere verticală conținut intern */
.footer-left,
.footer-right{
    align-self:start;
}

/* ===============================
   NEWSLETTER SIGNUP – GLASSMORPH*/


.newsletter-box{
    margin:0;
    max-width:100%;
}

.footer-left .newsletter-box.book-card{
    display:block;
}

/* Footer card style */
.footer-card{
    background:#162338;
    border-radius:20px;
    padding:25px;
    border:1px solid rgba(255,255,255,.04);
    transition:all .3s ease;
    position:relative;
    overflow:hidden;
}

@media (hover:hover){
    .footer-card:hover{
        transform:translateY(-6px);
        box-shadow:
            0 30px 60px rgba(0,0,0,.4),
            0 0 30px rgba(200,155,99,.35),
            inset 0 0 20px rgba(47,107,255,.1);
        border:1px solid rgba(200,155,99,.7);
    }
}

.newsletter-form{
    margin-top:30px;
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* INPUT */
.newsletter-form input{
    padding:18px 22px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.04);
    backdrop-filter:blur(6px);
    color:#fff;
    font-size:16px;
    outline:none;
    transition:.3s ease;
}

.newsletter-form input:focus{
    border-color:#2F6BFF;
    box-shadow:0 0 0 2px rgba(47,107,255,.2);
}

/* BUTON */
.newsletter-submit{
    padding:18px;
    border-radius:14px;
    font-size:14px;
    letter-spacing:3px;
    text-transform:uppercase;
    border:none;
    cursor:pointer;

    background:#2F6BFF;
    color:#fff;

    transition:.3s ease;
}

.newsletter-submit:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(47,107,255,.4);
}

.newsletter-box{
    position:relative;
    overflow:hidden;
}

/* icon decorativ */
.newsletter-icon{
    position:absolute;
    top:10px;      /* mai sus */
    right:30px;
    z-index:0;

    font-size:100px;  /* mai mic */
    color:#ffffff;

    opacity:0.04;     /* foarte subtil */
    pointer-events:none;
}

/* Divider mai subțire și mai discret */
.footer-divider-line {
    width: 100%;
    height: 1px;
    margin: 8px 0;                /* ← mult mai mic decât 25px, arată mai bine */
    background: linear-gradient(to right, transparent, rgba(47,107,255,.4), transparent);
}

/* Titluri și motto mai strânse */
h3 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
}

.footer-motto {
    font-style: italic;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

h4.footer-subtitle {
    margin: 4px 0 8px 0;
    font-weight: 600;
}

/* Buton Spotify */


.spotify-button {
    padding:18px;
    border-radius:14px;
    font-size:14px;
    letter-spacing:3px;
    text-transform:uppercase;
    border:none;
    cursor:pointer;

    background:#2F6BFF;
    color:#fff;

    transition:.3s ease;
}



.spotify-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47,107,255,0.3);
}

/* Disclaimer și made-with mai mici și estompate */
.footer-disclaimer,
.footer-made {
   font-size: 0.82rem;
    opacity: 0.75;
    line-height: 1.5;
}

/* Link-urile legale */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;                     /* mai strâns decât 12px */
}

.footer-links a {
    color: #a0b4ff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #5a7fff;
    text-decoration: underline;
}

/* Icoana decorativă – aici o pui */
.book-card.footer-right-card .footer-icon {
    position: absolute;
    top: 10px;                    /* distanța de sus – poți schimba la 15px, 20px etc. */
    right: 20px;                  /* distanța de la dreapta */
    font-size: 80px;              /* mărime – 60–100px e zona bună */
    color: rgba(255,255,255,0.05); /* foarte transparent – poți încerca 0.08 sau 0.03 */
    pointer-events: none;         /* nu blochează click-urile pe card */
}

/* ===============================
   FOOTER CONTACT CARD
================================ */

.footer-contact-card{
    margin-top: 30px;
    text-align: center;
    align-items: center;
}

.footer-contact-card .contact-email{
    display: inline-block;
    margin: 10px 0;
    font-size: 1.2rem;
    color: #E6ECF5;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.2);
    padding-bottom: 4px;
    transition: .2s ease;
}

.footer-contact-card .contact-email:hover{
    color: #2F6BFF;
    border-color: #2F6BFF;
}
.footer-contact-card{
    background: linear-gradient(
        180deg,
        #1b273a 0%,
        #141f2f 100%
    );
    border: 1px solid rgba(255,255,255,0.04);
}

.social-circle{
    width: 90px;
    height: 90px;
    margin: 25px auto;
    border-radius: 50%;
    background: linear-gradient(135deg,#2F6BFF,#4D82FF);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(47,107,255,.3);
    transition: .2s ease;
}

.social-circle i{
    font-size: 40px;
    color: white;
}

.social-circle:hover{
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(47,107,255,.45);
}

.follow-title{
    font-size: 1.2rem;
    color: #2F6BFF;
    margin: 0;
}

.follow-handle{
    margin-top: 6px;
    opacity: .7;
}


/* ===============================
   CORTADO TOOLTIP
================================ */

.cortado-hover{
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cortado-tooltip{
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #162338;
    color: #E6ECF5;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13px;
    text-align:left;
    line-height: 1.6;
    white-space: nowrap;
    box-shadow: 0 25px 50px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.08);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 999;
}

.cortado-tooltip::after{
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #162338 transparent transparent transparent;
}

.cortado-hover:hover .cortado-tooltip{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}



/* ===============================
   INLINE TBR BADGE (TITLE)
================================ */

.book-main-title{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.tbr-badge-inline{
    font-size:11px;
    padding:12px 24px;
    border-radius:14px;
    font-family:'Inter',sans-serif;
    letter-spacing:1.5px;
    text-transform:uppercase;
    font-weight:600;
    border:1px solid rgba(255,255,255,.15);
    backdrop-filter:blur(8px);
    transition:.3s ease;
}

/* subtle hover */
.tbr-badge-inline:hover{
    transform:translateY(-2px);
}

/* OBSESSED BADGE - INLINE VERSION */
.obsessed-badge-inline{
    font-size:11px;
    padding:12px 24px;
    border-radius:14px;
    font-family:'Inter',sans-serif;
    letter-spacing:1.5px;
    text-transform:uppercase;
    font-weight:600;
    border:1px solid rgba(255,255,255,.15);
    backdrop-filter:blur(8px);
    transition:.3s ease;
    display:inline-block;
    margin-left:16px;
}

/* Currently Obsessed - Pink Gradient */
.obsessed-badge-inline[data-obsessed-status="current"]{
    background:rgba(236,72,153,.15);
    border-color:rgba(236,72,153,.6);
    color:#F472B6;
}

/* Has Been Obsessed - Purple Gradient */
.obsessed-badge-inline[data-obsessed-status="history"]{
    background:rgba(124,58,237,.15);
    border-color:rgba(124,58,237,.6);
    color:#A855F7;
}

/* subtle hover */
.obsessed-badge-inline:hover{
    transform:translateY(-2px);
}

/* STATUS COLORS - INLINE VERSION */

/* În așteptare */
.tbr-badge-inline[data-status="În așteptare"]{
    background:rgba(108,117,125,.15);
    border-color:rgba(108,117,125,.6);
    color:#adb5bd;
}

/* Pe lista mea */
.tbr-badge-inline[data-status="Pe lista mea"]{
    background:rgba(47,107,255,.15);
    border-color:rgba(47,107,255,.6);
    color:#2F6BFF;
}

/* Curând 👀 */
.tbr-badge-inline[data-status="Curând 👀"]{
    background:rgba(138,43,226,.18);
    border-color:rgba(138,43,226,.6);
    color:#b388ff;
}

/* Luna aceasta */
.tbr-badge-inline[data-status="Luna aceasta"]{
    background:rgba(230,57,70,.18);
    border-color:rgba(230,57,70,.6);
    color:#ff6b6b;
}

/* STATUS COLORS - CARD BADGE VERSION */

/* Currently Reading Badge */
.cr-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(47,107,255,.15);
    color: #2F6BFF;
    border: 1px solid rgba(47,107,255,.4);
    backdrop-filter: blur(6px);
}

/* Progress bar for Currently Reading */
.progress-container {
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2F6BFF, #00C6FF);
    border-radius: 4px;

}

/* Ensure footer columns align to the top (override if necessary) */
footer .footer-left,
footer .footer-right{
    align-self:start !important;
}

/* Add horizontal offset to newsletter in left column on wide screens
   so it visually lines up with the right-column content. */
@media (min-width:900px){
    footer .footer-left .newsletter-box{
        margin-left:28px;
    }
}
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 11px;
    color: #8FA3BF;
    margin: 0;
    text-align: center;
    font-weight: 500;
    line-height: 1;
}



#books {
  scroll-margin-top: 0;
}

html.no-smooth-scroll {
  scroll-behavior: auto !important;
}


/* ===============================
   MOBILE RESPONSIVE OVERHAUL
================================ */

/* --- BURGER TOGGLE BUTTONS --- */

.burger-toggle {
    display: none;
    background: none;
    border: none;
    color: #c89b63;
    font-size: 22px;
    cursor: pointer;
    padding: 8px 12px;
    z-index: 1001;
    transition: .3s ease;
}

.burger-toggle:hover {
    color: #e6c28b;
}

/* Desktop: genre-menu-links acts as transparent wrapper */
.genre-menu-links {
    display: contents;
}

/* --- SEARCH TOGGLE (hidden on desktop) --- */
.search-toggle-btn {
    display: none;
}

/* --- SEARCH CLOSE BUTTON (hidden on desktop) --- */
.search-close-btn {
    display: none;
}

@media (max-width: 768px) {

    /* === GENRE MENU (main nav) BURGER === */

    .burger-genre {
        display: block;
    }

    .genre-menu {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        gap: 0;
    }

    .genre-menu-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,.06);
        margin-top: 10px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .genre-menu.open .genre-menu-links {
        display: flex;
    }

    .genre-menu-links a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,.03);
    }

    /* === HEADER NAV (secondary nav) BURGER === */

    .burger-header {
        display: block;
        margin: 10px auto 0;
    }

    header nav {
        display: none !important;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
    }

    header nav.open {
        display: flex !important;
    }

    /* === GENRES SECTION: 2 per row mobile (3 rows) === */

    .genres-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .genre-card {
        aspect-ratio: 1 / 1;
    }

    /* === TOP AUTHORS: 3 per row, centered, show all 6 === */

    .authors-row .author-card:nth-child(n+6) {
        display: block !important;
    }

    .authors-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
        justify-items: center;
    }

    .author-avatar {
        width: 80px;
        height: 80px;
    }

    .author-card h3 {
        font-size: 14px;
    }

    .author-card p {
        font-size: 12px;
    }

    /* === REVIEWS: 2 cards per row === */

    #reviewsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .grid-container.with-filters #reviewsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Force equal-width cards: prevent content from stretching columns */
    #reviewsGrid > * {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Sidebar filters: stacked below search on mobile */
    .filter-card-sidebar {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        order: -1;
    }

    .filter-card-sidebar.active {
        display: flex !important;
        flex-direction: column;
    }

    .grid-container {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 1rem !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .grid-container-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #reviewsWrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    * {
        max-width: 100vw;
    }

    #books {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    #reviewsGrid {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .filter-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Search wrapper always visible on mobile */
    .search-wrapper {
        max-width: 100% !important;
        margin: 0 auto 1.5rem auto !important;
    }

    /* Prevent auto-zoom on input focus (iOS zooms if font < 16px) */
    .reviews-search-input {
        font-size: 16px !important;
        letter-spacing: 1px !important;
    }

    /* No glow effects on mobile */
    .reviews-search-input:focus,
    .reviews-search-input.active-glow {
        box-shadow: none !important;
    }

    .filter-card.active-glow {
        border-color: rgba(255,255,255,.06) !important;
        box-shadow: none !important;
    }

    .filter-card.active-glow::after {
        display: none !important;
    }

    .filter-card select,
    .filter-card input[type="number"],
    .filter-card input[type="range"] {
        font-size: 16px !important;
    }

    /* Hide toggle button and close button (search always visible) */
    .search-toggle-btn {
        display: none !important;
    }

    .search-close-btn {
        display: none !important;
    }

    /* === SMALLER SPACING BETWEEN SECTIONS === */

    .genres-section {
        margin-top: 30px !important;
        padding: 20px 15px !important;
    }

    .top-authors {
        margin-top: 20px !important;
        padding: 20px 15px !important;
    }

    #books {
        margin-top: 10px;
    }

    .section-title {
        font-size: 22px !important;
        margin-bottom: 16px !important;
    }

    header {
        padding: 50px 15px 30px !important;
    }

    .hero-stats {
        margin: 20px 0 10px !important;
        gap: 12px !important;
    }

    .goal-progress {
        margin-bottom: 20px !important;
    }

    .quiz-cta {
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }

    /* === SMALLER REVIEW BUTTON (like "Progres citire") === */

    .review-btn {
        padding: 8px 10px !important;
        font-size: 11px !important;
        border-radius: 10px !important;
        gap: 6px !important;
    }

    .review-btn i {
        font-size: 11px;
    }

    /* === COMPACT BOOK CARDS === */

    .book-card {
        padding: 14px !important;
        border-radius: 14px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .book-card h3 {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .book-card .book-cover {
        width: 100% !important;
        max-width: 100% !important;
    }

    .book-card p {
        font-size: 11px !important;
    }

    /* === FOOTER: stacked === */

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    footer .container {
        padding: 0 25px !important;
    }

    .quiz-btn {
        font-size: 9px !important;
        letter-spacing: 1.5px !important;
        padding: 12px 20px !important;
        white-space: nowrap !important;
    }
}

/* === TABLET: 3 genres per row (2 rows) === */
@media (min-width: 769px) and (max-width: 1024px) {
    .genres-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px;
    }
}
