:root {
    --primary: #0ce6a4;
    /* Friendly Orange */
    --primary-dark: #0ce6a4;
    --secondary: #004E89;
    /* Trusted Blue */
    --accent: #FFD166;
    /* Warm Yellow */
    --bg-light: #F7F9FC;
    --card-bg: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border: #E1E8F0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 80px;
    /* Compensate for fixed header */
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: padding 0.3s ease, background 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 0.8rem 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-container img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: linear-gradient(135deg, #FFF5F2 0%, #F0F7FF 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Listing Cards */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.card-wanted {
    border-color: #FFE8E0;
    background: #FFF9F7;
}

.card-available {
    border-color: #E0F2FE;
    background: #F8FCFF;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.card-content {
    padding: 1.5rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-wanted {
    background: #FFE8E0;
    color: var(--primary);
}

.badge-available {
    background: #E0F2FE;
    color: var(--secondary);
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-grid > div:first-child {
    flex: 2;
    max-width: 500px;
}

.footer-grid > div:last-child {
    flex: 1;
    min-width: 200px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1.5rem 5%;
        gap: 1.5rem;
    }
    
    header nav {
        width: 100%;
        margin-left: 0;
    }
    
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    header nav ul li {
        margin-left: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .listing-detail-grid {
        grid-template-columns: 1fr !important;
    }
    
    .post-form-grid {
        grid-template-columns: 1fr !important;
    }
}