@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #f1f5f9;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.9);
    --blue-gradient: linear-gradient(135deg, #0ea5e9, #2563eb);
    --teal-gradient: linear-gradient(135deg, #14b8a6, #0f766e);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Toggle */
.feed-toggle {
    display: flex;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 0.3rem;
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

.feed-toggle button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.feed-toggle button.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Feed Grid */
.feed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Card */
.post-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.post-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.post-type.rideshare { background: var(--blue-gradient); }
.post-type.accomodation { background: var(--teal-gradient); }

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-body {
    margin-bottom: 1rem;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.location-pill {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 800;
    color: #10b981;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.contact-btn {
    background: #0f172a;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: #334155;
}

.legacy-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.loader {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-weight: 600;
}
