@import url('https://fonts.googleapis.com/css2?family=Emblema+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

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

body {
    background-color: #ffffff;
    color: #000000;
    transition: background-color 0.3s, color 0.3s;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #a7a1aae5;
    border-radius: 5px;
}

.bi-chat {
    cursor: pointer;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-logo {
    font-size: 2rem;
    font-weight: bolder;
    text-decoration: none;
    color: inherit;
    font-family: 'Noe Display';
    margin-right: 40px;
    margin-left: 5px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #ccc;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
}

.search-container.expanded {
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 14px 10px;
    border: 1px solid #cccccc71;
    border-radius: 25px;
    padding-left: 2.5rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #c1c1c1;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    padding-left: 2.5rem;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: none;
    z-index: 1000;
}

.search-container.expanded .search-suggestions {
    display: block;
}

.trending-section h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 220px;
    overflow-y: auto;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.trending-item:hover {
    background-color: #f5f5f5;
}

.trending-item i {
    color: #000000;
    font-size: 0.9rem;
}

.trending-item span {
    font-size: 0.95rem;
    color: #333;
}

.bi-box-arrow-in-down-left {
    font-size: 1.5rem;
    cursor: pointer;
    color: #9c9c9c;
}

.bi-box-arrow-in-down-left:hover {
    color: #5f5f5f;
}

.create {
    display: flex;
    align-items: center;
    margin-left: 60%;
    display: inline-block;
}

.create span {
    font-size: 1.5rem;
    margin-left: 5px;
    color: #9c9c9c;
    cursor: pointer;
}

.bell-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #838383;
    margin-left: 30px;
}

.profile-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.profile-icon:hover {
    width: 35px;
    height: 35px;
    border-radius: 30%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notifications-panel {
    position: fixed;
    top: 60px;
    right: 30px;
    width: 350px;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    display: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-family: "Open Sans", sans-serif;
}

.notifications-panel::-webkit-scrollbar {
    display: none;
}

.notifications-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.notifications-header h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.notifications-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #757575;
}

.tab.active {
    color: #000;
    border-bottom: 1px solid #000;
}

.notifications-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.notifications-status {
    color: #757575;
}

.notifications-stats {
    color: #1a8917;
    text-decoration: none;
}

.writing-box {
    background-color: #f2f8ff;
    padding: 20px;
    margin: 20px;
    border-radius: 4px;
    position: relative;
}

.writing-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.writing-header h2 {
    font-size: 1.2rem;
    font-family: "Open Sans", sans-serif;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #757575;
}

.writing-links {
    list-style: none;
    margin-bottom: 20px;
}

.writing-links li {
    margin-bottom: 10px;
}

.writing-links a {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
}

.start-writing-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.recommended {
    padding: 20px;
}

.recommended h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: "Open Sans", sans-serif;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.topic-tag {
    background-color: #f2f2f2;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.2s;
}

.topic-tag:hover {
    background-color: rgba(250, 235, 215, 0.76);
}

.see-more {
    display: block;
    color: #757575;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 10px;
}

/* Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    font-family: "Open Sans", sans-serif;
}

/* Updated Navigation Tabs */
.nav-tabs-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.5rem;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    margin-left: 50px;
    margin-right: 50px;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 30%;
    background: #fff;
    border: 1px solid #eaeaea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: #f5f5f5;
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}

.scroll-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-tabs button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-tabs button:hover {
    background-color: rgb(237, 237, 237);
    transition: all 0.3s ease;
}

.nav-tabs button.active {
    background-color: #000;
    color: #fff;
}

.nav-tabs .icon-btn {
    padding: 8px;
    font-size: 1.2rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    min-width: 36px;
    height: 36px;
    margin-right: 8px;
}

.nav-tabs .icon-btn:hover {
    background-color: #f5f5f5;
}

.nav-tabs .icon-btn .bi-plus {
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .nav-tabs {
        gap: 1rem;
    }

    .scroll-button {
        width: 28px;
        height: 28px;
    }

    .nav-tabs {
        gap: 0.5rem;
        padding-left: 32px;
        padding-right: 32px;
    }

    .nav-tabs button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .scroll-button {
        width: 28px;
        height: 28px;
    }

    .nav-tabs .icon-btn {
        min-width: 32px;
        height: 32px;
        margin-right: 4px;
    }
}

/* Article cards */
.article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .article {
        grid-template-columns: 2fr 1fr;
    }
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.author-avatar {
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.avatar-eh {
    background-color: #000;
}

.avatar-m {
    background-color: #3b82f6;
    border-radius: 50%;
}

.avatar-in {
    background-color: #22c55e;
}

.avatar-tu {
    background-color: #eab308;
}

.avatar-uc {
    background-color: #06b6d4;
}

.verified-icon {
    color: #3b82f6;
    fill: #3b82f6;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.article-title {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.3;
    cursor: pointer;
}

.article-title:hover {
    text-decoration: underline;
    cursor: pointer;
}

.article-description {
    color: #666;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star-icon {
    color: #f59e0b;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    font-weight: bold;
    position: relative;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    object-fit: cover;
}

.image-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-name {
    font-weight: 500;
    position: relative;
}

.author-name:hover .author-card {
    display: block;
}

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

.profile-dropdown {
    position: fixed;
    top: 60px;
    right: 30px;
    width: 280px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    font-family: "Open Sans", sans-serif;
}

.profile-section {
    padding: 12px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: #292929;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.profile-item:hover {
    background-color: #f2f2f2;
}

.profile-item i {
    font-size: 1.2rem;
    color: #757575;
}

.profile-divider {
    height: 1px;
    background-color: #e6e6e6;
    margin: 8px 0;
}

.profile-footer {
    padding: 12px;
    font-size: 0.9rem;
    color: #757575;
}

.profile-email {
    padding: 8px 12px;
    color: #757575;
    font-size: 0.9rem;
}

.article-options-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: 240px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    font-family: "Open Sans", sans-serif;
}

.options-section {
    padding: 8px 0;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: #292929;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.option-item:hover {
    background-color: #f2f2f2;
}

.option-item i {
    font-size: 1.1rem;
    color: #757575;
}

.option-divider {
    height: 1px;
    background-color: #e6e6e6;
    margin: 8px 0;
}

/* Author Card Styles */
.author-card {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    font-family: "Open Sans", sans-serif;
}

.author-name:hover .author-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.author-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.04);
}

.author-card-header {
    display: flex;
    flex-direction: row;
    /* Ensure horizontal layout */
    gap: 16px;
    margin-bottom: 12px;
}

.author-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-card-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    /* Prevent shrinking */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    order: -1;
    /* Move to the left */
}

.author-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-card-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

.author-card-follow {
    width: 100%;
    padding: 6px;
    background: #000;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.author-card-follow:hover {
    background: #333;
}

.author-card-follow.following {
    background: white;
    color: #000;
    border: 1px solid #000;
}

.author-card-divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

.author-card-recent {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.recent-post:hover {
    background: #f5f5f5;
}

.recent-post img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.recent-post-title {
    font-size: 0.9rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background-color: #393939;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 30%;
}

.recommendations-card {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: "Open Sans", sans-serif;
    animation: fadeIn 0.3s ease;
}

.recommendations-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.recommendations-card-header .content {
    flex: 1;
}

.close-icon {
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-icon:hover {
    color: #eaacac;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Add overlay style */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.recommendations-card h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.recommendations-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.rec-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.rec-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent tab text from breaking */
}

.rec-tab:hover {
    background: rgba(0, 0, 0, 0.05);
}

.rec-tab.active {
    background: #000;
    color: #fff;
}

.rec-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.writers-section h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

.writer-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 300px;
    overflow-y: auto;
}

.writer-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;

}

.writer-avatar {
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.writer-info {
    flex: 1;
}

.writer-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.writer-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.follow-btn {
    padding: 6px 16px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #000;
    color: #fff;
}

.follow-btn.following {
    background: #000;
    color: #fff;
}

.following-section {
    display: none;
    /* Hidden by default */
    margin-top: 20px;
}

.following-section h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

/* Add these new avatar color classes */
.writer-avatar.color-1 {
    background-color: #FF6B6B;
}

.writer-avatar.color-2 {
    background-color: #4ECDC4;
}

.writer-avatar.color-3 {
    background-color: #45B7D1;
}

.writer-avatar.color-4 {
    background-color: #96CEB4;
}

.writer-avatar.color-5 {
    background-color: #FFEEAD;
    color: #333;
}

.writer-avatar.color-6 {
    background-color: #D4A5A5;
}

.writer-avatar.color-7 {
    background-color: #9B59B6;
}

.writer-avatar.color-8 {
    background-color: #3498DB;
}

.writer-avatar.color-9 {
    background-color: #1ABC9C;
}

.writer-avatar.color-10 {
    background-color: #F1C40F;
    color: #333;
}

.reading-section {
    display: none;
}

.reading-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.topic-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.topic-item:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.topic-banner {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.topic-content {
    flex: 1;
}

.topic-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.topic-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .topic-list {
        grid-template-columns: 1fr;
    }
}

.reading-section {
    display: none;
    margin-top: 20px;
}

.reading-section h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 300px;
    overflow-y: auto;
}

.topic-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-item:hover {
    background-color: #f5f5f5;
}

.topic-banner {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.topic-content {
    flex: 1;
}

.topic-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #333;
}

.topic-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

.floating-editor {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 700px;
    height: 500px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(16.3px);
    -webkit-backdrop-filter: blur(16.3px);
    border: 1px solid rgb(201, 201, 201);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.editor-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #f5f5f5;
}

.editor-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-btn {
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f5f5f5;
}

.publish-btn {
    padding: 8px 16px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

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

.title-input,
.content-input {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Noe Display';
}

.title-input {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    min-height: 36px;
}

.content-input {
    font-size: 16px;
    line-height: 1.6;
    min-height: 200px;
}

[contenteditable=true]:empty:before {
    content: attr(data-placeholder);
    color: #999;
}

.formatting-toolbar {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    align-items: center;
}

.format-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.format-btn:hover {
    background: #f5f5f5;
}

.format-btn.active {
    background: #eee;
    color: #000;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #eee;
    margin: 0 4px;
}

.floating-editor.expanded {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
}