/* ShadeHub Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Core Colors */
    --bg-depth: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-2: #141414;

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.03);
    --glass-blur: 20px;

    /* Accents */
    --accent-primary: #0A84FF;
    /* iOS Blue */
    --accent-glow: rgba(10, 132, 255, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: #86868b;
    /* Apple gray */

    /* Spacing & Layout */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --nav-height: 60px;
    --max-width: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-depth);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Aurora Background Effect */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(10, 132, 255, 0.15), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(100, 50, 255, 0.1), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(50, 200, 255, 0.05), transparent 40%);
    filter: blur(60px);
    animation: aurora-shift 20s ease-in-out infinite alternate;
}

@keyframes aurora-shift {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Layout */
.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    padding-top: calc(var(--nav-height) + 20px);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    min-height: 100vh;
}

/* Navigation (Top Bar) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary), #a044ff);
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.panel-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.menu-item:hover,
.menu-item.active {
    background: var(--glass-shine);
    color: var(--text-primary);
}

/* Feed & Posts */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

.post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.post-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.post-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.post-actions {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    font-family: inherit;
}

.action-btn:hover {
    color: var(--text-primary);
}

.action-btn.like-btn:hover {
    color: #ff3b30;
    /* iOS Red */
}

/* Buttons */
.btn-primary {
    background: var(--text-primary);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1c1c1e;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
}

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

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    padding: 14px 16px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        padding-top: calc(var(--nav-height) + 10px);
    }

    .sidebar {
        display: none;
        /* Hide sidebar on mobile for now, or move to bottom nav */
    }

    .nav-links {
        display: none;
        /* Need a mobile menu solution */
    }
}