/* Main CSS styles for Rolling N Dough */

:root {
    --black: #000000;
    --white: #FFFFFF;
    --light-gray: #CCCCCC;
    --royal-blue: #3366FF;
    --gold: #C49A6C;
    --copper: #B87333;
    --error-red: #ff6b6b;
    --success-green: #51cf66;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--royal-blue);
}

.truck-location {
    font-size: 14px;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.truck-location i {
    color: var(--royal-blue);
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--royal-blue);
}

.nav-link.admin {
    background-color: rgba(51, 102, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--royal-blue);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-icon {
    font-size: 48px;
    color: var(--royal-blue);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-title span {
    color: var(--royal-blue);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--light-gray);
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--royal-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 16px;
}

.cta-button i {
    margin-right: 8px;
}

.cta-button:hover {
    background-color: #2855e0;
}

/* Order Tracking Section */
.order-tracking {
    background-color: rgba(51, 102, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.order-tracking-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.order-tracking-title i {
    font-size: 24px;
    color: var(--royal-blue);
    margin-right: 10px;
}

.order-tracking-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
}

.order-tracking p {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.order-tracking-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.phone-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
}

.track-button {
    background-color: var(--royal-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.track-button:hover {
    background-color: #2855e0;
}

/* Pizza Builder Section */
.pizza-builder {
    margin-bottom: 60px;
}

.builder-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.builder-title i {
    font-size: 24px;
    color: var(--royal-blue);
    margin-right: 10px;
}

.builder-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
}

.builder-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--royal-blue);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
}

.form-input::placeholder {
    color: rgba(204, 204, 204, 0.5);
}

/* Slice Options */
.slice-options {
    margin-bottom: 20px;
}

.slice-options-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.slice-options-title i {
    font-size: 18px;
    color: var(--royal-blue);
    margin-right: 8px;
}

.slice-options-title h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
}

.slice-option-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.slice-option-item {
    position: relative;
}

.slice-option-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.slice-option-label {
    display: block;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(204, 204, 204, 0.2);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.slice-option-input:checked + .slice-option-label {
    background-color: rgba(51, 102, 255, 0.1);
    border-color: var(--royal-blue);
}

.slice-option-label::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    transition: all 0.3s;
}

.slice-option-input:checked + .slice-option-label::before {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.slice-option-input:checked + .slice-option-label::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    color: var(--white);
    font-size: 14px;
    text-align: center;
    line-height: 20px;
}

.slice-name {
    display: block;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.slice-price {
    display: block;
    color: var(--royal-blue);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

.slice-description {
    display: block;
    color: var(--light-gray);
    font-size: 14px;
}

/* Slice Topping Options */
.slice-topping-options {
    background-color: rgba(51, 102, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: none; /* Hidden by default, shown when slice+drink combo is selected */
}

.slice-topping-options h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Option Groups */
.option-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.option-item {
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-label {
    display: block;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(204, 204, 204, 0.2);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-input:checked + .option-label {
    background-color: rgba(51, 102, 255, 0.1);
    border-color: var(--royal-blue);
}

.option-input:disabled + .option-label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkbox Style */
.option-item:not(.crust-option):not(.sauce-option) .option-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid var(--light-gray);
    border-radius: 3px;
    vertical-align: middle;
    transition: all 0.3s;
}

.option-item:not(.crust-option):not(.sauce-option) .option-input:checked + .option-label::before {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.option-item:not(.crust-option):not(.sauce-option) .option-input:checked + .option-label::after {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 12px;
    color: var(--white);
    font-size: 12px;
}

/* Radio Button Style */
.crust-option .option-label::before,
.sauce-option .option-label::before,
.topping-option .option-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    vertical-align: middle;
    transition: all 0.3s;
}

.crust-option .option-input:checked + .option-label::before,
.sauce-option .option-input:checked + .option-label::before,
.topping-option .option-input:checked + .option-label::before {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.crust-option .option-input:checked + .option-label::after,
.sauce-option .option-input:checked + .option-label::after,
.topping-option .option-input:checked + .option-label::after {
    content: '•';
    position: absolute;
    left: 17px;
    top: 8px;
    color: var(--white);
    font-size: 20px;
}

/* Drink Options */
.drink-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.drink-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(204, 204, 204, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.drink-option-info {
    display: flex;
    align-items: center;
}

.quantity-control {
    display: none;
    align-items: center;
    gap: 5px;
}

.quantity-control.active {
    display: flex;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: rgba(51, 102, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: rgba(51, 102, 255, 0.4);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--white);
    font-size: 14px;
}

/* Special Instructions */
.special-instructions-container {
    margin-top: 20px;
}

.special-instructions-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.special-instructions {
    width: 100%;
    height: 100px;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
    resize: vertical;
}

.special-instructions-helper {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--light-gray);
}

/* Add to Order Button */
.add-to-order-container {
    margin-top: 30px;
    text-align: center;
}

.add-to-order-button {
    background-color: var(--royal-blue);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-order-button:hover {
    background-color: #2855e0;
}

.add-to-order-button i {
    margin-right: 8px;
}

/* Item Price Display */
.item-price-container {
    margin-top: 20px;
    text-align: right;
}

.item-price-label {
    font-size: 16px;
    color: var(--light-gray);
}

.item-price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--royal-blue);
}

/* Order Summary Section */
.order-summary-section {
    background-color: rgba(51, 102, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.order-summary-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.order-summary-title i {
    font-size: 24px;
    color: var(--royal-blue);
    margin-right: 10px;
}

.order-summary-title h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
}

.empty-order-message {
    text-align: center;
    color: var(--light-gray);
    padding: 20px;
}

.order-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-item-name {
    font-weight: 700;
    font-size: 18px;
}

.order-item-price {
    font-weight: 700;
    color: var(--royal-blue);
}

.remove-order-item {
    background-color: rgba(255, 0, 0, 0.2);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-order-item:hover {
    background-color: rgba(255, 0, 0, 0.4);
}

.order-item-details {
    color: var(--light-gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.order-item-instructions {
    font-style: italic;
    color: var(--light-gray);
    font-size: 14px;
    border-left: 2px solid var(--royal-blue);
    padding-left: 10px;
}

.order-total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(204, 204, 204, 0.2);
}

.order-total-label {
    font-size: 18px;
    font-weight: 700;
}

.order-total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--royal-blue);
}

.order-discount-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(204, 204, 204, 0.2);
    color: var(--success-green);
}

.order-discount-label {
    font-size: 16px;
    font-weight: 600;
}

.order-discount-value {
    font-size: 18px;
    font-weight: 700;
}

/* Place Order Button */
.place-order-container {
    margin-top: 30px;
    text-align: center;
}

.place-order-button {
    background-color: var(--royal-blue);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 400px;
}

.place-order-button:hover {
    background-color: #2855e0;
}

.place-order-button:disabled {
    background-color: rgba(51, 102, 255, 0.5);
    cursor: not-allowed;
}

.place-order-button i {
    margin-right: 8px;
}

/* Marketing Opt-Out */
.marketing-opt-out {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.opt-out-checkbox {
    margin-right: 10px;
}

.opt-out-label {
    font-size: 14px;
    color: var(--light-gray);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--royal-blue);
}

.footer-text {
    color: var(--light-gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--light-gray);
    font-size: 20px;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--royal-blue);
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    color: var(--light-gray);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(204, 204, 204, 0.1);
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background-color: rgba(51, 102, 255, 0.9);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.notification.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .truck-location {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .nav-links {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .slice-option-group {
        grid-template-columns: 1fr;
    }
    
    .option-group {
        grid-template-columns: 1fr;
    }
    
    .order-tracking-form {
        flex-direction: column;
    }
    
    .track-button {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .builder-title h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .slice-name {
        font-size: 16px;
    }
    
    .slice-price {
        font-size: 14px;
    }
    
    .slice-description {
        font-size: 12px;
    }
    
    .order-item-name {
        font-size: 16px;
    }
    
    .order-total-value {
        font-size: 20px;
    }
    
    .place-order-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}
