/* UnyHub Custom Styles - Extracted from wireframe */

/* Alpine.js cloak: hide elements until Alpine initializes */
[x-cloak] { display: none !important; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #fff;
    color: #0f1419;
}

/* Layout */
.app-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 275px;
    padding: 0 12px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    flex: 1;
}

.logo {
    margin-bottom: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

.logo img {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: contain;
}

.logo:hover {
    background: rgba(255, 95, 31, 0.1);
}

/* Responsive logo adjustments */
@media (max-width: 1200px) {
    .logo img {
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-width: 120px;
    }
}

.nav-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 4px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #0f1419;
    font-size: 20px;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 95, 31, 0.1);
}

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

.nav-icon {
    width: 26px;
    height: 26px;
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff5f1f;
}

.nav-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.badge {
    margin-left: 8px;
    background: #ff5f1f;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.achievements-section {
    margin-top: 20px;
    padding: 16px;
    background: #f7f9f9;
    border-radius: 16px;
}

.section-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f1419;
    margin-bottom: 12px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.achievement-item {
    text-align: center;
    padding: 12px 8px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.achievement-icon {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon .badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.achievement-icon .badge-icon::before {
    border-radius: 8px;
}

.achievement-icon .badge-icon svg {
    width: 24px;
    height: 24px;
}

.achievement-label {
    font-size: 10px;
    color: #536471;
    font-weight: 500;
}

.user-profile-section {
    margin-top: auto;
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-section:hover {
    background: rgba(0, 0, 0, 0.03);
}

.avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.points {
    font-size: 12px;
    color: #ff5f1f;
    font-weight: 600;
}

.fire-icon {
    color: #ff5f1f;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 275px;
    border-left: 1px solid #eff3f4;
    border-right: 1px solid #eff3f4;
    min-height: 100vh;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: 700;
    font-size: 15px;
    color: #0f1419;
}

.user-handle {
    font-size: 14px;
    color: #536471;
}

.reputation {
    font-size: 12px;
    color: #ff5f1f;
    font-weight: 600;
}

/* Feed Tabs */
.feed-tabs {
    display: flex;
    border-bottom: 1px solid #eff3f4;
}

.tab {
    flex: 1;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    color: #536471;
    position: relative;
    background: none;
    border: none;
}

.tab:hover {
    background: rgba(0, 0, 0, 0.03);
}

.tab.active {
    color: #0f1419;
    font-weight: 700;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff5f1f;
    border-radius: 4px 4px 0 0;
}

/* Post Composer */
.post-composer {
    padding: 16px;
    border-bottom: 8px solid #eff3f4;
}

.composer-header {
    display: flex;
    gap: 12px;
}

.compose-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    resize: none;
    min-height: 60px;
    font-family: inherit;
    font-size: 20px;
    color: #0f1419;
}

.compose-input::placeholder {
    color: #536471;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eff3f4;
}

.composer-tools {
    display: flex;
    gap: 4px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 18px;
}

.tool-btn:hover {
    background: rgba(255, 95, 31, 0.1);
}

.post-btn {
    padding: 8px 20px;
    background: #ff5f1f;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s;
}

.post-btn:hover {
    background: #e5561b;
}

.post-btn:disabled {
    background: #ff5f1f;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Post Card */
.post-card {
    padding: 16px;
    border-bottom: 1px solid #eff3f4;
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.post-card:hover {
    background: rgba(0, 0, 0, 0.03);
}

.post-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 40px;
}

.vote-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #cfd9de;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #536471;
    transition: all 0.2s;
}

.vote-btn:hover {
    background: rgba(255, 95, 31, 0.1);
    border-color: #ff5f1f;
    color: #ff5f1f;
}

.vote-btn.upvote.active {
    background: #ff5f1f;
    border-color: #ff5f1f;
    color: white;
}

.vote-btn.downvote.active {
    background: #6b7280;
    border-color: #6b7280;
    color: white;
}

.vote-btn.downvote:hover {
    background: rgba(107, 114, 128, 0.1);
    border-color: #6b7280;
    color: #6b7280;
}

.vote-count {
    font-size: 13px;
    font-weight: 700;
    color: #536471;
    min-height: 18px;
}

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

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

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.author-name {
    display: flex;
    align-items: center;
    gap: 4px;
}

.author-name strong {
    font-size: 15px;
    font-weight: 700;
    color: #0f1419;
}

.author-name strong:hover {
    text-decoration: underline;
}

.role-badge {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.role-badge.moderator {
    background: #8b5cf6;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #536471;
}

.community-tag {
    color: #ff5f1f;
    font-weight: 500;
}

.community-tag:hover {
    text-decoration: underline;
}

.meta-separator {
    color: #536471;
}

.more-btn {
    margin-left: auto;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #536471;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-btn:hover {
    background: rgba(255, 95, 31, 0.1);
    color: #ff5f1f;
}

.post-content {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 15px;
    color: #0f1419;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-image {
    width: 100%;
    max-height: 400px;
    background: #f7f9f9;
    border: 1px solid #eff3f4;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #536471;
    overflow: hidden;
}

.read-more {
    color: #ff5f1f;
    cursor: pointer;
    font-weight: 400;
}

.read-more:hover {
    text-decoration: underline;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    max-width: 425px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #536471;
    transition: all 0.2s;
}

.action-btn:hover {
    color: #ff5f1f;
}

.action-btn:hover .action-icon-wrapper {
    background: rgba(255, 95, 31, 0.1);
}

.action-btn.comment:hover {
    color: #1d9bf0;
}

.action-btn.comment:hover .action-icon-wrapper {
    background: rgba(29, 155, 240, 0.1);
}

.action-btn.like.active {
    color: #f91880;
}

.action-btn.like.active .action-icon-wrapper {
    background: rgba(249, 24, 128, 0.1);
}

.action-btn.bookmark.active {
    color: #1d9bf0;
}

.action-btn.bookmark.active .action-icon-wrapper {
    background: rgba(29, 155, 240, 0.1);
}

.action-icon-wrapper {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.action-icon {
    font-size: 18px;
}

/* SVG Icons */
.icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
}

/* Right Sidebar */
.right-sidebar {
    width: 350px;
    padding: 20px 20px 20px 32px;
    margin-left: auto;
    height: 100vh;
    overflow-y: auto;
}

.search-container {
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: 12px;
    z-index: 10;
}

.search-bar {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #eff3f4;
    border-radius: 30px;
    background: #eff3f4;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.search-bar:focus {
    background: #fff;
    border-color: #ff5f1f;
}

.search-bar::placeholder {
    color: #536471;
}

.widget {
    background: #f7f9f9;
    padding: 0;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.widget-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f1419;
    padding: 16px 16px 12px 16px;
}

.widget-content {
    padding: 0;
}

a.trending-topic-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.trending-topic {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.trending-topic:hover {
    background: rgba(0, 0, 0, 0.03);
}

.topic-title {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 15px;
    color: #0f1419;
}

.topic-count {
    font-size: 13px;
    color: #536471;
}

.community-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.community-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.community-name {
    font-weight: 600;
    font-size: 15px;
    color: #0f1419;
}

.join-btn {
    padding: 4px 12px;
    background: #0f1419;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s;
}

.join-btn:hover {
    background: #2f3336;
}

.leaderboard-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.leaderboard-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.rank {
    font-size: 15px;
    font-weight: 700;
    color: #536471;
    min-width: 24px;
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 15px;
    color: #0f1419;
}

/* Responsive */
@media (max-width: 1000px) {
    .right-sidebar {
        display: none;
    }

    .main-content {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 68px;
        padding: 4px;
    }

    .nav-item span:not(.nav-icon),
    .achievements-section,
    .user-info {
        display: none;
    }

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

    .user-profile-section {
        padding: 12px;
        justify-content: center;
    }

    .main-content {
        margin-left: 68px;
        border-left: none;
    }

    .logo {
        margin-left: 8px;
    }
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f1419;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #536471;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Rich Text Formatting Styles */
.post-content, .text-gray-900 {
    color: #000000;
}

.post-content strong, .text-gray-900 strong {
    font-weight: 700;
    color: #000000;
}

.post-content em, .text-gray-900 em {
    font-style: italic;
    color: #000000;
}

.post-content code, .text-gray-900 code {
    background: #f7f9f9;
    border: 1px solid #eff3f4;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.9em;
    color: #e01e5a;
}

.post-content pre, .text-gray-900 pre {
    background: #f7f9f9;
    border: 1px solid #eff3f4;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.9em;
}

.post-content pre code, .text-gray-900 pre code {
    background: none;
    border: none;
    padding: 0;
    color: #000000;
}

.post-content ul, .text-gray-900 ul {
    list-style: none;
    margin: 12px 0;
    padding-left: 0;
}

.post-content ul li, .text-gray-900 ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.post-content ul li:before, .text-gray-900 ul li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #ff5f1f;
    font-weight: bold;
}

.post-content ol, .text-gray-900 ol {
    list-style: decimal;
    margin: 12px 0;
    padding-left: 24px;
}

.post-content ol li, .text-gray-900 ol li {
    margin-bottom: 8px;
}

/* Links within rendered markdown content only */
.post-content p a,
.post-content li a,
.post-content strong a,
.post-content em a,
.text-gray-900 p a,
.text-gray-900 li a,
.text-gray-900 strong a,
.text-gray-900 em a {
    color: #195a79;
    text-decoration: none;
}

.post-content p a:hover,
.post-content li a:hover,
.post-content strong a:hover,
.post-content em a:hover,
.text-gray-900 p a:hover,
.text-gray-900 li a:hover,
.text-gray-900 strong a:hover,
.text-gray-900 em a:hover {
    text-decoration: underline;
}

/* Prevent wrapper links from showing underline */
a.block .post-content,
a.block .text-gray-900 {
    text-decoration: none !important;
}

.post-content blockquote, .text-gray-900 blockquote {
    border-left: 4px solid #ff5f1f;
    padding-left: 16px;
    margin: 12px 0;
    color: #536471;
    font-style: italic;
}

/* Toast UI Editor Customization */
.toastui-editor-defaultUI {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
}

.toastui-editor-defaultUI-toolbar {
    background-color: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.5rem !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.toastui-editor-toolbar-icons {
    background-color: transparent !important;
    border: none !important;
    color: #4b5563 !important;
    padding: 0.375rem !important;
    border-radius: 0.25rem !important;
    transition: background-color 0.2s !important;
}

.toastui-editor-toolbar-icons:hover {
    background-color: #e5e7eb !important;
}

.toastui-editor-toolbar-icons.active {
    background-color: #ff5f1f !important;
    color: white !important;
}

.toastui-editor-contents {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #000000 !important;
    padding: 0.75rem 1rem !important;
}

.toastui-editor-contents p {
    margin: 0 0 0.5rem 0 !important;
    color: #000000 !important;
}

.toastui-editor-contents strong {
    font-weight: 700 !important;
    color: #000000 !important;
}

.toastui-editor-contents em {
    font-style: italic !important;
    color: #000000 !important;
}

.toastui-editor-contents code {
    background: #f7f9f9 !important;
    border: 1px solid #eff3f4 !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace !important;
    font-size: 0.9em !important;
    color: #e01e5a !important;
}

.toastui-editor-contents pre {
    background: #f7f9f9 !important;
    border: 1px solid #eff3f4 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 12px 0 !important;
}

/* Links within editor content only */
.toastui-editor-contents p a,
.toastui-editor-contents li a,
.toastui-editor-contents strong a,
.toastui-editor-contents em a {
    color: #195a79 !important;
    text-decoration: none !important;
}

.toastui-editor-contents p a:hover,
.toastui-editor-contents li a:hover,
.toastui-editor-contents strong a:hover,
.toastui-editor-contents em a:hover {
    text-decoration: underline !important;
}

.toastui-editor-contents ul,
.toastui-editor-contents ol {
    margin: 12px 0 !important;
    padding-left: 1.5rem !important;
}

.toastui-editor-contents ul li {
    list-style-type: disc !important;
    margin-bottom: 0.5rem !important;
}

.toastui-editor-contents ol li {
    list-style-type: decimal !important;
    margin-bottom: 0.5rem !important;
}

/* Editor in post composer */
.composer-header .toastui-editor-defaultUI {
    border: none !important;
    border-radius: 0 !important;
}

.composer-header .toastui-editor-defaultUI-toolbar {
    border-radius: 0 !important;
}

/* Make character counter work with editor */
.toastui-editor-ww-container {
    min-height: 100px !important;
}

/* Collapsed editor state - hide toolbar until focused */
.editor-collapsed .toastui-editor-defaultUI-toolbar {
    display: none !important;
}

.editor-collapsed .toastui-editor-defaultUI {
    border: 1px solid #e5e7eb !important;
}

.editor-collapsed .toastui-editor-contents {
    min-height: 50px !important;
}

/* Smooth transition for editor expansion */
.toastui-editor-defaultUI-toolbar {
    transition: all 0.2s ease-in-out !important;
}

/* Contain editor popups within the editor area */
.toastui-editor-defaultUI {
    position: relative !important;
    z-index: 0 !important;
}
.toastui-editor-popup,
.toastui-editor-tooltip {
    z-index: 10 !important;
}

/* ===== Reddit-style Comment Threading ===== */
.comment-node {
    position: relative;
}

/* Nested children indentation with thread line */
.comment-children {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 2px solid #e5e7eb;
}

.comment-children:hover {
    border-left-color: #d1d5db;
}

.comment-children:empty {
    margin: 0;
    padding: 0;
    border: none;
}

/* Top-level comment separator */
.comment-node:not(.comment-children .comment-node) {
    border-bottom: 1px solid #f3f4f6;
}

/* ===== Feed Header ===== */
.feed-header {
    padding: 16px;
    border-bottom: 1px solid #eff3f4;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ===== Notification Badge ===== */
/* Nav item glow for active quiz */
.nav-item--glow {
    animation: navGlow 2s ease-in-out infinite;
}

.nav-item--glow .nav-icon {
    color: #ff5f1f;
}

@keyframes navGlow {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 95, 31, 0.1); }
}

.nav-live-dot {
    width: 8px;
    height: 8px;
    background: #ff5f1f;
    border-radius: 50%;
    margin-left: 6px;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-item .badge {
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    line-height: 1;
}

/* ===== Bookmark Active State ===== */
.action-btn.bookmark.active {
    color: #ffd700;
}

.action-btn.bookmark.active .action-icon-wrapper {
    background: rgba(255, 215, 0, 0.1);
}

/* ===== Notification Item Styles ===== */
.notification-item {
    transition: background 0.2s ease;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notification-item.unread {
    background: rgba(255, 95, 31, 0.02);
    border-left-color: #ff5f1f;
}
