/* USER FEED STYLES */

/* Feed Panel Styles */
.feed-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(0, 255, 0, 0.3);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* ============================================
   LIKE BUTTON STYLES - Dog Silhouette
   ============================================ */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.like-btn .like-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.like-btn.liked .like-icon-img {
    filter: 
        brightness(0) 
        saturate(100%) 
        invert(75%) 
        sepia(100%) 
        saturate(500%) 
        hue-rotate(70deg) 
        brightness(1.2)
        drop-shadow(0 0 8px rgba(0, 255, 0, 0.8))
        drop-shadow(0 0 15px rgba(0, 255, 0, 0.5));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: 
            brightness(0) 
            saturate(100%) 
            invert(75%) 
            sepia(100%) 
            saturate(500%) 
            hue-rotate(70deg) 
            brightness(1.2)
            drop-shadow(0 0 8px rgba(0, 255, 0, 0.8))
            drop-shadow(0 0 15px rgba(0, 255, 0, 0.5));
    }
    50% {
        filter: 
            brightness(0) 
            saturate(100%) 
            invert(75%) 
            sepia(100%) 
            saturate(500%) 
            hue-rotate(70deg) 
            brightness(1.3)
            drop-shadow(0 0 12px rgba(0, 255, 0, 1))
            drop-shadow(0 0 20px rgba(0, 255, 0, 0.7))
            drop-shadow(0 0 25px rgba(0, 255, 0, 0.4));
    }
}

.like-count {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
    transition: color 0.3s ease;
}

.like-btn.liked .like-count {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.like-btn:hover .like-icon-img {
    transform: scale(1.1);
}

.like-btn.liked:hover .like-icon-img {
    transform: scale(1.15);
}
/* ============================================
   END LIKE BUTTON STYLES
   ============================================ */

.feed-panel.open {
    right: 0;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 255, 0, 0.05);
}

.feed-header-title {
    display: flex;
    align-items: center;
}

.feed-header h3 {
    color: #00ff00;
    margin: 0;
    font-size: 1.5rem;
}

.feed-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.feed-close-btn:hover {
    color: #00ff00;
}

.feed-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.feed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.feed-overlay.show {
    display: block;
}

/* Feed Search Container */
.feed-search-container {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-tab {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.search-tab:last-child {
    border-right: none;
}

.search-tab:hover {
    background: rgba(0, 255, 0, 0.05);
    color: #00ff00;
}

.search-tab.active {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border-bottom: 2px solid #00ff00;
}

.search-input-wrapper {
    position: relative;
}

.feed-search-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.feed-search-input::placeholder {
    color: #666;
}

.feed-search-input:focus {
    background: rgba(0, 0, 0, 0.5);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.2);
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.search-result-item:hover {
    background: rgba(0, 255, 0, 0.1);
}

/* User search result styles */
.user-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00ff00, #00cc88);
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-result-info {
    flex: 1;
}

.user-result-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-result-stats {
    color: #00ff00;
    font-size: 0.8rem;
}

/* Post search result styles */
.post-result-author {
    color: #00ff00;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.post-result-content {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.post-result-meta {
    color: #666;
    font-size: 0.75rem;
}

/* Hashtag Filter Bar */
.hashtag-filter-bar {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hashtag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hashtag-pill:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.hashtag-pill.active {
    background: rgba(0, 255, 0, 0.15);
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Bookmark pill special styling */
.bookmark-pill {
    background: rgba(255, 200, 0, 0.05);
    border-color: rgba(255, 200, 0, 0.2);
}

.bookmark-pill:hover {
    background: rgba(255, 200, 0, 0.1);
    border-color: rgba(255, 200, 0, 0.4);
    color: #ffc800;
}

.bookmark-pill.active {
    background: rgba(255, 200, 0, 0.15);
    border-color: #ffc800;
    color: #ffc800;
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.3);
}

/* System Message Styling */
.system-message {
    background: linear-gradient(135deg, rgba(0, 204, 136, 0.08) 0%, rgba(0, 150, 255, 0.08) 100%);
    border: 2px solid rgba(0, 204, 136, 0.4);
    box-shadow: 0 0 20px rgba(0, 204, 136, 0.2);
    position: relative;
}

.system-message::before {
    content: '🎯 OFFICIAL';
    position: absolute;
    top: -12px;
    left: 15px;
    background: linear-gradient(135deg, #00cc88 0%, #0096ff 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 204, 136, 0.4);
}

.system-message .post-header {
    background: rgba(0, 204, 136, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.system-message .username {
    color: #00cc88;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 204, 136, 0.5);
}

.system-message .post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Pack Post Styling - "The Pack" social proof posts */
.pack-post {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.10) 0%, rgba(0, 180, 100, 0.05) 50%, rgba(0, 100, 200, 0.06) 100%);
    border: 2px solid rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.15), inset 0 1px 0 rgba(0, 255, 136, 0.1);
    position: relative;
    margin-top: 18px;
}

.pack-post::before {
    content: '\1F43A  THE PACK';
    position: absolute;
    top: -12px;
    left: 15px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.5);
}

.pack-post .post-header {
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.pack-username {
    color: #00ff88 !important;
    font-weight: 800 !important;
    cursor: default !important;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.pack-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.pack-post .post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.pack-post .post-actions-bar {
    border-top: 1px solid rgba(0, 255, 136, 0.15);
}

/* Hound Badge Inline (next to username in feed) */
.hound-badge {
    display: inline-block;
    font-size: 0.85rem;
    margin-left: 3px;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    cursor: default;
}

/* Clickable Hashtags in Posts */
.clickable-hashtag {
    color: #00cc88;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.clickable-hashtag:hover {
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

/* Performance Badges */
.performance-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.perf-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
    transition: all 0.3s ease;
}

/* Win Rate Badges */
.perf-badge.win-rate.elite {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.perf-badge.win-rate.hot {
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.perf-badge.win-rate.average {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #999;
}

.perf-badge.win-rate.cold {
    background: rgba(255, 69, 69, 0.15);
    border-color: rgba(255, 69, 69, 0.3);
    color: #ff6b6b;
}

/* Streak Badges */
.perf-badge.streak.hot {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.4);
    color: #ff8c00;
    animation: pulse-fire 2s ease-in-out infinite;
}

.perf-badge.streak.cold {
    background: rgba(100, 149, 237, 0.15);
    border-color: rgba(100, 149, 237, 0.3);
    color: #87CEEB;
}

@keyframes pulse-fire {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 140, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 140, 0, 0.7);
    }
}

/* Recent Record Badge */
.perf-badge.recent {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
    color: #BA55D3;
}

/* Profit/Loss Badges */
.perf-badge.profit {
    background: rgba(0, 255, 127, 0.15);
    border-color: rgba(0, 255, 127, 0.3);
    color: #00ff7f;
    font-weight: 700;
}

.perf-badge.loss {
    background: rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.3);
    color: #DC143C;
    font-weight: 700;
}

/* Newbie Badge */
.perf-badge.newbie {
    background: rgba(169, 169, 169, 0.15);
    border-color: rgba(169, 169, 169, 0.3);
    color: #A9A9A9;
}

/* Hover effects */
.perf-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Three-Dot Post Menu */
.post-menu-container {
    position: relative;
    margin-left: 8px;
}

.post-menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #999;
}

.post-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #00ff00;
    transform: scale(1.1);
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.menu-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-option:last-child {
    border-bottom: none;
}

.menu-option:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.menu-option:first-child:hover {
    background: rgba(0, 136, 255, 0.15);
}

.menu-option:last-child:hover {
    background: rgba(255, 69, 69, 0.15);
    color: #ff4545;
}

/* Edit Mode */
.post-edit-mode {
    margin: 12px 0;
}

.post-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 204, 136, 0.3);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.post-edit-textarea:focus {
    outline: none;
    border-color: rgba(0, 204, 136, 0.6);
    box-shadow: 0 0 10px rgba(0, 204, 136, 0.2);
}

.post-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.save-edit-btn,
.cancel-edit-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-edit-btn {
    background: linear-gradient(135deg, #00cc88, #00ff00);
    color: white;
}

.save-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.cancel-edit-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-edit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.post-creator {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.post-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: all 0.3s ease;
}

.post-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.post-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 0.8rem;
    color: #999;
}

.post-btn {
    background: linear-gradient(45deg, #00ff00, #00cc88);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.post-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.3);
}

.post-btn:disabled {
    background: rgba(100, 100, 100, 0.3);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-placeholder {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.feed-post {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

/* Three-dot menu positioned in top-right corner */
.post-menu-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.post-menu-top-right .post-menu-container {
    margin-left: 0;
}

/* Friend posts styling */
.feed-post.friend-post {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.feed-post.friend-post:hover {
    background: rgba(0, 255, 0, 0.08);
    border-color: rgba(0, 255, 0, 0.3);
}

.feed-post:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 255, 0, 0.2);
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff00;
    flex-shrink: 0;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 2px solid #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.post-header-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.post-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.post-author {
    color: #00ff00;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.clickable-username {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-username:hover {
    color: #33ff33;
    text-decoration: underline;
}

.friend-badge {
    color: #00ff00;
    font-size: 0.75rem;
    background: rgba(0, 255, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    white-space: nowrap;
}

.add-friend-btn {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.add-friend-btn:hover {
    background: rgba(0, 255, 0, 0.3);
    border-color: rgba(0, 255, 0, 0.5);
    transform: translateY(-1px);
}

.post-time {
    color: #999;
    font-size: 0.8rem;
    white-space: nowrap;
}

.post-content-display {
    color: white;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    .feed-panel {
        right: -100%;
        width: 100%;
        bottom: -100vh;
        top: auto;
        height: 70vh;
        border-left: none;
        border-top: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 20px 20px 0 0;
        transition: bottom 0.3s ease;
    }

    .feed-panel.open {
        right: 0;
        bottom: 0;
    }
}

/* Reply functionality styles */
.post-actions-bar {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-btn, .view-replies-btn {
    background: none;
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.reply-btn:hover, .view-replies-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-1px);
}

/* Bookmark button styles */
.bookmark-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #999;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.bookmark-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 0, 0.3);
    transform: translateY(-1px);
}

.bookmark-btn.bookmarked {
    border-color: rgba(0, 255, 0, 0.5);
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.bookmark-btn.bookmarked:hover {
    background: rgba(0, 255, 0, 0.15);
    transform: translateY(-1px) scale(1.05);
}

.reply-box {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.reply-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 8px;
    color: white;
    font-size: 0.85rem;
    resize: none;
    min-height: 50px;
    margin-bottom: 8px;
}

.reply-input:focus {
    outline: none;
    border-color: #00ff00;
}

.submit-reply-btn {
    background: linear-gradient(45deg, #00ff00, #00cc88);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
}

.submit-reply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 255, 0, 0.3);
}

.replies-container {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 255, 0, 0.2);
}

.reply-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.reply-author {
    color: #00cc88;
    font-weight: bold;
}

.reply-time {
    color: #999;
    font-size: 0.8rem;
}

.reply-content {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.3;
}

.no-replies {
    color: #999;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

/* Message user button (contextual) */
.message-user-btn {
  background: rgba(0, 150, 255, 0.2);
  border: 1px solid rgba(0, 150, 255, 0.3);
  color: #0099ff;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

.message-user-btn:hover {
  background: rgba(0, 150, 255, 0.4);
  border-color: rgba(0, 150, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 150, 255, 0.3);
}

.message-user-btn:active {
  transform: translateY(0);
}

.news-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    color: white;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.news-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.news-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sport-filter {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.sport-filter:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.sport-filter option {
    background: #1a1a1a;
    color: white;
}

.news-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    transition: transform 0.2s;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.15);
}

.news-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

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

.news-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: white;
}

.news-description {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.news-time {
    color: rgba(255, 255, 255, 0.7);
}

.news-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.news-link:hover {
    color: #ffed4e;
    text-decoration: underline;
}

.feed-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 24px 0;
}

@media (max-width: 768px) {
    .news-image {
        width: 60px;
        height: 60px;
    }

    .news-title {
        font-size: 13px;
    }

    .news-description {
        font-size: 12px;
    }
}

/* ================================================
   BET SHARE POST STYLING - Professional & Modern
   ================================================ */

/* Bet Share Post Container */
.feed-post.bet-share-post {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.05), rgba(0, 204, 136, 0.05));
    border-left: 3px solid #00ff00;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.1);
}

.feed-post.bet-share-post:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.08), rgba(0, 204, 136, 0.08));
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.15);
}

/* Bet Share Badge */
.bet-share-badge {
    background: linear-gradient(45deg, #00ff00, #00cc88);
    color: #000;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Shared Bet Card */
.shared-bet-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.shared-bet-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.15);
}

/* Bet Card Header (scoped to shared bet cards in feed) */
.shared-bet-card .bet-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

/* Bet Description - The main bet info */
.bet-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4;
}

.bet-game-info {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    flex: 1;
}

/* Bet Status Badges */
.bet-status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bet-status-badge.open {
    background: rgba(255, 153, 0, 0.2);
    color: #ff9900;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.bet-status-badge.live {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
    animation: pulse-status 2s infinite;
}

.bet-status-badge.won {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.bet-status-badge.lost {
    background: rgba(255, 102, 102, 0.2);
    color: #ff6666;
    border: 1px solid rgba(255, 102, 102, 0.3);
}

.bet-status-badge.unknown {
    background: rgba(153, 153, 153, 0.2);
    color: #999;
    border: 1px solid rgba(153, 153, 153, 0.3);
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Bet Card Details Grid */
.bet-card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.bet-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bet-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bet-value {
    font-size: 1rem;
    color: #00ff00;
    font-weight: bold;
}

/* Post Content Display (user's comment) */
.bet-share-post .post-content-display {
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid rgba(0, 255, 0, 0.3);
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-style: italic;
    color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shared-bet-card .bet-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bet-status-badge {
        align-self: flex-start;
    }

    .bet-card-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bet-share-badge {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Share to Feed Button Styling (in completed bets) */
.share-feed-btn {
    background: linear-gradient(45deg, #00ff00, #00cc88);
    color: #000;
    border: none;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.2);
    margin-top: 10px;
    width: 100%;
}

.share-feed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 255, 0, 0.4);
    background: linear-gradient(45deg, #00cc88, #00ff00);
}

.share-feed-btn:active {
    transform: translateY(0);
}

/* Bet Share Section Container */
.bet-share-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Settlement Status Display in Bet Cards */
.settlement-status {
    text-align: center;
    padding: 8px 4px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* User Profile Modal */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 20px;
}

.profile-avatar-container {
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 255, 0, 0.5);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00ff00, #00cc88);
    color: #000;
    font-weight: bold;
    font-size: 2rem;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin: 0 0 8px 0;
    color: #00ff00;
    font-size: 1.5rem;
}

.profile-meta {
    color: #999;
    font-size: 0.9rem;
}

/* Profile Stats Summary */
.profile-stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tab {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-tab:hover {
    background: rgba(0, 255, 0, 0.05);
    color: #00ff00;
}

.profile-tab.active {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border-bottom-color: #00ff00;
}

.profile-tab-content {
    min-height: 200px;
}

/* Detailed Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 15px;
}

.stat-card-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

.stat-card-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ff00;
}

/* Sport Breakdown */
.sport-breakdown {
    margin-top: 20px;
}

.sport-breakdown h4 {
    color: #00ff00;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.sport-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    margin-bottom: 10px;
}

.sport-stat-name {
    font-weight: 600;
    color: #fff;
}

.sport-stat-record {
    color: #999;
    font-size: 0.9rem;
}