:root {
    --bg-main: #fcfcfc;
    --bg-card: #ffffff;
    --text-main: #262626;
    --text-muted: #8e8e8e;
    --border: #dbdbdb;
    --border-light: #efefef;
    --link-color: #00376b;
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --card-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background: var(--bg-main); color: var(--text-main); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Top Nav */
.nav { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 0 20px; position: sticky; top: 0; z-index: 100; height: 60px; display: flex; justify-content: space-between; align-items: center; }
.nav-container { max-width: 935px; margin: 0 auto; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 22px; font-weight: 600; font-family: 'Comic Sans MS', cursive, sans-serif; }
.nav-search { display: none; }
@media(min-width: 768px) {
    .nav-search { display: flex; align-items: center; background: #efefef; padding: 0 16px; border-radius: 8px; height: 36px; width: 268px; }
    .nav-search input { background: transparent; border: none; outline: none; margin-left: 10px; width: 100%; color: var(--text-main); }
    .nav-search input::placeholder { color: var(--text-muted); }
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-main); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { opacity: 0.7; }
.nav-btn { display: none; }

/* Main Layout */
.layout { max-width: 935px; margin: 30px auto; padding: 0 20px; display: flex; gap: 30px; align-items: flex-start; }
.main-content { flex: 1; max-width: 600px; }
.sidebar { width: 319px; position: sticky; top: 90px; display: none; }
@media(min-width: 900px) {
    .sidebar { display: block; }
}

/* Feed Post (Hero / Content) */
.post { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 24px; overflow: hidden; }
.post-header { display: flex; align-items: center; padding: 14px 16px; }
.post-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ig-gradient); padding: 2px; margin-right: 12px; }
.post-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid white; object-fit: cover; }
.post-author { font-weight: 600; font-size: 14px; }
.post-location { font-size: 12px; color: var(--text-muted); }
.post-more { margin-left: auto; cursor: pointer; font-weight: bold; }

.post-image { width: 100%; display: block; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }

.post-actions { padding: 12px 16px; display: flex; gap: 16px; align-items: center; }
.post-actions svg { width: 24px; height: 24px; cursor: pointer; transition: 0.2s; }
.post-actions svg:hover { opacity: 0.6; }
.post-actions .save-btn { margin-left: auto; }

.post-likes { padding: 0 16px; font-weight: 600; margin-bottom: 8px; }
.post-caption { padding: 0 16px 16px; }
.post-caption span { font-weight: 600; margin-right: 6px; }
.post-tags { color: var(--link-color); margin-top: 5px; display: block; }
.post-time { padding: 0 16px 16px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; }

/* Buttons in feed style */
.btn-feed { display: inline-block; background: #0095f6; color: white !important; font-weight: 600; padding: 6px 16px; border-radius: 4px; border: none; cursor: pointer; margin: 10px 10px 10px 0; }
.btn-feed:hover { background: #1877f2; }
.btn-outline { background: transparent; color: var(--text-main) !important; border: 1px solid var(--border); }

/* Sidebar Profile */
.side-profile { display: flex; align-items: center; margin-bottom: 24px; }
.side-avatar { width: 56px; height: 56px; border-radius: 50%; margin-right: 16px; }
.side-info { flex: 1; }
.side-username { font-weight: 600; }
.side-name { color: var(--text-muted); }
.side-action { color: #0095f6; font-weight: 600; font-size: 12px; cursor: pointer; }

/* Sidebar Suggestion */
.suggestions-title { display: flex; justify-content: space-between; margin-bottom: 16px; }
.suggestions-title span { font-weight: 600; color: var(--text-muted); }
.suggestions-title a { font-size: 12px; font-weight: 600; }
.sugg-item { display: flex; align-items: center; margin-bottom: 12px; }
.sugg-avatar { width: 32px; height: 32px; border-radius: 50%; margin-right: 12px; background: #efefef; }
.sugg-info h4 { font-size: 14px; font-weight: 600; }
.sugg-info p { font-size: 12px; color: var(--text-muted); }
.sugg-btn { margin-left: auto; color: #0095f6; font-size: 12px; font-weight: 600; border: none; background: transparent; cursor: pointer; }

/* Footer styling like IG */
.side-footer { margin-top: 30px; }
.side-footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 16px; }
.side-footer-links a, .side-footer-links span { color: #c7c7c7; font-size: 12px; }
.side-copyright { color: #c7c7c7; font-size: 12px; }

/* Internal Content container inside post */
.internal-box { padding: 16px; background: var(--bg-main); border-top: 1px solid var(--border-light); }
.internal-box h3 { font-size: 16px; margin-bottom: 10px; }
.internal-box p { color: var(--text-muted); margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.stat-mini { background: var(--bg-card); border: 1px solid var(--border); padding: 10px; text-align: center; border-radius: 4px; }
.stat-mini strong { display: block; font-size: 16px; }
.stat-mini span { font-size: 11px; color: var(--text-muted); }

/* Standard container for other pages */
.page-container { max-width: 600px; margin: 40px auto; padding: 0 20px; }
.page-title { font-size: 24px; font-weight: 300; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }

/* List */
.feed-list { display: flex; flex-direction: column; gap: 15px; }
.feed-list-item { background: var(--bg-card); border: 1px solid var(--border); padding: 16px; border-radius: 8px; }
.feed-list-item h4 { font-size: 14px; margin-bottom: 8px; }
.feed-list-item p { color: var(--text-muted); font-size: 13px; }

@media (max-width: 600px) {
    .layout { padding: 0; margin-top: 0; }
    .post { border-radius: 0; border-left: none; border-right: none; margin-bottom: 15px; }
}