/* Caprigy Pizzeria - Pizza Colors Theme */

:root {
    /* Pizza Colors - Томатний червоний */
    --primary-red: #d84315;
    --primary-red-hover: #c62828;
    --primary-red-light: #e53935;

    /* Сирний жовто-помаранчевий */
    --cheese-yellow: #ffb74d;
    --cheese-yellow-light: #ffd54f;
    --cheese-orange: #ffa726;

    /* Базиліковий зелений (для акцентів) */
    --basil-green: #4caf50;
    --basil-green-dark: #388e3c;

    /* Коричневе тісто */
    --dough-brown: #8d6e63;
    --dough-brown-light: #a1887f;
    --dough-crust: #d4a574;

    /* Фонові кольори */
    --background-cream: #fff8e1;
    --background-lighter: #fffbf0;
    --background-white: #ffffff;

    /* Нейтральні */
    --gray: #b7b7b7;
    --dark: #3a3d49;
    --white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    background-color: var(--background-cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-hover) 100%);
    border-color: var(--primary-red);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(216, 67, 21, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-hover) 0%, var(--primary-red-light) 100%);
    border-color: var(--primary-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(216, 67, 21, 0.4);
}

.btn-outline-primary {
    color: var(--primary-red);
    border-color: var(--primary-red);
    border-width: 2px;
    font-weight: 700;
    border-radius: 30px;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(216, 67, 21, 0.85) 0%, rgba(255, 183, 77, 0.75) 100%), url('../images/image1530.jpg') center/cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 213, 79, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(198, 40, 40, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* Cards */
.card {
    border: 3px solid transparent;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: linear-gradient(135deg, var(--white) 0%, var(--background-lighter) 100%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--cheese-yellow) 50%, var(--basil-green) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(216, 67, 21, 0.25);
    border-color: var(--cheese-yellow);
}

.card-img-top {
    border-radius: 18px 18px 0 0;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.card-body {
    padding: 25px;
    position: relative;
}

.card-title {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: 'Oswald', sans-serif;
}

.card-title i {
    color: var(--cheese-orange);
}

.card-text {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

/* Special Card Styles */
.card.highlight {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, var(--background-cream) 0%, var(--cheese-yellow-light) 100%);
}

.card.highlight .card-title {
    color: var(--primary-red-hover);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

/* Table Styling */
.table-custom {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border: 2px solid var(--cheese-yellow-light);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
}

.table-custom thead th {
    padding: 18px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.table-custom tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--background-cream);
    font-size: 1rem;
}

.table-custom tbody tr {
    transition: all 0.3s ease;
}

.table-custom tbody tr:hover {
    background: linear-gradient(90deg, var(--background-cream) 0%, var(--cheese-yellow-light) 8%, var(--background-cream) 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 183, 77, 0.3);
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

/* Pizza Name Styling */
.pizza-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Price Styling */
.price-cell {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--basil-green);
    white-space: nowrap;
}

.price-cell .old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1rem;
    margin-right: 8px;
}

/* Ingredients Styling */
.ingredients {
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

/* Size Badges */
.size-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--cheese-orange) 0%, var(--cheese-yellow) 100%);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 2px;
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

/* Icon Boxes */
.icon-box {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--background-lighter) 100%);
    border-radius: 15px;
    transition: all 0.3s;
    height: 100%;
    border: 2px solid transparent;
}

.icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(216, 67, 21, 0.2);
    border-color: var(--cheese-yellow);
    background: linear-gradient(135deg, var(--background-lighter) 0%, var(--cheese-yellow-light) 100%);
}

.icon-box i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--cheese-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.icon-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dough-brown) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--cheese-yellow) 50%, var(--basil-green) 100%);
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--cheese-yellow-light);
}

.footer a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--cheese-yellow);
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(216, 67, 21, 0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--cheese-orange) 0%, var(--cheese-yellow) 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 183, 77, 0.4);
}

/* Badge Styling */
.badge-custom {
    background: linear-gradient(135deg, var(--basil-green) 0%, var(--basil-green-dark) 100%);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Section Title Enhancements */
.section-title {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--cheese-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menu Section Enhancements */
#menu .card {
    position: relative;
}

#menu .card .card-body {
    background: linear-gradient(180deg, transparent 0%, var(--background-lighter) 100%);
}

#menu .card .price-cell {
    font-size: 1.2rem;
}

/* Menu Card Price Badge */
.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(216, 67, 21, 0.4);
    z-index: 10;
}

/* Table Responsive Enhancement */
.table-responsive {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Navbar Enhancement */
.navbar {
    background: linear-gradient(180deg, var(--white) 0%, var(--background-lighter) 100%);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-red) 0%, var(--cheese-yellow) 50%, var(--basil-green) 100%) 1;
}

/* Background Sections */
.bg-white {
    background-color: var(--background-lighter) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}
