/*
Theme Name: Read Hub
Author: Mohamednur
Version: 1.0
*/

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

body{
font-family:'Poppins',sans-serif;
background:#f8fafc;
overflow-x:hidden;
}

.container{
width:90%;
max-width:1300px;
margin:auto;
}

/* HEADER */

.header{
position:sticky;
top:0;
z-index:1000;
background:#071126;
}

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
min-height:85px;
}

.logo{
display:flex;
align-items:center;
gap:14px;
text-decoration:none;
}

.logo-text{
font-size:42px;
font-weight:800;
color:white;
}

.logo-text span{
color:#3b82f6;
}

.nav ul{
display:flex;
gap:30px;
list-style:none;
}

.nav a{
color:white;
text-decoration:none;
font-weight:600;
}

.header-right{
display:flex;
align-items:center;
gap:20px;
}

.subscribe-btn{
background:#3b82f6;
color:white;
padding:12px 22px;
border-radius:10px;
text-decoration:none;
font-weight:600;
}

/* HERO */

.hero{
padding:80px 0;
background:linear-gradient(135deg,#2563eb,#0f172a);
color:white;
}

.hero-container{
display:grid;
grid-template-columns:1fr 1fr;
gap:70px;
align-items:center;
}

.hero-content h1{
font-size:78px;
line-height:1.05;
margin-bottom:30px;
font-weight:800;
}

.hero-content p{
font-size:20px;
line-height:1.8;
margin-bottom:40px;
}

.hero-buttons{
display:flex;
gap:20px;
}

.hero-btn,
.hero-btn-secondary{
padding:16px 30px;
border-radius:12px;
text-decoration:none;
font-weight:700;
}

.hero-btn{
background:white;
color:#2563eb;
}

.hero-btn-secondary{
border:1px solid rgba(255,255,255,.3);
color:white;
}

.hero-books-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
margin-bottom:25px;
}

.mini-book{
height:120px;
border-radius:20px;
background:#60a5fa;
display:flex;
justify-content:center;
align-items:center;
font-size:50px;
}

.discover-more-btn{
display:inline-block;
background:white;
color:#2563eb;
padding:15px 28px;
border-radius:12px;
text-decoration:none;
font-weight:700;
}

/* FEATURED BOOKS */

.featured-books{
padding:90px 0;
background:#f8fafc;
}

.books-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:50px;
}

.books-top h2{
font-size:56px;
font-weight:800;
color:#0f172a;
}

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

.book-item{
background:white;
padding:25px;
border-radius:24px;
display:flex;
gap:20px;
align-items:center;
box-shadow:0 10px 40px rgba(0,0,0,.06);
}

.book-image{
width:120px;
height:180px;
overflow:hidden;
border-radius:18px;
flex-shrink:0;
background:#e2e8f0;
}

.book-image img{
width:100%;
height:100%;
object-fit:cover;
}

.book-info h3{
font-size:28px;
margin:15px 0;
}

.book-info h3 a{
text-decoration:none;
color:#0f172a;
}

.author{
color:#64748b;
line-height:1.7;
margin-bottom:18px;
}

.rating{
color:#f59e0b;
margin-bottom:20px;
}

.book-btn{
display:inline-block;
background:#facc15;
padding:14px 24px;
border-radius:12px;
text-decoration:none;
font-weight:700;
color:#0f172a;
}

/* BLOG */

.latest-posts{
padding:90px 0;
background:white;
}

.posts-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:50px;
}

.posts-top h2{
font-size:56px;
font-weight:800;
}

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

.post-card{
background:#f8fafc;
border-radius:24px;
overflow:hidden;
}

.post-image img{
width:100%;
height:240px;
object-fit:cover;
}

.post-content{
padding:30px;
}

/* FOOTER */

.footer{
background:#071126;
padding:80px 0 30px;
color:white;
}

.footer-bottom{
text-align:center;
padding-top:30px;
}

/* MOBILE */

@media(max-width:1100px){

.hero-container,
.books-grid,
.posts-grid{
grid-template-columns:1fr 1fr;
}

}

@media(max-width:768px){

.nav{
display:none;
}

.header-right{
display:none;
}

.hero{
padding:60px 0;
}

.hero-container{
grid-template-columns:1fr;
text-align:center;
}

.hero-content h1{
font-size:48px;
}

.hero-buttons{
justify-content:center;
}

.hero-books-grid{
grid-template-columns:repeat(2,1fr);
}

.books-grid,
.posts-grid{
grid-template-columns:1fr;
}

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

.books-top,
.posts-top{
flex-direction:column;
gap:20px;
text-align:center;
}

}