Spaces:
Running
Running
/* Animated Tabs CSS - Blinkist Style */ | |
/* Animated Tabs Section */ | |
.animated-tabs-section { | |
padding: 6rem 0; | |
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); | |
overflow: hidden; | |
min-height: 100vh; | |
display: flex; | |
align-items: center; | |
} | |
.tabs-container { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 0 20px; | |
width: 100%; | |
} | |
.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; | |
} | |
/* Tab Navigation */ | |
.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; | |
} | |
/* Tab Content */ | |
.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) { | |
.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) { | |
.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; | |
} | |
} | |