dateme/frontend/src/styles/discover.css
2025-12-17 06:20:46 +02:00

308 lines
5.6 KiB
CSS

.discover {
max-width: 600px;
margin: 0 auto;
overflow: visible;
}
.discover h1 {
text-align: center;
margin-bottom: 2rem;
color: var(--text-primary);
font-size: 3rem;
font-weight: 800;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
letter-spacing: -0.5px;
}
.card-container {
display: flex;
justify-content: center;
margin-bottom: 2rem;
perspective: 1000px;
position: relative;
min-height: 900px;
}
.profile-card {
background: var(--bg-secondary);
border-radius: 16px;
overflow: hidden;
/* box-shadow: var(--shadow-lg); */
width: 100%;
max-width: 400px;
border: 1px solid var(--border-color);
transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
position: absolute;
z-index: 10;
animation: cardEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cardEnter {
from {
opacity: 0.5;
transform: translateX(100px) scale(0.9);
}
to {
opacity: 1;
}
}
.profile-card:first-of-type {
opacity: 1;
transform: translateY(80px) !important;
}
.profile-card:nth-child(n+2) {
opacity: 1;
}
/* Next cards stacking to the left - only stack forward */
.profile-card:nth-child(2) {
z-index: 5;
transform: translateY(0px) translateX(-30px) scale(0.97);
}
.profile-card:nth-child(3) {
z-index: 4;
transform: translateY(0px) translateX(-55px) scale(0.94);
}
.profile-card:first-of-type:hover {
transform: translateY(80px) scale(1.02) !important;
box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}
.profile-card:first-of-type img {
transition: transform 0.3s ease;
}
.profile-card:first-of-type:hover img {
transform: scale(1.05);
}
.profile-card img {
width: 100%;
height: 450px;
aspect-ratio: 1 / 1.125;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
border-radius: 16px 16px 0 0;
}
.profile-card:hover img {
transform: scale(1.05);
}
.profile-card:not(:first-of-type):hover {
transform: none !important;
}
.profile-card:not(:first-of-type):hover img {
transform: none;
}
.no-photo {
width: 100%;
height: 450px;
background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
font-size: 1.2rem;
border-radius: 16px 16px 0 0;
}
.card-info {
padding: 1.8rem;
background: var(--bg-secondary);
}
.card-info h2 {
margin-bottom: 0.5rem;
color: var(--text-primary);
font-size: 1.5rem;
font-weight: 700;
}
.location {
color: var(--accent-primary);
margin-bottom: 0.8rem;
font-weight: 600;
}
.bio {
color: var(--text-secondary);
margin: 1rem 0;
line-height: 1.6;
}
.interests {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
margin-bottom: 1.5rem;
}
.interests .interest-tag {
background: rgba(0, 212, 255, 0.1);
color: var(--accent-primary);
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.85rem;
border: 1px solid var(--accent-primary);
font-weight: 600;
transition: all 0.3s ease;
}
.interests .interest-tag:hover {
background: var(--accent-primary);
color: var(--bg-primary);
}
.card-actions {
display: flex;
gap: 1rem;
padding: 1.5rem;
border-top: 1px solid var(--border-color);
justify-content: center;
}
.card-actions button {
flex: 1;
padding: 0.9rem;
font-size: 1rem;
border-radius: 8px;
border: none;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.pass-btn {
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1.5px solid var(--border-color);
}
.pass-btn:hover {
background: var(--border-color);
border-color: var(--text-secondary);
transform: translateY(-2px);
}
.pass-btn svg {
width: 20px;
height: 20px;
}
.like-btn {
background: linear-gradient(135deg, var(--accent-secondary), #ff1493);
color: white;
}
.like-btn:hover {
background-color: #c82333;
transform: translateY(-2px);
}
.like-btn .like-button-icon {
width: 20px;
height: 20px;
}
.progress {
text-align: center;
color: #666;
margin-top: 1rem;
}
.discover .empty-state {
text-align: center;
padding: 3rem;
}
.card-wrapper {
position: relative;
margin-bottom: 2rem;
}
.nav-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 1rem;
border-radius: 8px;
font-size: 1.5rem;
cursor: pointer;
transition: all 0.3s ease;
z-index: 100;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
}
.nav-arrow:hover:not(:disabled) {
background: rgba(0, 0, 0, 0.8);
transform: translateY(-50%) scale(1.15);
}
.nav-arrow:disabled {
background: rgba(100, 100, 100, 0.3);
cursor: not-allowed;
opacity: 0.5;
}
.nav-arrow-left {
left: -120px;
}
.nav-arrow-right {
right: -120px;
}
.liked-badge {
position: absolute;
top: 1rem;
right: 1rem;
background: rgba(255, 71, 87, 0.95);
color: white;
padding: 0.8rem 1.2rem;
border-radius: 20px;
font-weight: 600;
font-size: 0.95rem;
box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
z-index: 9;
display: flex;
align-items: center;
gap: 0.5rem;
}
/* .profile-counter {
text-align: center;
color: var(--text-secondary);
font-size: 0.95rem;
margin-top: 1rem;
font-weight: 500;
} */
.like-btn:disabled {
background: rgba(0, 212, 255, 0.3);
cursor: not-allowed;
opacity: 0.6;
}