/* youre.nu - Fresh Social Feed Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --surface: #151515;
    --card: #1a1a1a;
    --accent: #ff6b35;
    --accent-light: #ff8c5a;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --text-dim: #666666;
    --border: #333333;
    --glow: rgba(255, 107, 53, 0.3);
    --radius: 16px;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    z-index: 100;
}

.logo {
    margin-bottom: 48px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: var(--card);
    color: var(--text);
}

.nav-icon {
    font-size: 20px;
}

.add-tip-btn {
    width: 100%;
    margin-top: 32px;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 8px 32px var(--glow);
}

.add-tip-btn:hover {
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-container {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text);
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-tabs {
    display: flex;
    gap: 24px;
    margin-left: 32px;
}

.filter-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-tab.active,
.filter-tab:hover {
    color: var(--accent);
    background: rgba(255, 107, 53, 0.1);
}

/* Feed Layout */
.feed-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.tips-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tip Cards - Social Style */
.tip-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.tip-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}

.tip-card:hover::before {
    opacity: 1;
}

.tip-header {
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.tip-meta {
    flex: 1;
}

.tip-author {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.tip-time {
    color: var(--text-muted);
    font-size: 12px;
}

.tip-menu {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.tip-menu:hover {
    background: var(--surface);
    color: var(--text);
}

.tip-title {
    padding: 0 24px 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.tip-content {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.tip-tags {
    padding: 0 24px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tip-tag {
    padding: 4px 12px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.tip-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 24px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--surface);
    color: var(--text);
}

.action-btn.voted {
    color: var(--accent);
    background: rgba(255, 107, 53, 0.1);
}

/* Sidebar Content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trending-tags {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.trending-item:hover {
    background: var(--surface);
}

.trending-name {
    color: var(--text);
    font-weight: 500;
}

.trending-count {
    color: var(--text-muted);
    font-size: 12px;
}

.stats-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 40px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--surface);
    color: var(--text);
}

.form-container {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.tags-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag-option {
    display: none;
}

.tag-label {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text-muted);
}

.tag-option:checked + .tag-label {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--glow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--card);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    max-width: 400px;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent);
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .feed-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .sidebar-content {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-tabs {
        margin-left: 0;
        overflow-x: auto;
    }
}