/* ==================== TALK SE CSS ==================== */
/* "Speak and Listen to Everyone" */
/* Brand Color: Gold #C9A84C */

/* ==================== CSS RESET & VARIABLES ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Talk SE Brand Colors */
    --talkse-gold: #C9A84C;
    --talkse-gold-hover: #B8973F;
    --talkse-gold-light: rgba(201, 168, 76, 0.15);
    --talkse-gold-faint: rgba(201, 168, 76, 0.08);

    /* Gold Accent Colors (for CTAs) */
    --talkse-cta-gold: #FFD700;
    --talkse-cta-gold-hover: #E6C200;
    --talkse-cta-gold-light: rgba(255, 215, 0, 0.15);

    /* Spark Colors (orange) */
    --spark-orange: #F7931A;
    --spark-orange-light: rgba(247, 147, 26, 0.1);

    /* Save Colors (gold) */
    --save-gold: #FFD700;
    --save-gold-light: rgba(255, 215, 0, 0.1);

    /* Verified Badge (gold star) */
    --verified-gold: #FFD700;

    /* Background Colors - Maps to SE theme for dark/light mode */
    --bg-dark: var(--se-bg, #000000);
    --bg-section: var(--se-bg-elevated, #16181c);
    --bg-card: var(--se-bg-card, #1d1f23);
    --bg-input: var(--se-bg-input, #202327);
    --bg-hover: var(--se-bg-elevated, #2f3336);

    /* Text Colors - Maps to SE theme for dark/light mode */
    --text-white: var(--se-text, #E7E9EA);
    --text-gray: var(--se-text-secondary, #71767B);
    --text-dim: var(--se-text-muted, #536471);
    --text-muted: var(--se-text-muted, #3D4349);

    /* Border Colors - Maps to SE theme for dark/light mode */
    --border-default: var(--se-border-card, #2f3336);
    --border-hover: var(--se-border, #3d4349);
    --border-active: #536471;

    /* Status Colors */
    --spark-pink: #F91880;
    --spark-pink-light: rgba(249, 24, 128, 0.1);
    --echo-green: #17BF63;
    --echo-green-light: rgba(23, 191, 99, 0.1);
    --reply-blue: #1DA1F2;
    --reply-blue-light: rgba(29, 161, 242, 0.1);
    --success: #00BA7C;
    --error: #F4212E;
    --warning: #FFD400;

    /* Layout Dimensions (Phase 92 Spec) */
    --header-height: 53px;
    --left-nav-width: 250px;
    --center-feed-width: 600px;
    --right-sidebar-width: 285px;
    --mobile-nav-height: 53px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-dropdown: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 3px 1px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-mobile-nav: 350;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==================== AUTH LOADING OVERLAY ==================== */
.auth-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.auth-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.auth-loading-content {
    text-align: center;
    color: var(--text-white);
}

.auth-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--talkse-gold);
    border-radius: 50%;
    animation: auth-spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.auth-loading-content p {
    font-size: 14px;
    color: var(--text-gray);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==================== FIXED HEADER ==================== */
.talkse-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
    z-index: var(--z-header);
}

.talkse-header-inner {
    max-width: calc(var(--left-nav-width) + var(--center-feed-width) + var(--right-sidebar-width));
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

/* Logo */
.talkse-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.talkse-logo a {
    display: flex;
    align-items: center;
}

.talkse-logo-star {
    display: flex;
    align-items: center;
}

.talkse-star-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.talkse-star-img:hover {
    transform: scale(1.1);
}

.talkse-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--talkse-cta-gold);
    letter-spacing: -0.5px;
}

/* Search Container */
.talkse-search-container {
    position: relative;
    width: 350px;
    flex-shrink: 0;
}

.talkse-search {
    position: relative;
    display: flex;
    align-items: center;
}

.talkse-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-gray);
    pointer-events: none;
    display: flex;
}

.talkse-search-input {
    width: 100%;
    height: 42px;
    padding: 0 40px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 15px;
    transition: var(--transition-fast);
}

.talkse-search-input:hover {
    background: var(--bg-hover);
}

.talkse-search-input:focus {
    outline: none;
    background: var(--bg-dark);
    border-color: var(--talkse-gold);
}

.talkse-search-input::placeholder {
    color: var(--text-gray);
}

.talkse-search-clear {
    position: absolute;
    right: 12px;
    padding: 4px;
    color: var(--talkse-gold);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.talkse-search-clear:hover {
    background: var(--talkse-gold-light);
}

/* Search Dropdown */
.talkse-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    max-height: 80vh;
    overflow-y: auto;
}

.search-dropdown-content {
    padding: var(--space-sm);
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-dropdown-item:hover {
    background: var(--bg-hover);
}

.search-dropdown-header {
    padding: var(--space-sm) var(--space-md);
    font-weight: 700;
    color: var(--text-white);
}

/* Header Actions */
.talkse-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.talkse-header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.talkse-header-btn:hover {
    background: var(--bg-hover);
}

.talkse-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--talkse-gold);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu */
.talkse-user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.talkse-user-menu:hover {
    background: var(--bg-hover);
}

.talkse-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--bg-input);
}

/* ==================== MAIN LAYOUT ==================== */
.talkse-layout {
    display: flex;
    justify-content: center;
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* ==================== LEFT NAVIGATION ==================== */
.talkse-left-nav {
    position: fixed;
    top: var(--header-height);
    left: max(0px, calc((100vw - var(--left-nav-width) - var(--center-feed-width) - var(--right-sidebar-width)) / 2));
    width: var(--left-nav-width);
    height: calc(100vh - var(--header-height));
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-default);
    overflow-y: auto;
}

.talkse-nav-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.talkse-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: 12px var(--space-md);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 20px;
    font-weight: 400;
    transition: var(--transition-fast);
}

.talkse-nav-item:hover {
    background: var(--bg-hover);
}

.talkse-nav-item.active {
    font-weight: 700;
}

.talkse-nav-icon {
    display: flex;
    width: 26px;
    height: 26px;
}

.talkse-nav-icon svg {
    width: 100%;
    height: 100%;
}

.talkse-nav-text {
    flex: 1;
}

.talkse-nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--talkse-gold);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Speak Button */
.talkse-speak-btn {
    margin-top: var(--space-md);
    width: 90%;
    padding: 16px;
    background: var(--talkse-cta-gold);
    border-radius: var(--radius-full);
    color: #000000;
    font-size: 17px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.talkse-speak-btn:hover {
    background: var(--talkse-cta-gold-hover);
}

/* ==================== CENTER FEED ==================== */
.talkse-center-feed {
    width: var(--center-feed-width);
    min-height: calc(100vh - var(--header-height));
    border-left: 1px solid var(--border-default);
    border-right: 1px solid var(--border-default);
}

/* Feed Tabs */
.talkse-feed-tabs {
    position: sticky;
    top: var(--header-height);
    display: flex;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
    z-index: var(--z-sticky);
}

.talkse-feed-tab {
    flex: 1;
    padding: 16px 0;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    position: relative;
    transition: var(--transition-fast);
}

.talkse-feed-tab:hover {
    background: var(--bg-hover);
}

.talkse-feed-tab.active {
    color: var(--text-white);
    font-weight: 700;
}

.talkse-feed-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--talkse-gold);
    border-radius: var(--radius-full);
}

/* ==================== NEW SPEAKS INDICATOR ==================== */
.new-speaks-indicator {
    position: sticky;
    top: calc(var(--header-height) + 49px); /* Below feed tabs */
    z-index: calc(var(--z-sticky) - 1);
    padding: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
}

.new-speaks-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--talkse-gold);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.new-speaks-btn:hover {
    background: var(--talkse-gold-light);
}

.new-speaks-btn:active {
    transform: scale(0.98);
}

.new-speaks-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.new-speaks-btn svg {
    animation: bounceUp 2s ease-in-out infinite;
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Slide down animation when first appears */
.new-speaks-indicator.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle glow effect on top */
.new-speaks-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--talkse-gold), transparent);
    opacity: 0.5;
}

/* New speak slide-in animation */
.speak-new {
    animation: speakSlideIn 0.4s ease-out;
}

@keyframes speakSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
        background: var(--talkse-gold-faint);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        background: transparent;
    }
}

/* Loading spinner for new speaks button */
.new-speaks-btn .spinner {
    animation: spin 1s linear infinite;
}

/* ==================== COMPOSE BOX ==================== */
.talkse-compose-box {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-default);
}

.talkse-compose-avatar img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--bg-input);
}

.talkse-compose-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.talkse-compose-input {
    min-height: 56px;
    padding: var(--space-md) 0;
    font-size: 20px;
    color: var(--text-white);
    outline: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.talkse-compose-input:empty::before {
    content: attr(data-placeholder);
    color: var(--text-gray);
}

.talkse-compose-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-default);
}

.talkse-compose-tools {
    display: flex;
    gap: var(--space-xs);
}

.talkse-compose-tool {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--talkse-gold);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.talkse-compose-tool:hover {
    background: var(--talkse-gold-light);
}

.talkse-compose-tool:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.talkse-compose-submit {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.talkse-compose-counter {
    font-size: 14px;
    color: var(--text-gray);
}

.talkse-compose-counter.warning {
    color: var(--warning);
}

.talkse-compose-counter.error {
    color: var(--error);
}

.talkse-speak-submit-btn {
    padding: 8px 16px;
    background: var(--talkse-cta-gold);
    border-radius: var(--radius-full);
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.talkse-speak-submit-btn:hover:not(:disabled) {
    background: var(--talkse-cta-gold-hover);
}

.talkse-speak-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== SPEAKS LIST ==================== */
.talkse-speaks-list {
    display: flex;
    flex-direction: column;
}

/* Loading Spinner */
.talkse-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    color: var(--text-gray);
}

.talkse-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-default);
    border-top-color: var(--talkse-gold);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

/* @keyframes spin - defined in global.css */

.talkse-load-more {
    display: flex;
    justify-content: center;
    padding: var(--space-lg);
}

/* ==================== SPEAK CARD ==================== */
.talkse-speak {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-default);
    cursor: pointer;
    transition: var(--transition-fast);
}

.talkse-speak:hover {
    background: var(--bg-hover);
}

.talkse-speak-avatar img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--bg-input);
}

.talkse-speak-main {
    flex: 1;
    min-width: 0;
}

.talkse-speak-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.talkse-speak-name {
    font-weight: 700;
    color: var(--text-white);
}

.talkse-speak-verified {
    color: var(--verified-gold);
    display: flex;
}

.talkse-speak-username,
.talkse-speak-time {
    color: var(--text-gray);
    font-size: 15px;
}

.talkse-speak-more {
    margin-left: auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.talkse-speak-more:hover {
    background: var(--talkse-gold-light);
    color: var(--talkse-gold);
}

.talkse-speak-content {
    margin-top: var(--space-xs);
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.talkse-speak-content .talkse-hashtag,
.talkse-speak-content .talkse-mention {
    color: var(--talkse-gold);
    text-decoration: none;
}

.talkse-speak-content .talkse-hashtag:hover,
.talkse-speak-content .talkse-mention:hover {
    text-decoration: underline;
}

.talkse-speak-content .talkse-link {
    color: var(--talkse-gold);
    text-decoration: none;
}

.talkse-speak-content .talkse-link:hover {
    text-decoration: underline;
}

/* Media Grid */
.talkse-speak-media {
    margin-top: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-default);
}

.talkse-speak-media img,
.talkse-speak-media video {
    width: 100%;
    max-height: 510px;
    object-fit: cover;
}

.talkse-speak-media-grid {
    display: grid;
    gap: 2px;
}

.talkse-speak-media-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.talkse-speak-media-grid.grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.talkse-speak-media-grid.grid-3 > :first-child {
    grid-row: span 2;
}

.talkse-speak-media-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* Poll */
.talkse-speak-poll {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.talkse-poll-option {
    padding: 12px var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--talkse-gold);
    border-radius: var(--radius-md);
    color: var(--talkse-gold);
    font-weight: 500;
    text-align: center;
    transition: var(--transition-fast);
}

.talkse-poll-option:hover {
    background: var(--talkse-gold-light);
}

.talkse-poll-option.voted {
    background: var(--talkse-gold);
    color: white;
}

.talkse-poll-bar {
    position: relative;
    padding: 12px var(--space-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.talkse-poll-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--talkse-gold-light);
    transition: width 0.5s ease;
}

.talkse-poll-bar-text {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.talkse-poll-info {
    margin-top: var(--space-sm);
    font-size: 13px;
    color: var(--text-gray);
}

/* Fact Check */
.talkse-fact-check {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--talkse-gold-faint);
    border: 1px solid var(--talkse-gold);
    border-radius: var(--radius-md);
}

.talkse-fact-check-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--talkse-gold);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.talkse-fact-check-message {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: var(--space-sm);
}

.talkse-fact-check-sources a {
    color: var(--talkse-gold);
    font-size: 13px;
}

.talkse-fact-check-note {
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    margin-top: var(--space-sm);
}

/* Edit History Badge */
.talkse-edit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: var(--space-sm);
    padding: 2px 6px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-gray);
    cursor: pointer;
}

.talkse-edit-badge:hover {
    color: var(--talkse-gold);
}

/* Speak Actions */
.talkse-speak-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: var(--space-md);
}

.talkse-speak-action {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    color: var(--text-gray);
    font-size: 13px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.talkse-speak-action:hover {
    background: var(--talkse-gold-light);
    color: var(--talkse-gold);
}

.talkse-speak-action.reply:hover,
.talkse-speak-action.reply.active {
    background: var(--reply-blue-light);
    color: var(--reply-blue);
}

.talkse-speak-action.echo:hover,
.talkse-speak-action.echo.active {
    background: var(--echo-green-light);
    color: var(--echo-green);
}

.talkse-speak-action.spark:hover,
.talkse-speak-action.spark.active {
    background: var(--spark-orange-light);
    color: var(--spark-orange);
}

.talkse-speak-action.save:hover,
.talkse-speak-action.save.active {
    background: var(--save-gold-light);
    color: var(--save-gold);
}

.talkse-speak-action.share:hover {
    background: var(--talkse-gold-light);
    color: var(--talkse-gold);
}

/* ==================== RIGHT SIDEBAR ==================== */
.talkse-right-sidebar {
    position: fixed;
    top: var(--header-height);
    right: max(0px, calc((100vw - var(--left-nav-width) - var(--center-feed-width) - var(--right-sidebar-width)) / 2));
    width: var(--right-sidebar-width);
    height: calc(100vh - var(--header-height));
    padding: var(--space-md) var(--space-lg);
    overflow-y: auto;
}

.talkse-sidebar-search {
    display: none;
}

.talkse-sidebar-section {
    margin-bottom: var(--space-lg);
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.talkse-sidebar-title {
    padding: var(--space-md);
    font-size: 20px;
    font-weight: 800;
}

/* Who to Listen to */
.talkse-suggestions {
    display: flex;
    flex-direction: column;
}

.talkse-suggestion {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    transition: var(--transition-fast);
    cursor: pointer;
}

.talkse-suggestion:hover {
    background: var(--bg-hover);
}

.talkse-suggestion-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--bg-input);
    flex-shrink: 0;
}

.talkse-suggestion-info {
    flex: 1;
    min-width: 0;
}

.talkse-suggestion-name {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    font-size: 15px;
}

.talkse-suggestion-username {
    font-size: 13px;
    color: var(--text-gray);
}

.talkse-listen-btn {
    padding: 8px 16px;
    background: var(--text-white);
    border-radius: var(--radius-full);
    color: var(--bg-dark);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.talkse-listen-btn:hover {
    background: #d7dbdc;
}

.talkse-listen-btn.listening {
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-white);
}

.talkse-listen-btn.listening:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Rising */
.talkse-rising {
    display: flex;
    flex-direction: column;
}

.talkse-rising-item {
    padding: var(--space-md);
    transition: var(--transition-fast);
    cursor: pointer;
}

.talkse-rising-item:hover {
    background: var(--bg-hover);
}

.talkse-rising-category {
    font-size: 13px;
    color: var(--text-gray);
}

.talkse-rising-hashtag {
    font-weight: 700;
    font-size: 15px;
    margin-top: 2px;
}

.talkse-rising-count {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 2px;
}

.talkse-show-more {
    display: block;
    padding: var(--space-md);
    color: var(--talkse-gold);
    font-size: 15px;
    transition: var(--transition-fast);
}

.talkse-show-more:hover {
    background: var(--bg-hover);
}

/* Sidebar Footer */
.talkse-sidebar-footer {
    padding: var(--space-md);
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
}

.talkse-sidebar-footer a {
    color: var(--text-gray);
}

.talkse-sidebar-footer a:hover {
    text-decoration: underline;
}

/* ==================== SKELETON LOADERS ==================== */
.talkse-suggestion-skeleton,
.talkse-rising-skeleton {
    padding: var(--space-md);
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    animation: pulse 1.5s infinite;
}

.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.skeleton-line {
    height: 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    animation: pulse 1.5s infinite;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== MOBILE BOTTOM NAV ==================== */
.talkse-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: var(--bg-dark);
    border-top: 1px solid var(--border-default);
    z-index: var(--z-mobile-nav);
}

.talkse-mobile-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    position: relative;
}

.talkse-mobile-nav-item.active {
    color: var(--talkse-gold);
}

.talkse-mobile-speak-btn {
    background: var(--talkse-cta-gold);
    border-radius: var(--radius-full);
    width: 56px;
    height: 36px;
    margin: 0 var(--space-sm);
    color: #000000;
}

.talkse-mobile-badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--talkse-gold);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.talkse-mobile-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid transparent;
}

.talkse-mobile-nav-item.active .talkse-mobile-avatar {
    border-color: var(--talkse-gold);
}

/* ==================== MOBILE MENU ==================== */
.talkse-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(91, 112, 131, 0.4);
    z-index: var(--z-modal-backdrop);
}

.talkse-mobile-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-dark);
    z-index: var(--z-modal);
    overflow-y: auto;
    animation: slideInLeft 0.2s ease;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.talkse-mobile-menu-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
}

.talkse-mobile-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.talkse-mobile-menu-user {
    flex: 1;
}

.talkse-mobile-menu-name {
    font-weight: 700;
}

.talkse-mobile-menu-username {
    font-size: 14px;
    color: var(--text-gray);
}

.talkse-mobile-menu-stats {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    font-size: 14px;
    color: var(--text-gray);
}

.talkse-mobile-menu-stats strong {
    color: var(--text-white);
}

.talkse-mobile-menu-divider {
    height: 1px;
    background: var(--border-default);
    margin: var(--space-sm) 0;
}

.talkse-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    color: var(--text-white);
    font-size: 20px;
    font-weight: 700;
}

.talkse-mobile-menu-item:hover {
    background: var(--bg-hover);
}

.talkse-logout-btn {
    color: var(--error);
}

/* ==================== COMPOSE MODAL ==================== */
.talkse-compose-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(91, 112, 131, 0.4);
    z-index: var(--z-modal-backdrop);
}

.talkse-compose-modal-content {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    z-index: var(--z-modal);
    max-height: 90vh;
    overflow-y: auto;
}

.talkse-compose-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-default);
}

.talkse-compose-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.talkse-compose-modal-close:hover {
    background: var(--bg-hover);
}

.talkse-compose-modal-submit {
    padding: 8px 16px;
    background: var(--talkse-cta-gold);
    border-radius: var(--radius-full);
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.talkse-compose-modal-submit:hover:not(:disabled) {
    background: var(--talkse-cta-gold-hover);
}

.talkse-compose-modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.talkse-compose-modal-body {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
}

.talkse-compose-modal-input-container {
    flex: 1;
}

.talkse-compose-modal-input {
    min-height: 150px;
    padding: var(--space-sm) 0;
    font-size: 20px;
    color: var(--text-white);
    outline: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.talkse-compose-modal-input:empty::before {
    content: attr(data-placeholder);
    color: var(--text-gray);
}

.talkse-compose-modal-tools {
    display: flex;
    gap: var(--space-xs);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-default);
}

.talkse-compose-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-default);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets and smaller (< 1280px) */
@media (max-width: 1280px) {
    .talkse-right-sidebar {
        display: none;
    }

    .talkse-layout {
        padding-right: 0;
    }
}

/* Tablets (< 1024px) */
@media (max-width: 1024px) {
    .talkse-left-nav {
        width: 72px;
        padding: var(--space-sm);
    }

    .talkse-nav-text,
    .talkse-nav-badge {
        display: none;
    }

    .talkse-nav-item {
        justify-content: center;
        padding: 12px;
    }

    .talkse-speak-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .talkse-speak-btn::before {
        content: '+';
        font-size: 28px;
        font-weight: 300;
    }

    .talkse-center-feed {
        margin-left: 72px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .talkse-header-inner {
        padding: 0 var(--space-sm);
    }

    .talkse-search-container {
        display: none;
    }

    .talkse-left-nav {
        display: none;
    }

    .talkse-center-feed {
        width: 100%;
        margin-left: 0;
        border-left: none;
        border-right: none;
    }

    .talkse-mobile-nav {
        display: flex;
    }

    .talkse-layout {
        padding-bottom: var(--mobile-nav-height);
    }

    .talkse-compose-modal-content {
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
}

/* Small phones (< 480px) */
@media (max-width: 480px) {
    .talkse-speak {
        padding: var(--space-sm);
    }

    .talkse-speak-actions {
        justify-content: space-around;
    }

    .talkse-speak-action span:last-child {
        display: none;
    }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-section);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
}

.toast.exiting {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--error);
}

.toast-warning .toast-icon {
    color: var(--warning);
}

.toast-info .toast-icon {
    color: var(--talkse-gold);
}

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

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-gray);
}

.toast-close {
    flex-shrink: 0;
    padding: 4px;
    color: var(--text-gray);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}

/* ==================== UTILITIES ==================== */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--talkse-gold);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--talkse-gold);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-active);
}
