/* components.css - CLEANED VERSION */
/* REMOVED ALL HEADER, NAVIGATION, AND SENTIMENT STYLES */
/* THESE ARE NOW HANDLED BY header-component.js */

/* ========== THEME-AWARE COMPONENT STYLES ========== */

/* Discussion Components ONLY */
.discussion-sidebar {
    position: sticky;
    top: 220px;
    background: var(--card-bg);
    border-radius: 6px;
    padding: 24px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.discussed-stocks {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: none;
}

.section-title {
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 0;
    border: none;
    opacity: 0.5;
}

.stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stock-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.stock-link:hover {
    background: var(--primary-accent);
    color: white;
    border-color: var(--primary-accent);
}

.live-chat-indicator {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.live-chat-indicator:hover {
    background: #dc2626;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* User Profile */
.user-profile-section {
    margin-top: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.profile-info h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.profile-stat {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-color);
    margin-top: 5px;
    opacity: 0.7;
}

/* Remove old dark-mode classes */
/* THESE ARE NOW HANDLED BY CSS VARIABLES */
/* ===== AUTHENTICATION COMPONENTS ===== */

/* Auth visibility classes */
.auth-required {
    display: none;
}

.authenticated .auth-required {
    display: block;
}

.auth-hidden {
    display: block;
}

.authenticated .auth-hidden {
    display: none;
}

/* Login prompt modal */
.login-prompt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.prompt-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.prompt-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.prompt-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.prompt-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.prompt-buttons button:first-child {
    background: #4CAF50;
    color: white;
}

.prompt-buttons button:first-child:hover {
    background: #45a049;
}

.prompt-buttons button:last-child {
    background: #f0f0f0;
    color: #333;
}

.prompt-buttons button:last-child:hover {
    background: #e0e0e0;
}

/* User menu dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.username {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.username:hover {
    background: #e8e8e8;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 100;
    margin-top: 0.5rem;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a,
.dropdown-content button {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    background: #f5f5f5;
}

.dropdown-content button {
    color: #dc3545;
}

/* Login button */
.login-btn {
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #0056b3;
}

/* Auth action prompts */
.auth-action-prompt {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.auth-action-prompt p {
    margin: 0 0 1rem 0;
    color: #666;
}

.auth-action-prompt a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.auth-action-prompt a:hover {
    text-decoration: underline;
}