furry/static/css/recommendations.css

425 lines
8.2 KiB
CSS

/**
* Recommendation Widget Styles mit Furry-Design
*/
/* Recommendations Section */
.recommendations-section {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 20px;
padding: 30px;
margin: 30px 0;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.recommendations-header {
text-align: center;
margin-bottom: 30px;
}
.recommendations-title {
color: white;
font-size: 2rem;
font-weight: bold;
margin-bottom: 10px;
}
.recommendations-subtitle {
color: rgba(255, 255, 255, 0.8);
font-size: 1.1rem;
}
.recommendations-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
/* Recommendation Card */
.recommendation-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 15px;
padding: 20px;
position: relative;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
overflow: hidden;
}
.recommendation-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.recommendation-badge {
position: absolute;
top: 15px;
right: 15px;
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
padding: 5px 10px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: bold;
z-index: 2;
}
.recommendation-image {
position: relative;
margin-bottom: 15px;
border-radius: 10px;
overflow: hidden;
height: 200px;
}
.recommendation-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.recommendation-card:hover .recommendation-image img {
transform: scale(1.05);
}
.recommendation-content {
text-align: center;
}
.recommendation-title {
color: #4a5568;
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 10px;
line-height: 1.3;
}
.recommendation-price {
color: #667eea;
font-size: 1.3rem;
font-weight: bold;
margin-bottom: 8px;
}
.recommendation-reason {
color: #718096;
font-size: 0.9rem;
margin-bottom: 15px;
font-style: italic;
}
.recommendation-actions {
display: flex;
gap: 10px;
justify-content: center;
}
.recommendation-actions .btn {
padding: 8px 16px;
border-radius: 25px;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.3s ease;
}
.recommendation-actions .btn-primary {
background: linear-gradient(45deg, #667eea, #764ba2);
border: none;
color: white;
}
.recommendation-actions .btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.recommendation-actions .btn-outline-secondary {
border: 2px solid #e2e8f0;
color: #718096;
background: transparent;
}
.recommendation-actions .btn-outline-secondary:hover {
border-color: #667eea;
color: #667eea;
transform: translateY(-2px);
}
/* Empty State */
.recommendations-empty {
text-align: center;
padding: 40px 20px;
color: rgba(255, 255, 255, 0.8);
}
.empty-icon {
font-size: 4rem;
margin-bottom: 20px;
opacity: 0.7;
}
.recommendations-empty h4 {
color: white;
font-size: 1.5rem;
margin-bottom: 10px;
}
.recommendations-empty p {
font-size: 1.1rem;
line-height: 1.5;
}
/* Loading State */
.recommendations-loading {
text-align: center;
padding: 40px 20px;
color: rgba(255, 255, 255, 0.8);
}
.loading-spinner {
width: 50px;
height: 50px;
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); }
}
/* Similar Products */
.similar-products-section {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
border-radius: 20px;
padding: 30px;
margin: 30px 0;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.similar-products-title {
color: white;
font-size: 1.8rem;
font-weight: bold;
text-align: center;
margin-bottom: 25px;
}
.similar-products-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.similar-product-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 15px;
padding: 20px;
position: relative;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.similar-product-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.similarity-score {
position: absolute;
top: 15px;
right: 15px;
background: linear-gradient(45deg, #f093fb, #f5576c);
color: white;
padding: 5px 10px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: bold;
}
.similar-product-card .product-image {
position: relative;
margin-bottom: 15px;
border-radius: 10px;
overflow: hidden;
height: 180px;
}
.similar-product-card .product-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.similar-product-card:hover .product-image img {
transform: scale(1.05);
}
.similar-product-card .product-content {
text-align: center;
}
.similar-product-card .product-title {
color: #4a5568;
font-size: 1.1rem;
font-weight: bold;
margin-bottom: 8px;
line-height: 1.3;
}
.similar-product-card .product-price {
color: #f5576c;
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 8px;
}
.similarity-reason {
color: #718096;
font-size: 0.85rem;
font-style: italic;
}
/* Recommendation Types */
.recommendation-type-badge {
display: inline-block;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.75rem;
font-weight: bold;
margin-bottom: 10px;
}
.recommendation-type-collaborative {
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
}
.recommendation-type-content_based {
background: linear-gradient(45deg, #f093fb, #f5576c);
color: white;
}
.recommendation-type-popular {
background: linear-gradient(45deg, #4facfe, #00f2fe);
color: white;
}
.recommendation-type-trending {
background: linear-gradient(45deg, #43e97b, #38f9d7);
color: white;
}
.recommendation-type-personalized {
background: linear-gradient(45deg, #fa709a, #fee140);
color: white;
}
/* Responsive Design */
@media (max-width: 768px) {
.recommendations-grid {
grid-template-columns: 1fr;
}
.similar-products-grid {
grid-template-columns: 1fr;
}
.recommendations-title {
font-size: 1.5rem;
}
.similar-products-title {
font-size: 1.5rem;
}
.recommendation-card {
padding: 15px;
}
.similar-product-card {
padding: 15px;
}
}
@media (max-width: 480px) {
.recommendations-section {
padding: 20px;
margin: 20px 0;
}
.similar-products-section {
padding: 20px;
margin: 20px 0;
}
.recommendation-actions {
flex-direction: column;
gap: 8px;
}
.recommendation-actions .btn {
width: 100%;
}
}
/* Animation Classes */
.recommendation-card.fade-in {
animation: fadeInUp 0.6s ease-out;
}
.similar-product-card.fade-in {
animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Hover Effects */
.recommendation-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
opacity: 0;
transition: opacity 0.3s ease;
border-radius: 15px;
pointer-events: none;
}
.recommendation-card:hover::before {
opacity: 1;
}
.similar-product-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.1));
opacity: 0;
transition: opacity 0.3s ease;
border-radius: 15px;
pointer-events: none;
}
.similar-product-card:hover::before {
opacity: 1;
}