/* ========================================
   ITALIAN PIZZA - CUSTOM STYLES
   Theme: Red, Green, White (Italian Flag)
   ======================================== */

/* CSS Variables for Light and Dark Theme */
:root {
    --primary-color: #C1272D; /* Italian Red */
    --secondary-color: #009246; /* Italian Green */
    --accent-color: #F1F1F1; /* Italian White */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --success: #28A745;
    --warning: #FFC107;
}

[data-theme="dark"] {
    --primary-color: #E63946;
    --secondary-color: #06D6A0;
    --accent-color: #1A1A1A;
    --text-dark: #F1F1F1;
    --text-light: #B0B0B0;
    --bg-light: #1E1E1E;
    --bg-secondary: #2A2A2A;
    --border-color: #3A3A3A;
    --shadow: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    background: var(--bg-light);
    box-shadow: 0 2px 10px var(--shadow);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(193, 39, 45, 0.1);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.theme-toggle {
    background: var(--secondary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.pizza-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

.pizza-spin {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 30px dashed rgba(255, 255, 255, 0.3);
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--warning);
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.floating-pizza {
    animation: float 3s ease-in-out infinite;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.featured-section,
.offers-section,
.about-section,
.reviews-section,
.contact-section {
    padding: 80px 0;
}

/* ========================================
   PIZZA CARDS
   ======================================== */
.pizza-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px var(--shadow);
}

.pizza-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.pizza-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pizza-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.veg-badge {
    background: var(--secondary-color);
}

.non-veg-badge {
    background: var(--primary-color);
}

.pizza-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pizza-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pizza-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pizza-card .btn {
    width: 100%;
    border-radius: 25px;
    padding: 0.6rem;
    font-weight: 600;
}

/* ========================================
   OFFER CARDS
   ======================================== */
.offer-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: scale(1.05);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--warning);
    color: var(--text-dark);
    padding: 2rem 1rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.offer-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.offer-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.offer-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    border: 2px dashed white;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
}

/* ========================================
   REVIEW CARDS
   ======================================== */
.review-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-stars {
    color: var(--warning);
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer h5 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.reviewer span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.contact-item h5 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.8rem;
    border-radius: 8px;
}
.contact-form label {
    color: #D4AF37 !important; /* Gold labels for luxury look */
    font-weight: 500;
    margin-bottom: 5px;
}
.contact-form .form-control::placeholder {
    color: var(--text-light) !important; /* Light-ah irukura grey color rendu mode-layum theriyum */
    opacity: 0.7;
}
.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(193, 39, 45, 0.25);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

.footer h4, .footer h5 {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

/* ========================================
   MENU PAGE
   ======================================== */
.category-filter {
    margin-bottom: 3rem;
}

.btn-category {
    margin: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-category:hover,
.btn-category.active {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   CUSTOMIZATION MODAL
   ======================================== */
.modal-content {
    background: var(--bg-light);
    color: var(--text-dark);
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.customize-section {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.customize-section h6 {
    font-weight: 600;
    color: var(--text-dark);
}

.size-options .form-check,
.toppings-grid .form-check {
    margin-bottom: 0.8rem;
}

.form-check-label {
    cursor: pointer;
    color: var(--text-dark);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.quantity-selector .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.quantity-selector .form-control {
    width: 80px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.price-display {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* ========================================
   CART PAGE
   ======================================== */
.cart-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.cart-item-customization {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-control button {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-quantity-control button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-quantity-control span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-item:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart i {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-cart h3 {
    margin-bottom: 1rem;
}

.cart-summary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.coupon-section .input-group .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.coupon-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.coupon-tag {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.coupon-tag:hover {
    background: var(--primary-color);
    color: white;
}

.price-breakdown {
    margin-top: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.price-row.total {
    font-size: 1.3rem;
    padding-top: 0.8rem;
}

.delivery-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.delivery-info i {
    color: var(--secondary-color);
}

/* ========================================
   CHECKOUT FORM
   ======================================== */
.checkout-summary {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
}

.summary-items {
    max-height: 200px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.payment-methods .form-check {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.payment-methods .form-check:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(193, 39, 45, 0.1);
}

.payment-methods i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* ========================================
   SUCCESS MODAL
   ======================================== */
.success-animation {
    font-size: 5rem;
    color: var(--success);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.order-id {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #a01f24;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 39, 45, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-success {
    color: var(--success) !important;
}