:root {
    --bg-main: #18191a;
    --bg-card: #242526;
    --bg-hover: #3a3b3c;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --accent-blue: #2d88ff;
    --accent-green: #00ff41; /* Sovereign Green */
    --border-color: #3e4042;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* TOP NAVIGATION */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 60px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--accent-green);
}

.search-bar input {
    background-color: var(--bg-hover);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    width: 300px;
    font-size: 0.95rem;
}

.search-bar input:focus {
    outline: 1px solid var(--accent-green);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: rgba(0, 255, 65, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vouch-badge {
    background-color: rgba(0, 255, 65, 0.15);
    color: var(--accent-green);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* LAYOUT */
.layout-container {
    display: flex;
    height: calc(100vh - 60px);
}

/* SIDEBAR */
.sidebar {
    width: 300px;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.category-list li:hover {
    background-color: var(--bg-hover);
}

.category-list li.active {
    background-color: rgba(45, 136, 255, 0.2);
    color: var(--accent-blue);
}

.auth-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.trust-stats .stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 5px 0;
    color: var(--text-primary);
}

.trust-stats .stat span {
    color: var(--text-secondary);
}

/* MAIN FEED */
.feed {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.feed h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

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

.card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
    cursor: pointer;
}

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

.card-image {
    height: 250px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.price-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.card-info {
    padding: 12px;
}

.card-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.seller-trust {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.node-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-green);
}
