denisgay/styles.css
2025-11-12 19:51:06 +07:00

422 lines
7.0 KiB
CSS

/* 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(135deg, #ff6b9d 0%, #c44569 50%, #667eea 100%);
min-height: 100vh;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 0 20px;
}
/* Header */
.header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
padding: 20px 0;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.header .container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}
.header-controls {
display: flex;
gap: 10px;
align-items: center;
}
.auto-publish-btn {
background: rgba(255, 255, 255, 0.2);
color: #ff6b9d;
border: 2px solid #ff6b9d;
padding: 8px 16px;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
min-width: 60px;
}
.auto-publish-btn:hover {
background: #ff6b9d;
color: white;
}
.auto-publish-btn.disabled {
background: rgba(255, 255, 255, 0.1);
color: #999;
border-color: #999;
}
.logo {
font-size: 24px;
font-weight: 700;
color: #ff6b9d;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.add-quote-btn {
background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 25px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}
.add-quote-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}
.add-quote-btn span {
font-size: 20px;
font-weight: 700;
}
/* Main content */
.main {
padding: 40px 0;
min-height: calc(100vh - 160px);
}
.quotes-feed {
display: flex;
flex-direction: column;
gap: 20px;
}
/* Quote card */
.quote-card {
background: white;
border-radius: 20px;
padding: 30px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.quote-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
}
.quote-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
border: 3px solid #ff6b9d;
box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
}
.quote-author-info {
flex: 1;
}
.quote-author {
font-weight: 600;
color: #ff6b9d;
font-size: 18px;
margin-bottom: 2px;
}
.quote-date {
font-size: 14px;
color: #7f8c8d;
}
.quote-card::before {
content: '"';
position: absolute;
top: -20px;
left: 20px;
font-size: 120px;
font-weight: 700;
color: rgba(255, 107, 157, 0.1);
font-family: Georgia, serif;
}
.quote-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.quote-text {
font-size: 18px;
line-height: 1.8;
margin-bottom: 20px;
color: #2c3e50;
font-style: italic;
position: relative;
z-index: 1;
}
.quote-actions {
display: flex;
gap: 10px;
margin-top: 20px;
justify-content: flex-end;
}
.quote-action-btn {
background: none;
border: 1px solid #e0e0e0;
padding: 8px 16px;
border-radius: 20px;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
color: #666;
}
.quote-action-btn:hover {
background: #f8f9fa;
border-color: #ff6b9d;
color: #ff6b9d;
}
/* Loading state */
.loading {
text-align: center;
padding: 40px;
color: white;
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-top: 4px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Empty state */
.empty-state {
text-align: center;
padding: 60px 20px;
color: white;
}
.empty-state h2 {
font-size: 28px;
margin-bottom: 15px;
font-weight: 600;
}
.empty-state p {
font-size: 18px;
opacity: 0.9;
margin-bottom: 30px;
}
/* Footer */
.footer {
background: rgba(255, 255, 255, 0.95);
padding: 20px 0;
text-align: center;
color: #666;
margin-top: auto;
}
/* Mobile adaptations */
@media (max-width: 768px) {
.container {
padding: 0 15px;
}
.header {
padding: 15px 0;
}
.header .container {
flex-direction: column;
text-align: center;
}
.logo {
font-size: 20px;
}
.add-quote-btn {
padding: 10px 20px;
font-size: 14px;
}
.main {
padding: 20px 0;
}
.quote-card {
padding: 20px;
}
.quote-header {
gap: 12px;
margin-bottom: 15px;
}
.quote-avatar {
width: 50px;
height: 50px;
}
.quote-author {
font-size: 16px;
}
.quote-text {
font-size: 16px;
}
.quote-card::before {
font-size: 80px;
top: -15px;
left: 15px;
}
.quote-actions {
flex-wrap: wrap;
justify-content: center;
}
}
@media (max-width: 480px) {
.quote-card {
padding: 15px;
}
.quote-header {
gap: 10px;
margin-bottom: 12px;
}
.quote-avatar {
width: 45px;
height: 45px;
}
.quote-author {
font-size: 15px;
}
.quote-text {
font-size: 15px;
}
.quote-date {
font-size: 12px;
}
.quote-card::before {
font-size: 60px;
top: -10px;
left: 10px;
}
.empty-state h2 {
font-size: 24px;
}
.empty-state p {
font-size: 16px;
}
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.quote-card {
animation: fadeIn 0.5s ease-out;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
body {
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
.header {
background: rgba(44, 62, 80, 0.95);
}
.logo {
color: #3498db;
}
.quote-card {
background: #34495e;
color: #ecf0f1;
}
.quote-text {
color: #ecf0f1;
}
.quote-author {
color: #3498db;
}
.quote-action-btn {
border-color: #556b8d;
color: #bdc3c7;
}
.quote-action-btn:hover {
background: #2c3e50;
border-color: #3498db;
color: #3498db;
}
.footer {
background: rgba(44, 62, 80, 0.95);
color: #bdc3c7;
}
}