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

body{
font-family:'Inter',sans-serif;
background:#f6f6f6;
color:#111;
transition:.4s;
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:25px 40px;
}

.logo{
font-family:'Playfair Display',serif;
font-size:30px;
}

/* TOGGLE */

.toggle input{
display:none;
}

.toggle label{
width:50px;
height:26px;
background:#ddd;
display:block;
border-radius:30px;
position:relative;
cursor:pointer;
}

.toggle label::after{
content:"";
width:20px;
height:20px;
background:white;
position:absolute;
top:3px;
left:4px;
border-radius:50%;
transition:.3s;
}

#dark:checked + label{
background:#111;
}

#dark:checked + label::after{
transform:translateX(24px);
}

/* HERO */

.hero{
text-align:center;
padding:60px 20px;
}

.hero h1{
font-family:'Playfair Display',serif;
font-size:42px;
margin-bottom:15px;
}

.hero p{
opacity:.7;
max-width:600px;
margin:auto;
}

.search{
margin-top:25px;
padding:12px 18px;
border-radius:30px;
border:none;
width:260px;
box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

/* FEATURED BOOK */

.featured{
display:flex;
gap:40px;
padding:50px;
align-items:center;
}

.featured img{
width:200px;
border-radius:10px;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.featured h2{
font-family:'Playfair Display',serif;
margin-bottom:10px;
}

/* SECTION TITLE */

.section-title{
font-family:'Playfair Display',serif;
font-size:32px;
padding:0 40px;
text-align:center;
font-family:'Playfair Display', serif;
}

/* BOOK GRID */

.books{
padding:40px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:30px;
}

/* BOOK CARD */

.card{
background:white;
padding:20px;
border-radius:16px;
text-align:center;
transition:.3s;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.card:hover{
transform:translateY(-8px);
box-shadow:0 18px 40px rgba(0,0,0,0.15);
}

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

/* BUTTON */

.btn{
display:inline-block;
margin-top:10px;
padding:10px 16px;
background:#111;
color:white;
border-radius:8px;
text-decoration:none;
font-size:14px;
}

.section-title{
  margin-bottom:40px;
}

.books{
  margin-bottom:100px;
}

/* FOOTER */

footer{
  margin-top:120px;
  padding:70px 20px;
  text-align:center;

  background:##e9e9e9;
  border-top:2px solid #dcdcdc;

  font-family:'Playfair Display',serif;
}

footer h2{
  font-size:28px;
  margin-bottom:10px;
  letter-spacing:2px;
}

footer p{
  color:#555;
  margin-top:8px;
  font-size:15px;
}

footer{
  margin-top:120px;
  padding:80px 20px;
}

footer{
  border-top:1px solid #e0e0e0;
}

footer{
  padding:90px 20px;
}

/* DARK MODE */

.dark{
background:#121212;
color:white;
}

.dark .card{
background:#1e1e1e;
}

/* MOBILE */

@media(max-width:700px){

.featured{
flex-direction:column;
text-align:center;
}

}

/* Disable text selection */

body {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}


/* Disable image dragging */

img {
  pointer-events: none;
  -webkit-user-drag: none;
}


/* Prevent callout on iOS */

* {
  -webkit-touch-callout: none;
}

/* TRENDING LABEL */

.trending-label{
display:flex;
align-items:center;
gap:8px;
font-size:30px;
font-family:'Playfair Display', serif;
margin:30px 40px 5px;
}

.fire-icon{
width:35px;
height:35px;
object-fit:contain;
}

.section-divider{
width:60%;
height:1px;
background:#e5e5e5;
margin:60px auto;
}
