mkcart / frontend /src /components /MenuBar.css
Kumar
updated
c2efbe6
.Premium-menu-section {
position: relative;
padding: 100px 0;
background: linear-gradient(135deg, #020a15 0%, #032443 25%, #040e2a 50%, #041428 75%, #170d25 100%);
overflow: hidden;
}
.menu-cosmic-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.cosmic-grid {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: radial-gradient(circle at 1px 1px, rgba(131, 41, 41, 0.15) 1px, transparent 0);
background-size: 50px 50px;
opacity: 0.3;
}
.grid-dot {
position: absolute;
width: 2px;
height: 2px;
background: #667eea;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.floating-elements {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.floating-element {
position: absolute;
width: 60px;
height: 60px;
background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
border-radius: 50%;
filter: blur(20px);
}
.floating-element:nth-child(1) {
top: 10%;
left: 10%;
}
.floating-element:nth-child(2) {
top: 20%;
right: 15%;
}
.floating-element:nth-child(3) {
bottom: 30%;
left: 20%;
}
.floating-element:nth-child(4) {
bottom: 20%;
right: 10%;
}
.floating-element:nth-child(5) {
top: 60%;
left: 50%;
}
.floating-element:nth-child(6) {
top: 40%;
right: 30%;
}
.Premium-menu-container {
position: relative;
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
z-index: 2;
}
.menu-header {
position: relative;
text-align: center;
margin-bottom: 80px;
padding: 40px;
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(30px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 30px;
overflow: hidden;
}
.header-content {
display: flex;
align-items: center;
justify-content: center;
gap: 30px;
position: relative;
z-index: 2;
}
.header-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, #f6d365, #fda085);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
box-shadow: 0 20px 60px rgba(246, 211, 101, 0.4);
}
.header-text {
text-align: left;
}
.section-title {
font-size: 3rem;
font-weight: 800;
margin-bottom: 10px;
line-height: 1.2;
}
.gradient-text-Premium {
background: linear-gradient(135deg, #f6d365 0%, #fda085 25%, #ff9a9e 50%, #a8edea 75%, #fed6e3 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
background-size: 200% 200%;
animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.section-subtitle {
color: rgba(255, 255, 255, 0.7);
font-size: 1.2rem;
font-weight: 300;
margin: 0;
}
.trending-badge {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
background: linear-gradient(135deg, #ff6b6b, #ff8e53);
border-radius: 25px;
color: white;
font-size: 0.9rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}
.header-glow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(246, 211, 101, 0.1), rgba(253, 160, 133, 0.1));
border-radius: 30px;
opacity: 0;
transition: opacity 0.3s ease;
}
.menu-header:hover .header-glow {
opacity: 1;
}
.menu-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
margin-bottom: 80px;
}
.menu-item-wrapper {
position: relative;
}
.Premium-menu-card {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 200px;
padding: 30px 20px;
text-decoration: none;
color: white;
border-radius: 25px;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
cursor: pointer;
overflow: hidden;
transform-style: preserve-3d;
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.Premium-menu-card:hover {
transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
color: white;
text-decoration: none;
}
.card-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 25px;
overflow: hidden;
}
.gradient-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.1;
transition: opacity 0.3s ease;
}
.Premium-menu-card:hover .gradient-bg {
opacity: 0.2;
}
.card-particles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.card-particle {
position: absolute;
width: 3px;
height: 3px;
border-radius: 50%;
filter: blur(1px);
}
.category-badge {
position: absolute;
top: 15px;
right: 15px;
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 15px;
color: white;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
z-index: 3;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.icon-container {
position: relative;
width: 80px;
height: 80px;
margin-bottom: 20px;
z-index: 2;
}
.icon-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.menu-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--icon-color);
filter: drop-shadow(0 0 20px var(--icon-color));
z-index: 2;
}
.icon-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
background: radial-gradient(circle, var(--icon-color), transparent);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
filter: blur(20px);
}
.Premium-menu-card:hover .icon-glow {
opacity: 0.4;
}
.icon-rings {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
}
.ring {
position: absolute;
border: 2px solid transparent;
border-radius: 50%;
border-top-color: var(--icon-color);
opacity: 0.6;
}
.ring-1 {
width: 100px;
height: 100px;
top: 0;
left: 0;
}
.ring-2 {
width: 120px;
height: 120px;
top: -10px;
left: -10px;
border-top-color: rgba(255, 255, 255, 0.3);
}
.card-content {
position: relative;
text-align: center;
z-index: 2;
}
.menu-label {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 8px;
transition: all 0.3s ease;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.menu-description {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 12px;
font-weight: 400;
}
.card-stats {
display: flex;
gap: 15px;
justify-content: center;
margin-top: 10px;
}
.stat {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.9);
}
.card-glow {
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: 27px;
opacity: 0;
filter: blur(20px);
z-index: -1;
}
.card-3d-effect {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 25px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
opacity: 0;
transition: opacity 0.4s ease;
}
.Premium-menu-card:hover .card-3d-effect {
opacity: 1;
}
.ripple-effect {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 20px;
height: 20px;
border-radius: 50%;
pointer-events: none;
z-index: 0;
}
.menu-stats {
position: relative;
padding: 40px;
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(30px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 25px;
overflow: hidden;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
}
.stat-item {
position: relative;
display: flex;
align-items: center;
gap: 20px;
padding: 20px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
transition: all 0.4s ease;
cursor: pointer;
transform-style: preserve-3d;
}
.stat-item:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.stat-icon {
width: 50px;
height: 50px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}
.stat-content {
flex: 1;
}
.stat-value {
font-size: 1.8rem;
font-weight: 800;
background: linear-gradient(135deg, #f6d365, #fda085);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 4px;
}
.stat-label {
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.stat-glow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(19, 92, 134, 0.1), rgba(15, 64, 75, 0.204));
border-radius: 20px;
opacity: 0;
transition: opacity 0.3s ease;
}
.stat-glow {
background: linear-gradient(135deg, rgba(19, 92, 134, 0.719), rgba(9, 51, 60, 0.204));
opacity: 1;
}
@media (max-width: 1024px) {
.menu-grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
}
.header-content {
flex-direction: column;
gap: 20px;
text-align: center;
}
.header-text {
text-align: center;
}
.section-title {
font-size: 2.5rem;
}
}
@media (max-width: 768px) {
.Premium-menu-section {
padding: 60px 0;
}
.Premium-menu-container {
padding: 0 15px;
}
.menu-header {
margin-bottom: 50px;
padding: 30px 20px;
}
.section-title {
font-size: 2rem;
}
.section-subtitle {
font-size: 1rem;
}
.menu-grid {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.Premium-menu-card {
min-height: 200px;
padding: 20px 15px;
}
.icon-container {
width: 60px;
height: 60px;
margin-bottom: 15px;
}
.menu-icon {
width: 28px;
height: 28px;
}
.menu-label {
font-size: 1rem;
}
.stats-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.stat-item {
padding: 15px;
}
.stat-icon {
width: 40px;
height: 40px;
}
.stat-value {
font-size: 1.5rem;
}
}
@media (max-width: 576px) {
.menu-grid {
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.Premium-menu-card {
min-height: 200px;
padding: 15px 10px;
}
.icon-container {
width: 50px;
height: 50px;
margin-bottom: 10px;
}
.menu-label {
font-size: 0.9rem;
}
.category-badge {
top: 10px;
right: 10px;
padding: 4px 8px;
font-size: 0.6rem;
}
.header-icon {
width: 60px;
height: 60px;
}
.trending-badge {
padding: 8px 16px;
font-size: 0.8rem;
}
}
.Premium-menu-card {
will-change: transform;
}
.card-particle {
will-change: transform, opacity;
}
.floating-element {
will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
.floating-element,
.card-particle,
.ring,
.header-icon {
animation: none;
}
.Premium-menu-card {
transition: none;
}
}
.Premium-menu-card:focus {
outline: 2px solid rgba(102, 126, 234, 0.5);
outline-offset: 2px;
}
@media (prefers-contrast: high) {
.Premium-menu-card {
border: 2px solid white;
background: rgba(0, 0, 0, 0.8);
}
.menu-label {
color: white;
}
}