* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
}

a {
    text-decoration: none;
    color: inherit;
}

.app {
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f8fafc;
    padding-bottom: 90px;
}

.topbar {
    background: #0f172a;
    color: #ffffff;
    padding: 22px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
}

.topbar p {
    margin: 4px 0 0;
    color: #cbd5e1;
    font-size: 14px;
}

.login-btn,
.profile-btn {
    background: #ffffff;
    color: #0f172a;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: bold;
}

.location-box {
    margin: 14px;
    padding: 16px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.location-box p {
    margin: 6px 0 12px;
    color: #475569;
    font-size: 14px;
}

.primary-btn {
    width: 100%;
    border: none;
    background: #2563eb;
    color: #ffffff;
    padding: 13px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: bold;
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 0 14px 12px;
    overflow-x: auto;
}

.tabs a {
    flex: 1;
    text-align: center;
    background: #e2e8f0;
    padding: 12px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.tabs a.active {
    background: #0f172a;
    color: #ffffff;
}

.content {
    padding: 0 14px;
}

.empty-state {
    margin-top: 30px;
    padding: 30px 18px;
    background: #ffffff;
    border-radius: 22px;
    text-align: center;
    color: #475569;
}

.empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: #0f172a;
}

.empty-state p {
    margin: 0;
    line-height: 1.5;
}

.post-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-category {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: bold;
    color: #334155;
}

.post-icon {
    font-size: 22px;
}

.post-distance {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 999px;
}

.post-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.post-description {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.45;
}

.post-location {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.image-pending {
    background: #fef3c7;
    color: #92400e;
    padding: 10px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 12px;
}

.post-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
}

.post-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    color: #64748b;
    font-size: 13px;
}

.create-fab {
    position: fixed;
    right: 20px;
    bottom: 88px;
    width: 58px;
    height: 58px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    font-size: 36px;
    line-height: 54px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
    z-index: 20;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 0 10px;
    z-index: 10;
}

.bottom-nav a {
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

.bottom-nav a span {
    display: block;
    font-size: 22px;
    margin-bottom: 2px;
}

.bottom-nav a.active {
    color: #2563eb;
    font-weight: bold;
}

@media (min-width: 721px) {
    .create-fab {
        right: calc(50% - 340px);
    }
}