/* Betsy's Used 80 Series Parts - Main Stylesheet */
/* Matching Venture Unknown aesthetic */

:root {
    --vu-orange: #D2691E;
    --vu-dark-orange: #B8541A;
    --vu-cream: #f2f0d9;
    --vu-light-gray: #E8E8E0;
    --vu-dark-text: #2C2C2C;
    --vu-medium-text: #4A4A4A;
}

body {
    background-color: var(--vu-cream);
    color: var(--vu-dark-text);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation */
.navbar {
    background-color: var(--vu-cream) !important;
    border-bottom: 2px solid var(--vu-orange);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--vu-orange) !important;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-link {
    color: var(--vu-medium-text) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--vu-orange) !important;
}

.nav-link.active {
    color: var(--vu-orange) !important;
}

/* Shop Button */
.navbar-nav {
    align-items: center;
}

.nav-item.shop-link {
    margin-left: auto;
}

.nav-link.shop-button {
    background-color: var(--vu-orange) !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-link.shop-button:hover {
    background-color: var(--vu-dark-orange) !important;
    color: white !important;
}

/* Typography */
h1 {
    color: var(--vu-orange);
    font-weight: bold;
}

h2 {
    color: var(--vu-orange);
    margin-bottom: 1.5rem;
}

h4 {
    color: var(--vu-dark-text);
    font-weight: 600;
}

h5 {
    color: var(--vu-dark-text);
    font-weight: 600;
}

/* Header Section */
header {
    text-align: center;
    padding: 2rem 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header p {
    color: var(--vu-medium-text);
}

/* Logo */
.logo-main {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

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

/* Hero Section */
.hero-section {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--vu-orange);
}

.hero-section h1 {
    color: var(--vu-orange);
}

.hero-section .lead {
    color: var(--vu-dark-text);
}

/* Tables (Index Page) */
table {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table thead {
    background-color: var(--vu-light-gray);
}

table thead th {
    color: var(--vu-dark-text);
    font-weight: 600;
    border-bottom: 2px solid var(--vu-orange);
}

table tbody tr {
    border-bottom: 1px solid var(--vu-light-gray);
}

table tbody td {
    color: var(--vu-dark-text);
    vertical-align: middle;
}

.part-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--vu-light-gray);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.part-image:hover {
    transform: scale(1.05);
    border-color: var(--vu-orange);
}

/* Badges */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: var(--vu-orange) !important;
}

/* Timeline (About Page) */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    border-left: 2px solid var(--vu-light-gray);
    padding-left: 2rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--vu-orange);
}

.timeline-item.disaster:before {
    background-color: #dc3545;
}

/* Quote Box (About Page) */
.quote-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--vu-orange);
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Testimonial Cards (Testimonials Page) */
.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid var(--vu-light-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-card.featured {
    border-left: 5px solid #28a745;
}

.testimonial-card.warning {
    border-left: 5px solid var(--vu-orange);
}

.testimonial-card.critical {
    border-left: 5px solid #dc3545;
}

.rating {
    color: var(--vu-orange);
}

/* Image Modal */
.modal-content {
    background-color: white;
    border: 2px solid var(--vu-orange);
    border-radius: 10px;
}

.modal-header {
    border-bottom: 2px solid var(--vu-light-gray);
}

.modal-title {
    color: var(--vu-orange);
    font-weight: bold;
}

.modal-body {
    padding: 2rem;
}

#modalImage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    color: var(--vu-medium-text);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Typography adjustments */
    header h1 {
        font-size: 2rem;
    }

    .hero-section h1,
    .display-4 {
        font-size: 2rem !important;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    /* Reduce padding on mobile */
    .hero-section {
        padding: 2rem 1rem;
    }

    header {
        padding: 1.5rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Table responsive wrapper */
    .table-responsive {
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Make table cells more compact */
    table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Adjust part images for better touch targets */
    .part-image {
        width: 60px;
        height: 60px;
    }

    /* Timeline adjustments */
    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .testimonial-card h4 {
        font-size: 1.1rem;
    }

    /* Quote boxes */
    .quote-box {
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* Statistics section */
    .row.text-center .col-md-3 {
        margin-bottom: 1.5rem;
    }

    .display-4 {
        font-size: 2.5rem !important;
    }

    /* Navbar improvements */
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    /* Logo adjustments */
    .logo-main {
        max-width: 100%;
    }

    /* Modal adjustments */
    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices - further optimizations */
    header h1 {
        font-size: 1.75rem;
    }

    .hero-section h1,
    .display-4 {
        font-size: 1.75rem !important;
    }

    .hero-section {
        padding: 1.5rem 1rem;
    }

    /* Even smaller part images on very small screens */
    .part-image {
        width: 50px;
        height: 50px;
    }

    /* Compact badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.35em 0.5em;
    }

    /* Stack statistics vertically with less spacing */
    .row.text-center .col-md-3 {
        margin-bottom: 1rem;
    }

    /* Smaller display numbers */
    .display-4 {
        font-size: 2rem !important;
    }

    /* Testimonial ratings */
    .rating {
        font-size: 1.2rem;
    }

    /* Even smaller navbar logo */
    .navbar-brand img {
        height: 30px;
    }
}
