/* wall.css - Community Wall Styles */
/* Matches site aesthetic: dark theme, gold accents, purple highlights */

:root {
    --primary-gold: #ffd700;
    --light-gold: #f8e49b;
    --warm-cream: #e5c98d;
    --bg-dark: #0f0a06;
    --bg-secondary: #1a1410;
    --bg-tertiary: #221a12;
    --card-dark: #161b22;
    --card-brown: #1a1f26;
    --border-brown: #30363d;
    --border-color: #3d2f24;
    --purple: #a78bfa;
    --light-purple: #c4b5fd;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --success: #3fb950;
    --warning: #d29922;
    --error: #f85149;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Manakahthey', 'Noto Sans Hebrew';
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ============================================================
   TOP SHIMMER BAR
   ============================================================ */

.top-shimmer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--purple), #ff1493, var(--primary-gold));
    background-size: 300% 100%;
    animation: shimmer 3s ease-in-out infinite;
    z-index: 9999;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   BACKGROUND
   ============================================================ */

.background-parchment {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(255, 215, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(248, 228, 155, 0.02) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   CONFETTI CANVAS
   ============================================================ */

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ============================================================
   UNIVERSAL COMMUNITY NAV
   ============================================================ */

.community-nav {
    background: #1a1410 !important;
    border-bottom: 1px solid #3d2f24 !important;
    padding: 0.75rem 0 !important;
    position: relative !important;
    z-index: 900 !important;
    font-family: 'Manakahthey', 'Noto Sans Hebrew' !important;
    display: block !important;
    width: 100% !important;
}

.community-nav .nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
}

.community-nav .nav-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-direction: row !important;
}

.community-nav .nav-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.community-nav .nav-logo img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
}

.community-nav .nav-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #ffd700 !important;
    letter-spacing: 0.5px !important;
}

.community-nav .nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-direction: row !important;
}

.community-nav .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.5rem 0.75rem !important;
    color: #e5c98d !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
}

.community-nav .nav-link:hover {
    background: rgba(167, 139, 250, 0.15) !important;
    color: #c4b5fd !important;
}

.community-nav .nav-link.active {
    background: rgba(167, 139, 250, 0.2) !important;
    color: #c4b5fd !important;
    border-bottom: 2px solid #a78bfa !important;
}

.community-nav .nav-icon {
    font-size: 1.1rem !important;
}

.community-nav .nav-text {
    display: inline !important;
}

/* Tooltip on hover */
.community-nav .nav-link[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #161b22;
    color: #e5c98d;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    border: 1px solid #30363d;
    z-index: 100;
}

/* User Dropdown */
.community-nav .nav-user-dropdown {
    position: relative !important;
    display: inline-block !important;
}

.community-nav .nav-user-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.4rem !important;
    background: transparent !important;
    border: 1px solid #30363d !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.community-nav .nav-user-btn:hover {
    border-color: #a78bfa !important;
    background: rgba(167, 139, 250, 0.1) !important;
}

.community-nav .nav-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #a78bfa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: white !important;
    background-size: cover !important;
    background-position: center !important;
}

.community-nav .nav-arrow {
    font-size: 0.7rem !important;
    color: #8b949e !important;
    margin-right: 0.25rem !important;
}

.community-nav .nav-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    min-width: 180px !important;
    background: #1a1f26 !important;
    border: 1px solid #30363d !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.2s !important;
    z-index: 1001 !important;
    display: block !important;
}

.community-nav .nav-dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.community-nav .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #e5c98d !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: background 0.2s !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: 'Manakahthey', 'Noto Sans Hebrew' !important;
}

.community-nav .dropdown-item:first-child {
    border-radius: 10px 10px 0 0 !important;
}

.community-nav .dropdown-item:last-child {
    border-radius: 0 0 10px 10px !important;
}

.community-nav .dropdown-item:hover {
    background: rgba(167, 139, 250, 0.15) !important;
}

.community-nav .dropdown-item.logout {
    color: #f85149 !important;
}

.community-nav .dropdown-divider {
    height: 1px !important;
    background: #30363d !important;
    margin: 0.25rem 0 !important;
}

.community-nav .nav-mobile-toggle {
    display: none !important;
    background: transparent !important;
    border: 1px solid #30363d !important;
    color: #e5c98d !important;
    font-size: 1.5rem !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

/* Mobile for community nav */
@media (max-width: 768px) {
    .community-nav .nav-menu {
        position: fixed !important;
        top: 120px !important;
        left: 0 !important;
        right: 0 !important;
        background: #1a1410 !important;
        border-bottom: 1px solid #3d2f24 !important;
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        transform: translateY(-150%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s !important;
        z-index: 999 !important;
    }
    
    .community-nav .nav-menu.show {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .community-nav .nav-link {
        padding: 0.75rem !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }
    
    .community-nav .nav-user-dropdown {
        width: 100% !important;
    }
    
    .community-nav .nav-user-btn {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .community-nav .nav-mobile-toggle {
        display: block !important;
    }
    
    .community-nav .nav-title {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .community-nav .nav-left {
        gap: 0.5rem !important;
    }
    
    .community-nav .nav-logo img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .community-nav .nav-title {
        font-size: 0.85rem !important;
    }
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.wall-header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(135deg, var(--card-brown) 0%, var(--card-dark) 100%);
    border-bottom: 2px solid var(--border-brown);
}

.wall-header h1 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.wall-header p {
    color: var(--warm-cream);
    opacity: 0.8;
    font-size: 1rem;
}

/* Shalom Wall Sidebar */
.sidebar-card.shalom-wall {
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05), var(--card-brown));
}

.sidebar-card.shalom-wall h3 {
    color: var(--light-purple);
    text-align: center;
}

.sidebar-card.shalom-wall .sidebar-subtitle {
    text-align: center;
}

.shalom-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.shalom-btn {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-brown);
    border-radius: 20px;
    background: var(--card-brown);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.shalom-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border-color: #a78bfa;
    color: white;
    transform: translateY(-2px);
}

.shalom-btn.shalom-judean {
    font-family: 'Manakahthey', 'Noto Sans Hebrew', serif;
    font-size: 1rem;
    direction: rtl;
}

.shalom-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.shalom-list {
    max-height: 200px;
    overflow-y: auto;
}

.shalom-empty {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5rem 0;
}

.shalom-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-brown);
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-primary);
}

.shalom-item:last-child {
    border-bottom: none;
}

.shalom-item:hover {
    color: var(--primary-gold);
}

.shalom-item .shalom-greeting {
    color: var(--primary-gold);
    font-weight: 600;
}

.shalom-item .shalom-greeting.judean {
    font-family: 'Manakahthey', 'Noto Sans Hebrew', serif;
    direction: rtl;
}

.shalom-item .shalom-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-left: auto;
}

/* Comments Section */
.comments-section {
    border-top: 1px solid var(--border-brown);
    margin-top: 1rem;
    padding-top: 1rem;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.no-comments {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem 0;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-brown);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-purple), var(--primary-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-gold);
    text-decoration: none;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comment-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.comment-delete:hover {
    opacity: 1;
    color: #ef4444;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-composer {
    display: flex;
    gap: 0.5rem;
}

.comment-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-brown);
    border-radius: 20px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
}

.comment-input:focus {
    outline: none;
    border-color: var(--light-purple);
}

.comment-input::placeholder {
    color: var(--text-secondary);
}

.comment-submit {
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--light-purple), #8b5cf6);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.comment-toggle {
    position: relative;
}

.comment-label {
    font-size: 0.85rem;
}

/* Active Discussions Sidebar */
.sidebar-card.active-discussions {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), var(--card-brown));
}

.sidebar-card.active-discussions h3 {
    color: #ef4444;
}

/* Post highlight effect when scrolled to */
.feed-item.highlight {
    animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 3px var(--primary-gold); }
    100% { box-shadow: none; }
}

/* Celebrate button */
.celebrate-btn {
    transition: all 0.3s ease;
}

.celebrate-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.2);
}

.celebrate-btn.celebrated {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-gold);
    cursor: default;
}

.celebrate-count {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Hide active discussions on mobile */
@media (max-width: 1024px) {
    .sidebar-card.active-discussions {
        display: none;
    }
}

/* ============================================================
   STATE CONTAINER
   ============================================================ */

.state-container {
    text-align: center;
    padding: 4rem 1.5rem;
}

.state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.state-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.state-text {
    color: var(--warm-cream);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--purple);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================================
   WALL CONTAINER
   ============================================================ */

.wall-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* ============================================================
   WALL TABS
   ============================================================ */

.wall-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wall-tabs::-webkit-scrollbar {
    display: none;
}

.wall-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--card-brown);
    border: 1px solid var(--border-brown);
    border-radius: 20px;
    color: var(--warm-cream);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.wall-tab:hover {
    border-color: var(--purple);
    background: rgba(167, 139, 250, 0.1);
}

.wall-tab.active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

.tab-icon {
    font-size: 1rem;
}

/* ============================================================
   WALL LAYOUT - 3 COLUMN
   ============================================================ */

.wall-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* ============================================================
   SIDEBARS
   ============================================================ */

.wall-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: var(--card-brown);
    border: 1px solid var(--border-brown);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
}

.sidebar-card:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.15);
}

.sidebar-card h3 {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-subtitle {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 2px;
}

/* Sidebar Items */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.sidebar-item:hover {
    background: rgba(167, 139, 250, 0.15);
    transform: translateX(3px);
}

.sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.sidebar-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-cream);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Elder Hall Special Styling */
.elder-hall .sidebar-item {
    border-left: 3px solid var(--primary-gold);
}

.elder-hall .sidebar-avatar {
    background: linear-gradient(135deg, var(--primary-gold), #ff8c00);
}

/* On Fire Special Styling */
.on-fire .sidebar-item {
    border-left: 3px solid #ff6b35;
}

.streak-flame {
    animation: flicker 0.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.1); opacity: 0.8; }
}

/* Hot Debates */
.hot-debates .sidebar-item {
    border-left: 3px solid var(--warning);
}

/* Victors */
.victors .sidebar-item {
    border-left: 3px solid var(--success);
}

/* Rising Stars */
.rising-stars .sidebar-item {
    border-left: 3px solid var(--light-purple);
}

.loading-small {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================================
   MAIN FEED
   ============================================================ */

.wall-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Post Composer */
.post-composer {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-brown);
    border: 1px solid var(--border-brown);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.composer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.composer-input-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.composer-input-area textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-brown);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    font-family: 'Manakahthey', 'Noto Sans Hebrew';
}

.composer-input-area textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.composer-input-area textarea::placeholder {
    color: var(--text-secondary);
}

.video-url-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-brown);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Manakahthey', 'Noto Sans Hebrew';
}

.video-url-input:focus {
    outline: none;
    border-color: var(--purple);
}

.video-url-input::placeholder {
    color: var(--text-secondary);
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.composer-options {
    display: flex;
    gap: 0.5rem;
}

.announce-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-brown);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Manakahthey', 'Noto Sans Hebrew';
}

.announce-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.announce-btn.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

#videoUrlInput {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-brown);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
}

#videoUrlInput:focus {
    outline: none;
    border-color: var(--purple);
}

.post-submit-btn {
    padding: 0.5rem 1.25rem;
    background: var(--purple);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.post-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Feed Items */
.feed-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-brown);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Feed Item Card */
.feed-item {
    background: var(--card-brown);
    border: 1px solid var(--border-brown);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
}

.feed-item:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.15);
}

.feed-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.feed-item-meta {
    flex: 1;
}

.feed-item-author {
    font-weight: 600;
    color: var(--warm-cream);
    font-size: 0.95rem;
}

.feed-item-author a {
    color: var(--light-purple);
    text-decoration: none;
}

.feed-item-author a:hover {
    text-decoration: underline;
}

.feed-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.feed-item-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-achievement {
    background: linear-gradient(135deg, var(--primary-gold), #ff8c00);
    color: #000;
}

.badge-topic {
    background: rgba(167, 139, 250, 0.2);
    color: var(--light-purple);
    border: 1px solid var(--purple);
}

.badge-question {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid #3b82f6;
}

.badge-video {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #ef4444;
}

.badge-announcement {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.badge-status-change {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid #f59e0b;
}

.feed-item-content {
    margin-bottom: 0.75rem;
}

.feed-item-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.feed-item-highlight {
    color: var(--primary-gold);
    font-weight: 600;
}

.feed-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid var(--purple);
    border-radius: 6px;
    color: var(--light-purple);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.feed-item-link:hover {
    background: rgba(167, 139, 250, 0.25);
}

/* Video Embed */
.video-embed {
    margin-top: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Feed Actions */
.feed-item-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-brown);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(167, 139, 250, 0.15);
    color: var(--light-purple);
}

.action-btn.liked {
    color: #ef4444;
}

.action-btn.liked .heart-icon {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Achievement Item Special Styling */
.feed-item.achievement-item {
    border-left: 4px solid var(--primary-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), var(--card-brown));
}

.achievement-icon-large {
    font-size: 2.5rem;
    margin-right: 0.5rem;
}

/* Status Change Items */
.feed-item.status-change {
    border-left: 4px solid var(--warning);
}

.status-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--warning);
}

/* Load More */
.load-more-btn {
    width: 100%;
    padding: 1rem;
    background: var(--card-brown);
    border: 1px solid var(--border-brown);
    border-radius: 10px;
    color: var(--warm-cream);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    border-color: var(--purple);
    background: rgba(167, 139, 250, 0.1);
}

/* ============================================================
   FOOTER (removed - using footer-menu.js)
   ============================================================ */

/* ============================================================
   POST ACTIONS MENU (Edit/Delete)
   ============================================================ */

.post-actions-menu {
    position: relative;
    margin-left: auto;
}

.post-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.post-menu-btn:hover {
    background: rgba(167, 139, 250, 0.15);
    color: var(--light-purple);
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-brown);
    border: 1px solid var(--border-brown);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s;
    z-index: 100;
}

.post-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.post-menu-dropdown button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: var(--warm-cream);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    font-family: 'Manakahthey', 'Noto Sans Hebrew';
    transition: background 0.2s;
}

.post-menu-dropdown button:first-child {
    border-radius: 8px 8px 0 0;
}

.post-menu-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
}

.post-menu-dropdown button:only-child {
    border-radius: 8px;
}

.post-menu-dropdown button:hover {
    background: rgba(167, 139, 250, 0.15);
}

.post-menu-dropdown button.delete-btn {
    color: var(--error);
}

.post-menu-dropdown button.delete-btn:hover {
    background: rgba(248, 81, 73, 0.15);
}

/* Feed item transition for delete */
.feed-item {
    transition: opacity 0.3s, transform 0.3s;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.empty-state h3 {
    color: var(--warm-cream);
    margin-bottom: 0.5rem;
}

/* ============================================================
   MOBILE RESPONSIVE - WALL CONTENT
   ============================================================ */

@media (max-width: 1100px) {
    .wall-layout {
        grid-template-columns: 1fr;
    }
    
    .wall-sidebar {
        display: none;
    }
    
    .wall-sidebar.left-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        order: 2;
    }
}

@media (max-width: 768px) {
    .wall-header h1 {
        font-size: 1.5rem;
    }
    
    .wall-tabs {
        padding: 0.75rem 0;
    }
    
    .wall-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .tab-text {
        display: none;
    }
    
    .post-composer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .composer-avatar {
        display: none;
    }
    
    .composer-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .composer-type-selector {
        justify-content: center;
    }
    
    .wall-sidebar.left-sidebar {
        display: none;
    }
}
