/* Global Styles */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #388E3C;
    --accent-color: #8BC34A;
    --dark-color: #2E7D32;
    --light-color: #C8E6C9;
    --text-color: #333;
    --white: #fff;
    --gray: #f5f5f5;
    --dark-gray: #757575;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    color: var(--light-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--light-color);
}

.language-toggle {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* User Type Selection */
.user-selection {
    padding: 3rem 0;
    text-align: center;
}

.user-selection h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.user-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.user-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 300px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

.user-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.user-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.user-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Forms */
.form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    margin-right: 0.5rem;
}

/* Marketplace */
.marketplace {
    padding: 3rem 0;
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.marketplace-header h2 {
    color: var(--dark-color);
}

.marketplace-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.tab {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Bidding Section */
.bidding-section {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.bidding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bidding-timer {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    color: var(--dark-color);
}

.bidding-history {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--gray);
    border-radius: 4px;
}

.bid {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.bid:last-child {
    border-bottom: none;
}

.current-bid {
    font-weight: bold;
    color: var(--primary-color);
}

.bid-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.bid-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--light-color);
    font-size: 0.9rem;
}

/* About Page */
.about-section {
    padding: 3rem 0;
}

.about-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.about-content h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Contact Page */
.contact-section {
    padding: 3rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.contact-info h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .user-cards {
        flex-direction: column;
        align-items: center;
    }

    .marketplace-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .marketplace-tabs {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .bid-form {
        flex-direction: column;
    }
}

/* Hidden elements */
.hidden {
    display: none;
}