@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --primary: #be185d;
    --primary-dark: #9d174d;
    --primary-soft: #fdf2f8;
    --ink: #18181b;
}

* {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
}

.brand-font {
    font-family: 'Playfair Display', serif;
}

.top-utility-bar {
    background: #18181b;
    color: #d4d4d8;
    font-size: 0.8rem;
}

.main-nav-layer {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #f4f4f5;
}

.category-nav-layer {
    background: #ffffff;
    border-bottom: 1px solid #e4e4e7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #52525b;
    background: #f4f4f5;
    transition: all 0.22s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}

.category-pill:hover,
.category-pill.active {
    background: #fdf2f8;
    color: #be185d;
    border-color: #fbcfe8;
    transform: translateY(-1px);
}

/* CKEditor / Summernote / Rich Text Overflow Containment */
.rich-content-container {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-content-container table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.rich-content-container th,
.rich-content-container td {
    border: 1px solid #e4e4e7;
    padding: 0.5rem 0.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
}
.rich-content-container th {
    background-color: #f4f4f5;
    font-weight: 600;
}

.rich-content-container img,
.rich-content-container iframe,
.rich-content-container video,
.rich-content-container object,
.rich-content-container embed {
    max-width: 100% !important;
    height: auto !important;
}

.rich-content-container .h-px,
.note-editor .note-editable .h-px {
    height: auto !important;
}
.rich-content-container .pointer-events-none,
.note-editor .note-editable * {
    pointer-events: auto !important;
}

.rich-content-container p,
.rich-content-container div {
    max-width: 100% !important;
    word-break: break-word;
}

/* Summernote & Rich Text List Styling Fix */
.note-editor .note-editable ul,
.note-editable ul,
.rich-content-container ul,
article ul,
.prose ul {
    list-style-type: disc !important;
    padding-left: 2rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.note-editor .note-editable ol,
.note-editable ol,
.rich-content-container ol,
article ol,
.prose ol {
    list-style-type: decimal !important;
    padding-left: 2rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.note-editor .note-editable li,
.note-editable li,
.rich-content-container li,
article li,
.prose li {
    display: list-item !important;
    list-style-position: outside !important;
}

/* Hide scrollbar utility */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Thin custom scrollbar for horizontal category navigation */
.category-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.category-scrollbar::-webkit-scrollbar-track {
    background: #f4f4f5;
    border-radius: 9999px;
}

.category-scrollbar::-webkit-scrollbar-thumb {
    background: #f472b6;
    border-radius: 9999px;
}

.category-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

.category-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #f472b6 #f4f4f5;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}