:root {
    --card-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --border-light: #f1f5f9;
    --text-muted: #64748b;
    --primary-light: #FFF8E1;
}

body {
    background-color: #f8fafc;
}

/* Hero Strip */
.feed-hero {
    background: linear-gradient(135deg, #0A3319 0%, #166534 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--primary);
}

.feed-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-hero h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    margin-bottom: 5px;
}

.btn-post {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Container */
.feed-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding-bottom: 50px;
}

/* Feed Main */
.feed-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Ad Post Card */
.ad-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}

.ad-card-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.biz-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.biz-info {
    flex: 1;
}

.biz-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.biz-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 16px;
}

.ad-category {
    font-size: 11px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.ad-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.ad-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-card-body {
    padding: 15px 20px;
}

.ad-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.ad-desc {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.6;
}

.ad-expand {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

/* Reaction Bar */
.reaction-bar {
    padding: 10px 20px;
    border-top: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reaction-counts {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.reaction-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-react-trigger {
    margin-left: auto;
    background: none;
    border: 1px solid var(--border-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-react-trigger:hover {
    background: #f8fafc;
    color: var(--primary);
}

/* Emoji Picker (Simple CSS) */
.emoji-picker {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    gap: 8px;
    z-index: 10;
}

.reaction-bar:hover .emoji-picker {
    display: flex;
}

.emoji-btn {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    background: none;
    border: none;
}

.emoji-btn:hover {
    transform: scale(1.3);
}

/* Contact Bar */
.contact-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-light);
}

.btn-contact {
    padding: 12px;
    background: none;
    border: none;
    border-right: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 600;
    color: var(--mid);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-contact:hover {
    background: #f8fafc;
    color: var(--primary);
}

.btn-contact:last-child {
    border-right: none;
}

/* Sidebar */
.sidebar-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.sidebar-box h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: #f1f5f9;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: var(--mid);
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.trending-item:hover {
    background: #f8fafc;
}

.trending-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.trending-text h5 {
    font-size: 13px;
    margin-bottom: 2px;
}

.trending-text span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.modal-card.mini {
    max-width: 400px;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.upload-zone {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: #fcf8ee;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cancel {
    background: #eee;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* Feed Loading */
.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .feed-container {
        grid-template-columns: 1fr;
    }
    .feed-sidebar {
        order: 2;
    }
}
