34968-vm/assets/css/main.css
Flatlogic Bot ab1ae8b39b V2
2025-10-14 23:38:25 +00:00

766 lines
15 KiB
CSS

/* Global Styles & Variables */
:root {
--turquoise: #40E0D0;
--green: #228B22;
--coral: #FF6B6B;
--white: #FFFFFF;
--off-white: #f8f9fa;
--text-color: #333;
--light-gray: #f2f2f2;
--medium-gray: #ccc;
--dark-gray: #555;
--font-heading: 'Inter', sans-serif;
--font-body: 'Open Sans', sans-serif;
--shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
--border-radius: 16px;
}
body {
font-family: var(--font-body);
color: var(--text-color);
background-color: var(--white); /* Changed to white for a cleaner base */
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
font-weight: 600;
letter-spacing: 0.5px; /* Reduced for better readability */
}
a {
text-decoration: none;
color: var(--coral);
transition: color 0.3s ease;
}
a:hover {
color: var(--turquoise);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Header styles */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 30px;
background-color: var(--white);
border-bottom: 1px solid var(--light-gray);
position: sticky;
top: 0;
z-index: 100;
}
.logo {
font-family: var(--font-heading);
font-size: 28px;
font-weight: 700;
color: var(--text-color);
}
.address-container {
cursor: pointer;
padding: 8px 12px;
border-radius: 20px;
background-color: var(--off-white);
transition: background-color 0.3s ease;
}
.address-container:hover {
background-color: var(--light-gray);
}
.address-display {
font-size: 14px;
font-weight: 500;
}
.user-actions {
display: flex;
align-items: center;
}
.user-actions a {
margin-left: 20px;
font-weight: 600;
font-size: 15px;
}
/* Modal styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.5);
backdrop-filter: blur(5px);
}
.modal-content {
background-color: var(--white);
margin: 15% auto;
padding: 30px;
border: none;
width: 90%;
max-width: 500px;
border-radius: var(--border-radius);
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
text-align: center;
position: relative;
}
.close-button {
color: var(--medium-gray);
position: absolute;
top: 15px;
right: 20px;
font-size: 32px;
font-weight: bold;
transition: color 0.3s ease;
}
.close-button:hover,
.close-button:focus {
color: var(--dark-gray);
text-decoration: none;
cursor: pointer;
}
#modal-address-input {
width: calc(100% - 40px);
padding: 12px;
margin-top: 10px;
margin-bottom: 20px;
border: 1px solid var(--light-gray);
border-radius: 8px;
font-size: 16px;
}
#save-address-button {
background-color: var(--coral);
color: white;
padding: 12px 25px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
transition: background-color 0.3s ease;
}
#save-address-button:hover {
background-color: #ff4f4f;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.5s ease-in-out forwards;
}
/* Hero Section */
.hero {
position: relative;
height: 400px;
background-image: url('../pasted-20251014-230507-170c4564.jpg');
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: var(--white);
margin-bottom: 40px;
}
.hero::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
}
.hero-content {
position: relative;
z-index: 1;
max-width: 600px;
}
.hero h1 {
font-size: 3rem;
font-weight: 700;
margin-bottom: 1rem;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.search-bar {
width: 100%;
padding: 1rem;
font-size: 1rem;
border-radius: 50px;
border: none;
box-shadow: var(--shadow-soft);
padding-left: 3rem;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-search'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: 1rem center;
}
/* Restaurant Grid */
.page-title {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1.5rem;
}
.restaurant-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 2rem;
}
.restaurant-card {
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow-soft);
overflow: hidden;
transition: all 0.3s ease-in-out;
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;
}
.restaurant-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.restaurant-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.restaurant-card-content {
padding: 1.5rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.restaurant-card-content h3 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.restaurant-card-content p {
color: var(--dark-gray);
font-size: 0.95rem;
margin-bottom: 0.5rem;
}
.rating-display {
display: flex;
align-items: center;
font-size: 1rem;
font-weight: 600;
color: var(--text-color);
}
.rating-display .star {
color: #FFC107;
margin-right: 0.25rem;
}
.rating-display .rating-count {
font-size: 0.9rem;
color: var(--dark-gray);
margin-left: 0.5rem;
font-weight: 400;
}
footer {
text-align: center;
padding: 3rem 0;
margin-top: 3rem;
background-color: var(--off-white);
border-top: 1px solid var(--light-gray);
}
/* Restaurant Menu Page */
.restaurant-hero-menu {
position: relative;
height: 300px;
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 2rem;
color: var(--white);
border-radius: var(--border-radius);
overflow: hidden;
margin-bottom: 2rem;
}
.restaurant-hero-menu::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}
.restaurant-hero-menu-content {
position: relative;
z-index: 1;
}
.restaurant-hero-menu h1 {
font-size: 2.5rem;
font-weight: 700;
margin: 0 0 0.5rem;
text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.restaurant-hero-menu p {
font-size: 1rem;
margin: 0.25rem 0;
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
/* Menu Grid */
.menu-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
}
.menu-item-card {
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow-soft);
overflow: hidden;
transition: all 0.3s ease-in-out;
display: flex;
flex-direction: column;
}
.menu-item-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.menu-item-card img {
width: 100%;
height: 180px;
object-fit: cover;
}
.menu-item-card-content {
padding: 1.5rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.menu-item-card-content h3 {
font-size: 1.15rem;
font-weight: 700;
margin: 0 0 0.5rem;
}
.menu-item-card-content .description {
font-size: 0.9rem;
color: var(--dark-gray);
margin-bottom: 1rem;
flex-grow: 1;
}
.menu-item-card-content .price {
font-size: 1.1rem;
font-weight: 700;
color: var(--text-color);
align-self: flex-end;
}
/* Rating Section on Menu Page */
.rating-form-container {
background-color: var(--white);
padding: 2rem;
border-radius: var(--border-radius);
box-shadow: var(--shadow-soft);
margin-top: 2rem;
}
.rating-form-container h2 {
margin-top: 0;
}
.rate-form .stars {
font-size: 2rem;
color: var(--medium-gray);
cursor: pointer;
direction: rtl;
display: inline-block;
}
.rate-form .stars > label {
color: var(--medium-gray);
transition: color 0.2s;
}
.rate-form .stars > input {
display: none;
}
.rate-form .stars > input:checked ~ label,
.rate-form .stars:not(:hover) > input:checked ~ label {
color: #FFC107 !important;
}
.rate-form .stars > label:hover,
.rate-form .stars > label:hover ~ label {
color: #FFC107 !important;
}
.rate-form button {
background-color: var(--coral);
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
margin-top: 1rem;
transition: background-color 0.3s ease;
}
.rate-form button:hover {
background-color: #ff4f4f;
}
/* Auth Forms */
.auth-container {
max-width: 450px;
margin: 4rem auto;
padding: 3rem;
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow-soft);
}
.auth-container h1 {
text-align: center;
margin-bottom: 2rem;
font-size: 2rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--dark-gray);
}
.form-group input {
width: 100%;
padding: 0.8rem 1rem;
border: 1px solid var(--medium-gray);
border-radius: 8px;
box-sizing: border-box;
font-size: 1rem;
transition: border-color 0.3s;
}
.form-group input:focus {
outline: none;
border-color: var(--coral);
}
.btn-submit {
width: 100%;
padding: 0.9rem;
border: none;
border-radius: 8px;
background-color: var(--coral);
color: white;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s;
}
.btn-submit:hover {
background-color: #ff4f4f;
}
.form-footer {
text-align: center;
margin-top: 1.5rem;
}
.form-footer a {
color: var(--coral);
font-weight: 600;
text-decoration: none;
}
.form-footer a:hover {
text-decoration: underline;
}
/* Add to Cart Form */
.add-to-cart-form {
margin-top: 1rem;
}
.add-to-cart-form .form-row {
display: flex;
align-items: center;
}
.quantity-input {
width: 60px;
padding: 0.5rem;
text-align: center;
border: 1px solid var(--medium-gray);
border-radius: 8px;
font-size: 1rem;
margin-right: 0.5rem;
}
.add-to-cart-btn {
flex-grow: 1;
background-color: var(--coral);
color: white;
border: none;
padding: 0.6rem 1rem;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
text-transform: uppercase;
transition: background-color 0.3s;
}
.add-to-cart-btn:hover {
background-color: #ff4f4f;
}
/* Cart Icon */
.cart-icon {
position: relative;
display: inline-block;
margin-right: 20px;
color: var(--text-color);
}
.cart-item-count {
position: absolute;
top: -8px;
right: -8px;
background-color: var(--coral);
color: white;
border-radius: 50%;
padding: 2px 6px;
font-size: 12px;
font-weight: bold;
}
/* Cart Page */
.cart-table {
width: 100%;
border-collapse: collapse;
margin: 2rem 0;
box-shadow: var(--shadow-soft);
border-radius: var(--border-radius);
overflow: hidden;
}
.cart-table thead {
background-color: var(--off-white);
}
.cart-table th, .cart-table td {
padding: 1rem 1.5rem;
text-align: left;
}
.cart-table th {
font-weight: 600;
font-size: 0.9rem;
text-transform: uppercase;
color: var(--dark-gray);
}
.cart-table tbody tr {
border-bottom: 1px solid var(--light-gray);
}
.cart-table tbody tr:last-child {
border-bottom: none;
}
.cart-table .update-form {
display: flex;
align-items: center;
}
.cart-table .quantity-input {
width: 50px;
margin-right: 0.5rem;
}
.cart-table .update-btn {
background-color: var(--turquoise);
color: white;
border: none;
padding: 0.4rem 0.8rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
font-weight: 600;
transition: background-color 0.3s;
}
.cart-table .update-btn:hover {
background-color: #38d8c9;
}
.cart-table .remove-link {
color: var(--coral);
font-weight: 600;
font-size: 0.9rem;
}
.cart-total {
text-align: right;
margin-top: 1.5rem;
font-size: 1.25rem;
font-weight: 700;
}
.cart-actions {
display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 2rem;
gap: 1rem;
}
.clear-cart-btn, .checkout-btn {
padding: 0.8rem 1.5rem;
border-radius: 8px;
font-weight: 600;
text-transform: uppercase;
font-size: 0.9rem;
transition: all 0.3s;
}
.clear-cart-btn {
background-color: transparent;
border: 2px solid var(--medium-gray);
color: var(--dark-gray);
}
.clear-cart-btn:hover {
background-color: var(--light-gray);
border-color: var(--dark-gray);
}
.checkout-btn {
background-color: var(--coral);
color: white;
border: 2px solid var(--coral);
}
.checkout-btn:hover {
background-color: #ff4f4f;
border-color: #ff4f4f;
}
/* Checkout Page */
.checkout-summary {
max-width: 700px;
margin: 2rem auto;
padding: 2rem;
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow-soft);
}
.checkout-summary h2 {
text-align: center;
margin-bottom: 2rem;
}
.checkout-form {
text-align: center;
margin-top: 2rem;
}
/* Order Confirmation Page */
.order-confirmation {
max-width: 600px;
margin: 4rem auto;
padding: 3rem;
text-align: center;
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow-soft);
}
.order-confirmation h1 {
color: var(--green);
font-size: 2.5rem;
margin-bottom: 1rem;
}
.order-confirmation p {
font-size: 1.1rem;
color: var(--dark-gray);
margin-bottom: 2rem;
}
.order-confirmation .btn {
background-color: var(--coral);
color: white;
padding: 0.8rem 2rem;
border-radius: 8px;
font-weight: 600;
text-transform: uppercase;
font-size: 1rem;
transition: background-color 0.3s;
}
.order-confirmation .btn:hover {
background-color: #ff4f4f;
}