/* ============================================================================
   RestroOS — Public Site Stylesheet
   Classic, elegant restaurant design.
   Colors come from CSS variables set by Settings in the header.
   ============================================================================ */

/* --- Base --- */
:root {
    --primary: #C8102E;
    --secondary: #1A1A2E;
    --accent: #E8A317;
    --text: #212529;
    --text-muted: #6C757D;
    --bg: #FFFFFF;
    --bg-light: #F8F9FA;
    --border: #DEE2E6;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: var(--bg);
}

/* --- Navbar --- */
.navbar { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.navbar-brand { font-weight: 700; color: var(--secondary) !important; }
.nav-link { font-size: 0.9rem; font-weight: 500; }
.nav-link.active { color: var(--primary) !important; }
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: color-mix(in srgb, var(--primary) 85%, black);
    border-color: color-mix(in srgb, var(--primary) 85%, black);
}

/* --- Hero --- */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, color-mix(in srgb, var(--secondary) 80%, var(--primary)) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}
.hero-section h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.hero-section p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; }

/* --- Section Titles --- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin-top: 0.5rem;
}
.section-title.text-center::after { margin: 0.5rem auto 0; }

/* --- Menu Item Cards --- */
.menu-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    background: white;
}
.menu-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.menu-card .card-img-top {
    height: 180px;
    object-fit: cover;
    background: var(--bg-light);
}
.menu-card .card-body { padding: 1rem; }
.menu-card .item-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.menu-card .item-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.menu-card .item-price { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.menu-card .item-price .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 0.5rem;
}
.menu-card .btn-add-cart {
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.85rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.menu-card .btn-add-cart:hover {
    background: var(--primary);
    color: white;
}

/* --- Menu Tags --- */
.item-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
}
.tag-bestseller { background: #FFF3CD; color: #856404; }
.tag-new { background: #D4EDDA; color: #155724; }
.tag-spicy { background: #F8D7DA; color: #721C24; }
.tag-vegetarian { background: #D4EDDA; color: #155724; }
.tag-featured { background: #CCE5FF; color: #004085; }

/* --- Category Filter --- */
.category-filter .btn {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    margin: 0.25rem;
}
.category-filter .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* --- Cart & Checkout --- */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; margin-right: 1rem; }
.cart-summary { background: var(--bg-light); border-radius: var(--radius); padding: 1.5rem; }
.order-type-tabs .btn { min-width: 100px; }
.order-type-tabs .btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* --- Order Tracking --- */
.tracking-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}
.track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.track-step .step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: white;
    z-index: 1;
    transition: var(--transition);
}
.track-step.done .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.track-step.active .step-circle {
    border-color: var(--primary);
    color: var(--primary);
    animation: pulse 1.5s infinite;
}
.track-step .step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}
.track-line {
    width: 60px;
    height: 3px;
    background: var(--border);
    margin: 0 -5px;
    margin-bottom: 1.5rem;
}
.track-line.done { background: var(--primary); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); }
}

/* --- Reservation Form --- */
.time-slot-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.time-slot {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.time-slot:hover, .time-slot.selected {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(200, 16, 46, 0.05);
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 0.5rem; }

/* --- Footer --- */
footer a:hover { color: white !important; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section { padding: 3rem 1rem; }
    .hero-section h1 { font-size: 1.8rem; }
    .menu-card .card-img-top { height: 140px; }
    .tracking-stepper { flex-wrap: wrap; gap: 0.5rem; }
    .track-line { width: 30px; }
}
