* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
} header {
background: linear-gradient(135deg, #1a2a6c, #2c3e50);
color: white;
padding: 20px 0;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
}
.logo i {
font-size: 2rem;
color: #64b5f6;
}
.logo a {
text-decoration: none;
color: white;
}
.logo h1 {
font-size: 1.8rem;
font-weight: 700;
}
nav ul {
display: flex;
list-style: none;
gap: 30px;
margin: 0;
padding: 0;
}
nav a {
color: white;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
nav a:hover {
color: #64b5f6;
} .hero {
text-align: center;
padding: 60px 0;
}
.hero h2 {
font-size: 2.5rem;
margin-bottom: 20px;
color: #1a2a6c;
}
.hero p {
font-size: 1.2rem;
color: #555;
max-width: 700px;
margin: 0 auto 30px;
}
.search-bar {
max-width: 500px;
margin: 0 auto;
position: relative;
}
.search-bar form {
position: relative;
width: 100%;
}
.search-bar input {
width: 100%;
padding: 15px 50px 15px 20px;
border: none;
border-radius: 30px;
font-size: 1rem;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.search-bar button {
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
background: #64b5f6;
border: none;
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
transition: background 0.3s ease;
}
.search-bar button:hover {
background: #1a2a6c;
} .books-section {
padding: 40px 0;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
flex-wrap: wrap;
}
.section-header h3 {
font-size: 1.8rem;
color: #1a2a6c;
}
.filter-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.filter-btn {
padding: 8px 16px;
border: 2px solid #64b5f6;
background: white;
color: #64b5f6;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
background: #64b5f6;
color: white;
}
.books-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 30px;
}
.book-card {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.book-cover {
height: 350px;
overflow: hidden;
position: relative;
}
.book-cover img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.book-card:hover .book-cover img {
transform: scale(1.05);
}
.book-badge {
position: absolute;
top: 15px;
right: 15px;
background: #64b5f6;
color: white;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
}
.book-info {
padding: 20px;
}
.book-title {
font-size: 1.3rem;
font-weight: 700;
color: #1a2a6c;
margin-bottom: 5px;
}
.book-title a {
color: inherit;
text-decoration: none;
}
.book-author {
color: #666;
margin-bottom: 15px;
}
.book-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.book-rating {
display: flex;
align-items: center;
gap: 5px;
}
.book-rating i {
color: #ffd700;
}
.book-description {
color: #555;
font-size: 0.9rem;
line-height: 1.5;
margin-bottom: 20px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.book-actions {
display: flex;
gap: 10px;
}
.btn {
flex: 1;
padding: 12px 20px;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
text-align: center;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-primary {
background: #64b5f6;
color: white;
}
.btn-primary:hover {
background: #1a2a6c;
}
.btn-secondary {
background: #f8f9fa;
color: #1a2a6c;
border: 2px solid #64b5f6;
}
.btn-secondary:hover {
background: #64b5f6;
color: white;
} .pagination {
margin-top: 40px;
text-align: center;
}
.page-numbers {
display: inline-block;
padding: 10px 15px;
margin: 0 5px;
background: white;
border-radius: 5px;
text-decoration: none;
color: #333;
}
.page-numbers.current {
background: #64b5f6;
color: white;
} footer {
background: #2c3e50;
color: white;
padding: 40px 0 20px;
margin-top: 60px;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-bottom: 30px;
}
.footer-section h4 {
margin-bottom: 15px;
color: #64b5f6;
}
.footer-section ul {
list-style: none;
padding: 0;
}
.footer-section ul li {
margin-bottom: 10px;
}
.footer-section a {
color: #ccc;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-section a:hover {
color: #64b5f6;
}
.footer-bottom {
text-align: center;
padding-top: 20px;
border-top: 1px solid #444;
color: #aaa;
} @media (max-width: 768px) {
.header-content {
flex-direction: column;
gap: 20px;
}
nav ul {
gap: 15px;
flex-wrap: wrap;
justify-content: center;
}
.hero h2 {
font-size: 2rem;
}
.section-header {
flex-direction: column;
gap: 20px;
align-items: flex-start;
}
.books-grid {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
}