/* Base Styles */
:root {
    --primary-color: #005F73;
    --secondary-color: #FF6B35;
    --accent-color: #238ff5;
    --light-color: #ecf0f1;
    --background-color: #f2f4f7;
    --dark-color: #2c3e50;
    --sand-color: #FFD700;
    --ocean-color: #a6dcef;
    --coral-color: #ff7e67;
    --text-color: #34495e;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
}

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

body {
    font-family: 'Helvetica', sans-serif;
    color: var(--text-color);
    background-color: white;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button, .btn-post {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    border-top: solid 6px var(--accent-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 0;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover:after, nav a.active:after {
    width: 100%;
}

.btn-post {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.btn-post:hover {
    background-color: #e86e5a;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--ocean-color), var(--light-color));
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-color);
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 0 0;
}

#search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

#search-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0;
    font-weight: 500;
    font-size: 1rem;
}

#search-btn:hover {
    background-color: var(--secondary-color);
}

/* Filters Section */
.filters {
    background-color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.filters .container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
}

.filter-group select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    min-width: 150px;
}

/* Marketplace Section */
.marketplace {
    padding: 50px 0;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.item-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.item-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.item-details {
    padding: 20px;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--coral-color);
    margin-bottom: 10px;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #777;
}

.item-category, .item-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.image-list, #image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.loading, .no-images, .error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.loading {
    color: var(--primary-color);
}

.error {
    color: var(--secondary-color);
}

.no-images {
    color: #777;
}

.image-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 250px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 12px;
    text-align: left;
}

.image-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-date {
    font-size: 0.8rem;
    color: #777;
    font-weight: 400;
}

/* Full-screen image styling */
#image-detail-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
        height: 80vh;
    /* background-color: #000; */
    margin: 0;
}

#image-detail {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.menu-cards {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.menu-cards .container {
    text-align: center;
}

.menu-cards h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 17%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}

.card p {
    font-size: 1rem;
    color: #666;
    padding: 0 10px 20px;
}
/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--light-color);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--coral-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .filters .container {
        justify-content: center;
    }
    .image-list, #image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px 0;
    }

    .image-card {
        width: 100%;
        min-width: 150px;
    }

    .image-thumbnail {
        height: 120px;
    }

    .image-info {
        padding: 8px;
    }

    .image-name {
        font-size: 0.8rem;
    }

    .image-date {
        font-size: 0.7rem;
    }
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 44vw);
        gap: 15px;
    }

    .card {
        width: 100%; /* Full width of the container */
        /* padding: 10px; */
    }

    .card img {
        height: auto; /* Adjust image height for smaller screens */
    }

    .card h3 {
        font-size: 1.2rem; /* Slightly smaller font size */
    }

    .card p {
        font-size: 0.9rem; /* Reduce description font size */
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
    }
    
    #search-input, #search-btn {
        border-radius: var(--border-radius);
    }
    
    #search-btn {
        margin-top: 10px;
        padding: 10px;
    }
}