aakash1777's picture
Upload 38 files
0a96199 verified
raw
history blame
17 kB
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(180deg, #3b82f6, #6366f1);
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header and Navigation */
.header {
background: linear-gradient(90deg, #3b82f6, #6366f1);
box-shadow: 0 2px 20px rgba(59, 130, 246, 0.3);
position: sticky;
top: 0;
z-index: 1000;
}
.nav {
padding: 1rem 0;
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.nav-logo {
display: flex;
align-items: center;
gap: 0.5rem;
color: white;
font-size: 1.5rem;
font-weight: 700;
text-decoration: none;
}
.nav-logo i {
font-size: 1.8rem;
color: #ffffff;
}
.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-link {
color: white;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
position: relative;
}
.nav-link:hover {
color: #ffffff;
transform: translateY(-2px);
}
.nav-link::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: #ffffff;
transition: width 0.3s ease;
}
.nav-link:hover::after {
width: 100%;
}
.nav-toggle {
display: none;
flex-direction: column;
cursor: pointer;
}
.nav-toggle span {
width: 25px;
height: 3px;
background: white;
margin: 3px 0;
transition: 0.3s;
}
/* Book Details Section */
.book-details {
padding: 4rem 0;
background: linear-gradient(135deg, #3b82f6, #6366f1);
color: white;
}
.book-header {
display: grid;
grid-template-columns: 300px 1fr;
gap: 3rem;
align-items: start;
}
.book-cover-large {
position: relative;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease;
}
.book-cover-large:hover {
transform: translateY(-10px);
}
.book-cover-large img {
width: 100%;
height: auto;
display: block;
}
.book-info-large h1 {
font-size: 3rem;
font-weight: 700;
color: white;
margin-bottom: 0.5rem;
line-height: 1.2;
}
.book-author {
font-size: 1.25rem;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 0.5rem;
font-weight: 500;
}
.book-category {
display: inline-block;
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 0.5rem 1rem;
border-radius: 25px;
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 2rem;
}
.book-actions {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.875rem 1.5rem;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-primary {
background: linear-gradient(90deg, #3b82f6, #6366f1);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.3);
color: white;
transform: translateY(-2px);
}
/* Summary Section */
.summary-section {
padding: 4rem 0;
background: linear-gradient(135deg, #3b82f6, #6366f1);
color: white;
}
.summary-section h2 {
font-size: 2.5rem;
font-weight: 700;
color: white;
margin-bottom: 2rem;
text-align: center;
}
.summary-content {
max-width: 800px;
margin: 0 auto;
font-size: 1.1rem;
line-height: 1.8;
}
.summary-content h3 {
font-size: 1.5rem;
font-weight: 600;
color: white;
margin: 2rem 0 1rem 0;
}
.summary-content p {
margin-bottom: 1.5rem;
color: rgba(255, 255, 255, 0.9);
}
.summary-content ul, .summary-content ol {
margin: 1.5rem 0;
padding-left: 2rem;
}
.summary-content li {
margin-bottom: 0.75rem;
color: rgba(255, 255, 255, 0.9);
}
.summary-content strong {
color: white;
font-weight: 600;
}
/* Audio Section */
.audio-section {
padding: 4rem 0;
background: linear-gradient(135deg, #6366f1, #3b82f6);
color: white;
}
.audio-section h2 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 2rem;
text-align: center;
}
.audio-player {
max-width: 600px;
margin: 0 auto;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.audio-info {
text-align: center;
margin-bottom: 2rem;
}
.audio-info h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.audio-info p {
opacity: 0.9;
}
.audio-controls {
margin-bottom: 2rem;
}
.audio-controls audio {
width: 100%;
border-radius: 10px;
background: rgba(255, 255, 255, 0.1);
}
.audio-duration {
text-align: center;
margin-top: 1rem;
opacity: 0.8;
}
.audio-features {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}
.feature-btn {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
padding: 0.75rem 1rem;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.feature-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
/* Related Books Section */
.related-books {
padding: 4rem 0;
background: linear-gradient(135deg, #3b82f6, #6366f1);
color: white;
}
.related-books h2 {
font-size: 2.5rem;
font-weight: 700;
color: white;
margin-bottom: 2rem;
text-align: center;
}
.books-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.book-card {
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
cursor: pointer;
backdrop-filter: blur(10px);
}
.book-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
background: rgba(255, 255, 255, 0.15);
}
.book-cover {
position: relative;
height: 200px;
overflow: hidden;
}
.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-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(59, 130, 246, 0.8);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.book-overlay i {
color: white;
font-size: 2rem;
}
.book-card:hover .book-overlay {
opacity: 1;
}
.book-info {
padding: 1.5rem;
}
.book-info h3 {
font-size: 1.25rem;
font-weight: 600;
color: white;
margin-bottom: 0.5rem;
line-height: 1.3;
}
.book-info .book-author {
color: rgba(255, 255, 255, 0.8);
font-size: 0.875rem;
margin-bottom: 0.25rem;
}
.book-info .book-category {
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 15px;
font-size: 0.75rem;
font-weight: 600;
display: inline-block;
}
/* Footer */
.footer {
background: linear-gradient(90deg, #3b82f6, #6366f1);
color: white;
text-align: center;
padding: 2rem 0;
}
.footer p {
opacity: 0.8;
}
/* Animated Tabs Section - Blinkist Style */
.animated-tabs-section {
padding: 6rem 0;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
overflow: hidden;
}
.tabs-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.tabs-header {
text-align: center;
margin-bottom: 4rem;
}
.tabs-header h2 {
font-size: 3rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 1rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.tabs-header p {
font-size: 1.2rem;
color: #4a5568;
max-width: 600px;
margin: 0 auto;
}
.tabs-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 3rem;
}
.tabs-nav {
display: flex;
background: white;
border-radius: 50px;
padding: 0.5rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.tab-button {
background: none;
border: none;
padding: 1rem 2rem;
border-radius: 40px;
font-size: 1rem;
font-weight: 600;
color: #4a5568;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
z-index: 2;
white-space: nowrap;
display: flex;
align-items: center;
gap: 0.5rem;
}
.tab-button.active {
color: white;
}
.tab-button i {
font-size: 1.2rem;
}
.tab-slider {
position: absolute;
top: 0.5rem;
left: 0.5rem;
height: calc(100% - 1rem);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 40px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1;
}
.tabs-content {
width: 100%;
max-width: 1000px;
position: relative;
}
.tab-panel {
display: none;
animation: fadeInUp 0.6s ease-out;
}
.tab-panel.active {
display: block;
}
.tab-panel-content {
background: white;
border-radius: 20px;
padding: 3rem;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.tab-panel-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
/* Tab-specific styles */
.read-tab {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}
.read-content h3 {
font-size: 2rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 1rem;
}
.read-content p {
font-size: 1.1rem;
color: #4a5568;
line-height: 1.7;
margin-bottom: 2rem;
}
.read-features {
display: flex;
flex-direction: column;
gap: 1rem;
}
.read-feature {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: #f8fafc;
border-radius: 10px;
transition: all 0.3s ease;
}
.read-feature:hover {
background: #e2e8f0;
transform: translateX(10px);
}
.read-feature i {
font-size: 1.5rem;
color: #667eea;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border-radius: 50%;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}
.read-feature-text h4 {
font-weight: 600;
color: #2d3748;
margin-bottom: 0.25rem;
}
.read-feature-text p {
font-size: 0.9rem;
color: #4a5568;
margin: 0;
}
.read-visual {
position: relative;
text-align: center;
}
.read-visual img {
max-width: 100%;
height: auto;
border-radius: 15px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.listen-tab {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}
.listen-content h3 {
font-size: 2rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 1rem;
}
.listen-content p {
font-size: 1.1rem;
color: #4a5568;
line-height: 1.7;
margin-bottom: 2rem;
}
.listen-features {
display: flex;
flex-direction: column;
gap: 1rem;
}
.listen-feature {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: #f8fafc;
border-radius: 10px;
transition: all 0.3s ease;
}
.listen-feature:hover {
background: #e2e8f0;
transform: translateX(10px);
}
.listen-feature i {
font-size: 1.5rem;
color: #667eea;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border-radius: 50%;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}
.listen-feature-text h4 {
font-weight: 600;
color: #2d3748;
margin-bottom: 0.25rem;
}
.listen-feature-text p {
font-size: 0.9rem;
color: #4a5568;
margin: 0;
}
.listen-visual {
position: relative;
text-align: center;
}
.listen-visual img {
max-width: 100%;
height: auto;
border-radius: 15px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.learn-tab {
text-align: center;
}
.learn-content h3 {
font-size: 2.5rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 1.5rem;
}
.learn-content p {
font-size: 1.2rem;
color: #4a5568;
line-height: 1.7;
margin-bottom: 3rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.learn-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.learn-card {
background: #f8fafc;
border-radius: 15px;
padding: 2rem;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.learn-card:hover {
background: white;
border-color: #667eea;
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.learn-card i {
font-size: 3rem;
color: #667eea;
margin-bottom: 1rem;
}
.learn-card h4 {
font-size: 1.25rem;
font-weight: 600;
color: #2d3748;
margin-bottom: 1rem;
}
.learn-card p {
font-size: 1rem;
color: #4a5568;
line-height: 1.6;
margin: 0;
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* Responsive Design */
@media (max-width: 768px) {
.nav-menu {
display: none;
}
.nav-toggle {
display: flex;
}
.book-header {
grid-template-columns: 1fr;
gap: 2rem;
text-align: center;
}
.book-cover-large {
max-width: 250px;
margin: 0 auto;
}
.book-info-large h1 {
font-size: 2rem;
}
.book-actions {
justify-content: center;
}
.summary-content {
font-size: 1rem;
}
.audio-player {
margin: 0 1rem;
}
.books-grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
/* Animated Tabs Responsive */
.tabs-header h2 {
font-size: 2rem;
}
.tabs-nav {
flex-direction: column;
border-radius: 20px;
padding: 0.25rem;
}
.tab-button {
padding: 0.75rem 1.5rem;
font-size: 0.9rem;
}
.tab-slider {
display: none;
}
.tab-button.active {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.read-tab,
.listen-tab {
grid-template-columns: 1fr;
gap: 2rem;
}
.tab-panel-content {
padding: 2rem;
}
.learn-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.container {
padding: 0 15px;
}
.book-info-large h1 {
font-size: 1.75rem;
}
.btn {
padding: 0.75rem 1rem;
font-size: 0.875rem;
}
.summary-section h2,
.audio-section h2,
.related-books h2 {
font-size: 2rem;
}
.books-grid {
grid-template-columns: 1fr;
}
/* Animated Tabs Mobile */
.tabs-header h2 {
font-size: 1.75rem;
}
.tabs-header p {
font-size: 1rem;
}
.tab-panel-content {
padding: 1.5rem;
}
.read-content h3,
.listen-content h3 {
font-size: 1.5rem;
}
.learn-content h3 {
font-size: 2rem;
}
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}