/* Global Styles */
body {
    background-color: #111;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    font-size: 13px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Layout */
.container {
    display: flex;
    height: 100vh;
}

/* Left Sidebar */
.sidebar-left {
    width: 200px;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #222;
    flex-shrink: 0;
}

.logo {
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #222;
}

.sidebar-left nav {
    flex-grow: 1;
    padding-top: 10px;
}

.sidebar-left nav ul li a {
    display: block;
    padding: 10px 20px;
    color: #999;
    font-weight: 500;
}

.sidebar-left nav ul li a:hover,
.sidebar-left nav ul li.active a {
    background-color: #222;
    color: #fff;
    border-left: 3px solid #c5bdfa;
    /* Orange accent */
}

.sidebar-left nav ul li.active a {
    background-color: #222;
}

.sidebar-left nav ul li i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.sidebar-left nav ul li.separator {
    height: 1px;
    background-color: #333;
    margin: 10px 20px;
}

.gold {
    color: #c5bdfa;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #000;
    min-width: 0;
    /* Prevent flex item from overflowing */
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #111;
    border-bottom: 1px solid #222;
    height: 40px;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    color: #aaa;
}

.top-left span {
    cursor: pointer;
}

.top-left i {
    font-size: 10px;
    margin-left: 3px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 100;
    border: 1px solid #333;
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 12px;
    color: #ccc;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #333;
    color: #fff;
}

.dropdown-item.active {
    color: #c5bdfa;
    font-weight: bold;
}


.sentiment-score {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1a1a1a;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.toggle-switch {
    width: 30px;
    height: 16px;
    background-color: #333;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch.on {
    background-color: #c5bdfa;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background-color: #777;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch.on::after {
    left: 16px;
    background-color: #fff;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-container input {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 5px 10px 5px 30px;
    color: #ccc;
    font-size: 12px;
    width: 150px;
    outline: none;
    transition: width 0.3s, border-color 0.3s;
}

.search-container input:focus {
    width: 200px;
    border-color: #555;
}

.search-container::before {
    content: '\f002';
    /* FontAwesome search icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 10px;
    pointer-events: none;
}


/* News Feed */
.news-feed {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
}

.news-item {
    display: flex;
    padding: 12px 20px;
    border-bottom: 1px solid #1a1a1a;
    transition: background-color 0.1s;
}

.news-item:hover {
    background-color: #0a0a0a;
}

.news-item.sponsored {
    background-color: #200c1b;
    /* Slight gold tint */
    border-bottom: 1px solid #332b00;
}

.news-time {
    width: 50px;
    color: #666;
    font-size: 11px;
    padding-top: 3px;
    flex-shrink: 0;
}

.news-icon {
    width: 30px;
    padding-top: 3px;
    text-align: center;
    margin-right: 10px;
}

.news-content {
    flex-grow: 1;
}

.news-title {
    font-size: 14px;
    line-height: 1.4;
    color: #ddd;
    margin-bottom: 4px;
}

.news-title .highlight {
    color: #c5bdfa;
    font-weight: bold;
}

.news-title .source {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.source-link {
    color: #555;
}

.source-link i {
    font-size: 10px;
    margin-right: 3px;
}

.tags {
    display: flex;
    gap: 5px;
}

.tag {
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
}

.tag.blue {
    color: #00bfff;
    /* Cyan/Blue */
}

/* Footer */
.feed-footer {
    padding: 15px 20px;
    background-color: #111;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 11px;
}

.social-icons i {
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
}

.social-icons i:hover {
    color: #999;
}

.footer-links a {
    margin-right: 10px;
    color: #555;
}

.footer-links a:hover {
    color: #888;
}

/* Right Sidebar */
.sidebar-right {
    width: 350px;
    background-color: #000;
    border-left: 1px solid #222;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 0 20px;
    overflow-y: auto;
}

.sidebar-right .top-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 20px;
}

.sidebar-right .top-nav a {
    font-weight: bold;
    color: #888;
    font-size: 14px;
}

.sidebar-right .top-nav a:hover {
    color: #fff;
}

.info-box {
    background-color: #0a0a0a;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
    color: #888;
    position: relative;
}

.blue-link {
    color: #00bfff;
}

.dismiss-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 1px solid #333;
    color: #00bfff;
    padding: 2px 8px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 2px;
}

.settings {
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #888;
}

.section-header {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: bold;
}

.sponsored-box {
    background-color: #200c1b;
    padding: 10px;
    border-left: 3px solid #c5bdfa;
    margin-bottom: 20px;
    font-size: 12px;
    color: #c5bdfa;
    position: relative;
}

.close-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    color: #c5bdfa;
}

.trending-list {
    position: relative;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.trending-icon {
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    flex-shrink: 0;
}

.trending-text {
    font-size: 13px;
    color: #aaa;
    line-height: 1.3;
}

.blur-effect {
    filter: blur(3px);
    opacity: 0.5;
}

.signup-overlay {
    background-color: #1a202c;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin-top: -80px;
    /* Overlap the blurred content */
    position: relative;
    z-index: 10;
    color: #ccc;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#map {
    height: 100%;
    width: 100%;
    min-height: 500px;
    border-radius: 8px;
    z-index: 1;
}