/* /selling_website/app/static/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&family=Inter:wght@400;600&display=swap');

/* General Body Styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #FDF8F0; /* Warm off-white background */
    color: #333333; /* Soft dark gray text */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Header */
.header {
    background-color: transparent; /* No background needed on header itself */
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: #D97706; /* Warm accent color */
}

.header .tagline {
    margin-top: 5px;
    font-size: 1.1rem;
    color: #555;
}

/* Navigation Bar */
.navbar {
    background: #FFFFFF;
    padding: 10px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    padding: 8px 2px;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #333;
    background-color: #FDF8F0;
}
.navbar a.active {
    background-color: #D97706;
    color: #FFFFFF;
}

/* Item Grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.item-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.item-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #e9ecef; /* Placeholder color */
}

.item-card-content {
    padding: 20px;
}

.item-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #333;
}

.item-card .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #16A34A; /* Rich green */
}

/* Item Detail Page */
.item-detail-container {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.item-detail-title {
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.item-detail-title h2 {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.2;
}

.item-detail-title .price {
    font-size: 2rem;
    font-weight: 700;
    color: #16A34A;
    margin-top: 10px;
    display: block;
}

.item-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.image-gallery {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

/* Contact Info Section */
.contact-section {
    background-color: #FFFBEB; /* Lighter version of accent */
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    text-align: center;
}

.contact-section h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.contact-section a {
    display: inline-block;
    background-color: #D97706;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.contact-section a:hover {
    background-color: #b45f06;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* ========================================= */
/* Mobile Responsive Styles         */
/* ========================================= */

/* This applies the styles only to screens 768px or narrower */
@media (max-width: 768px) {

    /* Make the main container use more screen width on mobile */
    .container {
        padding: 0 15px;
    }

    /* Reduce the size of the main title */
    .header h1 {
        font-size: 2.5rem;
    }

    /* Adjust padding on the intro section */
    #moving-sale {
        padding: 1.5rem 1rem;
    }

    /* Stack navigation links vertically instead of side-by-side */
    .navbar a {
        display: block; /* Make each link take up its own line */
        margin: 5px 0;  /* Add some space between the stacked links */
        text-align: center;
    }

    /* Force the item grid into a single column on mobile */
    .item-grid {
        grid-template-columns: 1fr; /* Only one column */
    }

    /* Reduce font size on the item detail page for better fit */
    .item-detail-title h2 {
        font-size: 1.8rem;
    }
    .item-detail-title .price {
        font-size: 1.5rem;
    }
    
    /* Stack the contact buttons to make them easier to tap */
    .contact-section a {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}