/* ================================================================
   Wed Community — Frontend Styles
   Theme: Gold #FFD700
================================================================ */

/* Hide the Elementor hero section on category/search views.
   In Elementor > Advanced > CSS Classes, add: wc-community-hero */
body:not(.wc-view-home) .wc-community-hero {
    display: none !important;
}
#wc-app *, #wc-app *::before, #wc-app *::after { box-sizing: border-box; }
#wc-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px; color: #1a1a2e; line-height: 1.5;
}
#wc-app a { color: #FFD700; text-decoration: none; }
#wc-app a:hover { text-decoration: underline; }
#wc-app button { cursor: pointer; font-family: inherit; }
#wc-app img { max-width: 100%; }

/* ---- Loading overlay ---- */
#wc-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9000; align-items: center; justify-content: center; }
#wc-overlay.active { display: flex; }
.wc-spinner { width: 44px; height: 44px; border: 4px solid rgba(255,255,255,.3); border-top-color: #FFD700; border-radius: 50%; animation: wc-spin .7s linear infinite; }
.wc-spinner-sm { width: 22px; height: 22px; border: 3px solid rgba(240,180,41,.25); border-top-color: #FFD700; border-radius: 50%; animation: wc-spin .7s linear infinite; display: inline-block; }
@keyframes wc-spin { to { transform: rotate(360deg); } }

/* ---- Toast ---- */
#wc-toast-wrap { position: fixed; top: 28px; right: 28px; z-index: 9100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.wc-toast { padding: 12px 20px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,.2); animation: wc-toast-in .3s ease; min-width: 220px; max-width: 360px; }
.wc-toast.success { background: #10b981; }
.wc-toast.error   { background: #ef4444; }
.wc-toast.info    { background: #3b82f6; }
@keyframes wc-toast-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

/* ---- Views ---- */
.wc-view { display: none; }
.wc-view.active { display: block; }
.wc-user-link { color: inherit; text-decoration: none; }
.wc-user-link:hover { text-decoration: underline; }

/* ---- Buttons ---- */
.wc-btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    background: #FFD700; color: #1a1a2e; border: none; border-radius: 8px;
    padding: 9px 18px; font-weight: 700; font-size: 14px;
    transition: background .18s, transform .1s;
}
.wc-btn-primary:hover { background: #FFD700; transform: translateY(-1px); }
.wc-btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; color: #6b7280; border: 1px solid #d1d5db; border-radius: 8px;
    padding: 8px 16px; font-size: 14px; font-weight: 500; transition: border-color .18s, color .18s;
}
.wc-btn-ghost:hover { border-color: #FFD700; color: #FFD700; }
.wc-btn-danger {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ef4444; color: #fff; border: none; border-radius: 8px;
    padding: 8px 16px; font-size: 14px; font-weight: 600;
}
.wc-btn-danger:hover { background: #dc2626; }
.wc-btn-icon {
    background: none; border: none; color: #9ca3af; padding: 4px 7px; border-radius: 6px;
    font-size: 13px; transition: color .18s, background .18s;
}
.wc-btn-icon:hover { color: #FFD700; background: rgba(240,180,41,.1); }
/* Join button — circular yellow outline */
.wc-btn-join {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 25px;
    border: 2px solid #FFD700; background: #FFD700; color: #212529;
    font-size: 13px; font-weight: 700; transition: background .18s, color .18s;
    margin-top: 6px;
}
.wc-btn-join:hover { background: #FFD700; border-color: #FFD700; }
.wc-btn-join.joined { background: transparent; color: #FFD700; }

/* ---- Breadcrumb ---- */
.wc-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9ca3af; margin-bottom: 18px; flex-wrap: wrap; }
.wc-breadcrumb a { color: #FFD700; }
.wc-breadcrumb .sep { color: #d1d5db; }

/* ---- Avatars ---- */
.wc-av { object-fit: cover; border-radius: 50%; border: 2px solid #FFD700; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.wc-av-ph {
    border-radius: 50%; border: 2px solid #FFD700; background: #FFD700; color: #1a1a2e;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ================================================================
   TOP SEARCH + ACTION BAR
================================================================ */
#wc-app .wc-top-bar {
    display: flex !important; align-items: center !important; gap: 12px;
    margin-bottom: 24px; flex-wrap: nowrap;
}
#wc-app .wc-top-search {
    display: flex !important; align-items: center !important; gap: 8px;
    flex: 1 1 auto; min-width: 0;
    border: 1px solid #d1d5db; border-radius: 8px;
    padding: 10px 14px; background: #fff;
}
#wc-app .wc-top-search i { color: #9ca3af; font-size: 15px; flex-shrink: 0; }
#wc-app .wc-top-search input {
    border: none !important; outline: none !important; box-shadow: none !important;
    font-size: 14px; color: #374151;
    background: transparent !important; flex: 1; min-width: 0;
    padding: 0 !important; margin: 0 !important; width: auto !important;
}
#wc-app .wc-top-search input::placeholder { color: #9ca3af; }
#wc-app .wc-top-search > button { background: none; border: none; color: #9ca3af; padding: 0; cursor: pointer; flex-shrink: 0; }
#wc-app .wc-top-search > button:hover { color: #ef4444; }
#wc-app .wc-btn-search {
    display: inline-block !important;
    background: #FFD700 !important; color: #1a1a2e !important; border: none !important;
    border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .18s;
}
#wc-app .wc-btn-search:hover { background: #ffd700 !important; }
#wc-app .wc-btn-new-conv {
    display: inline-flex !important; align-items: center; gap: 8px;
    background: white; color: #000 !important; border: 2px solid #FFD700 !important;
    border-radius: 8px; padding: 8px 5px; font-size: 13px; font-weight: 700;
    cursor: pointer; flex-shrink: 0; letter-spacing: .4px;
    transition: background .18s; text-decoration: none !important;
}
#wc-app .wc-btn-new-conv i { font-size: 30px; }

/* ================================================================
   HOME VIEW — Two-column layout
================================================================ */
#wc-app .wc-home-layout { display: grid !important; grid-template-columns: 240px 1fr; gap: 20px; align-items: start;}

/* ================================================================
   SIDEBAR — Angular-style image cards
================================================================ */
.wc-sidebar { position: sticky; top: 20px; margin-top: 0 !important; padding-top: 0 !important; }
#wc-app aside, #wc-app main, #wc-app .wc-main { margin-top: 0 !important; padding-top: 0 !important; }
#wc-sidebar-cats, #wc-cat-topics-list, #wc-search-topics { overflow-y: auto; max-height: calc(100vh - 140px); }
#wc-sidebar-cats::-webkit-scrollbar, #wc-cat-topics-list::-webkit-scrollbar, #wc-search-topics::-webkit-scrollbar { width: 4px; }
#wc-sidebar-cats::-webkit-scrollbar-thumb, #wc-cat-topics-list::-webkit-scrollbar-thumb, #wc-search-topics::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.wc-sidebar-header { font-size: 32px; font-weight: 500; color: #212529; line-height: 1.3; margin-bottom: 8px;padding: 0px 10px;}
.wc-main-title { margin: 0; font-size: 32px; font-weight: 500; color: #212529; line-height: 1.3; }

/* Category card — full-width image card with overlay */
.wc-cat-card {
    position: relative; width: 100%; height: 95px;
    border-radius: 8px; overflow: hidden; cursor: pointer;
    background: #2d2d4e no-repeat center center / cover;
    margin-bottom: 10px;
    transition: transform .15s, box-shadow .15s;
}
.wc-cat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.wc-cat-card.active { outline: 2px solid #FFD700; }
.wc-cat-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.62) 100%);
}
.wc-cat-card-name {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; font-weight: 400; text-align: center;
    padding: 6px 10px; text-shadow: 0 1px 4px rgba(0,0,0,.5); z-index: 1;
}

/* ================================================================
   MAIN TOOLBAR
================================================================ */
.wc-main-toolbar {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.wc-main-title { margin: 0; font-size: 22px; font-weight: 800; color: #212529; }
.wc-toolbar-right { display: flex; align-items: center; gap: 10px; }
.wc-sort-label { font-size: 13px; color: #6b7280; white-space: nowrap; }
.wc-sort-select {
    border: 0px solid #d1d5db; border-radius: 8px; padding: 7px 12px;
    font-size: 13px; color: #374151; background: #fff; cursor: pointer;
}
.wc-sort-select:focus { outline: none; border-color: #FFD700; }

/* ---- Search box ---- */
.wc-search-box {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 12px;
    background: #fff; min-width: 200px;
}
.wc-search-box i { color: #9ca3af; font-size: 14px; }
.wc-search-box input { border: none; outline: none; font-size: 14px; color: #374151; background: transparent; flex: 1; min-width: 0; }
.wc-search-box button { background: none; border: none; color: #9ca3af; padding: 0; }
.wc-search-box button:hover { color: #ef4444; }

/* ================================================================
   DISCUSSION CARDS — Angular style
================================================================ */
.wc-disc-list { display: flex; flex-direction: column; gap: 16px; }

.wc-disc-card { background: #fff; border: 0px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; display: flex; gap: 20px; align-items: flex-start; transition: box-shadow .18s, border-color .18s; }
.wc-disc-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); border-color: #FFD700; }

/* Left column: avatar + username + join */
.wc-disc-card-left { display: flex; flex-direction: column; align-items: center; gap: 4px;flex-shrink: 0; text-align: center; }
.wc-disc-av { width: 52px !important; height: 52px !important; }
.wc-disc-av-name { font-size: 12.6px; color: #212529; word-break: break-word; text-align: center; line-height: 1.3; }

/* Body */
.wc-disc-desc {display: flex;}
.wc-disc-card-body { flex: 1; min-width: 0; }
.wc-disc-cat { margin-bottom: 4px; }
.wc-disc-cat a { font-size: 12px; color: #FFD700; font-weight: 600; }
.wc-disc-title { font-size: 21px; font-weight: 700; color: #1a1a2e; margin: 0 0 5px; line-height: 1.3; cursor: pointer;}
.wc-disc-snippet { font-size: 14px; color: #212529; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-disc-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9ca3af; flex-wrap: wrap; }
.wc-disc-meta-item { display: flex; align-items: center; gap: 10px; }
.wc-disc-meta-av { flex-shrink: 0; }
.wc-meta-sep { color: #333; font-size: 24px; line-height: 1; }
.wc-meta-time { color: #212529; font-size: 12.6px; }
.wc-meta-stat { display: inline-flex; align-items: center; gap: 4px; background: #e9ecef; border-radius: 20px; padding: 5px 15px; font-size: 12.6px; color: #212529; align-items: center; justify-content: center; }

/* Optional right thumbnail */
.wc-disc-thumb { flex-shrink: 0; width: 90px; height: 70px; border-radius: 8px; overflow: hidden; cursor: pointer; }
.wc-disc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-meta-comments { cursor: pointer; }

/* ================================================================
   PAGINATION
================================================================ */
/* Load More */
.wc-btn-load-more {
    background: #fff; color: #1a1a2e; border: 1px solid #d1d5db; border-radius: 8px;
    padding: 9px 32px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: border-color .18s, background .18s;
}
.wc-btn-load-more:hover { border-color: #FFD700; background: #fffbea; }

.wc-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.wc-page-btn {
    min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid #e5e7eb;
    background: #fff; color: #374151; font-size: 14px; font-weight: 500;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
}
.wc-page-btn:hover { border-color: #FFD700; color: #FFD700; }
.wc-page-btn.active { background: #FFD700; border-color: #FFD700; color: #1a1a2e; font-weight: 700; }
.wc-page-btn.wc-page-prev, .wc-page-btn.wc-page-next { min-width: 52px; padding: 0 12px; }
.wc-page-ellipsis { font-size: 14px; color: #9ca3af; padding: 0 2px; line-height: 36px; display: flex; align-items: center; }

/* ================================================================
   CATEGORY VIEW
================================================================ */

/* Banner */
.wc-cat-banner-wrap {
    position: relative; height: 200px; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
}
.wc-cat-banner-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-cat-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
    padding: 20px 24px;
}
.wc-cat-banner-title { color: #fff; font-size: 26px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.wc-cat-banner-desc  { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 4px; }

/* Description + member count row */
.wc-cat-info-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px;
    font-size: 13px; color: #6b7280;
}
#wc-cat-desc-text { flex: 1; min-width: 0; }
#wc-cat-member-badge { font-weight: 700; color: #374151; white-space: nowrap; flex-shrink: 0; display: flex; flex-direction: column;}
.wc-read-more, .wc-read-less { color: #FFD700; font-weight: 600; text-decoration: none; white-space: nowrap; }
.wc-read-more:hover, .wc-read-less:hover { text-decoration: underline; }

/* Body: content + right sidebar */
.wc-cat-body-layout { display: grid; grid-template-columns: 1fr 240px; gap: 20px; align-items: start; }
.wc-cat-sidebar { position: sticky; top: 20px; }
.wc-cat-sidebar .wc-sidebar-header { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #212529; border-bottom: none; margin-bottom: 8px; padding-bottom: 6px; }

/* Right sidebar topics: plain text list (like Angular) */
.wc-cat-topics-item {
    display: block; padding: 10px; font-size: 14px; color: #212529;
    border-radius: 6px; cursor: pointer; transition: background .15s, color .15s;
    font-weight: 400;
}
.wc-cat-topics-item:hover { background: rgba(240,180,41,.1); color: #FFD700; }
.wc-cat-topics-item.active { color: #FFD700; font-weight: 700; }

/* Tabs */
.wc-tabs { display: flex; gap: 0; border-bottom: 0px solid #d9d9d9; margin-bottom: 25px; }
.wc-tab {
    background: none; border: none; padding: 10px 18px; font-size: 14px; font-weight: 600;
    color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color .18s, border-color .18s; display: flex; align-items: center; gap: 5px;
}
.wc-tab.active { color: #000; border-bottom-color: #FFD700; }
.wc-tab-count { font-size: 11px; font-weight: 500; color: #8c8c8c; }
.wc-tab-panel { display: none; }
.wc-tab-panel.active { display: block; }


.wc-section-heading { font-size: 32px; font-weight: 500; color: #212529; margin: 0 0 25px; }

/* Category conversation list */
.wc-cat-disc-row { padding: 17px 0; cursor: pointer; }
.wc-cat-disc-row:last-child { border-bottom: none; }
.wc-cat-disc-row:hover .wc-cat-disc-title { color: #c9a227; }
.wc-cat-disc-author { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.wc-cat-disc-date { font-size: 14px; color: #8c8c8c; margin-bottom: 5px; }
.wc-cat-disc-title { font-size: 20px; font-weight: 600; color: #212529; margin-bottom: 0px; transition: color .15s; }
.wc-cat-disc-meta { font-size: 14px; color: #6b7280; }

/* Photos grid */
.wc-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 16px; }
.wc-photo-card { border-radius: 0px; overflow: hidden; background: #fff; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.wc-photo-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.13); }
.wc-photo-card-img { aspect-ratio: 4/3; overflow: hidden; }
.wc-photo-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-photo-card-info { padding: 10px; }
.wc-photo-card-title { font-size: 16px; font-weight: 600; color: #212529; line-height: 1.35; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-photo-card-author { font-size: 14px; color: #8c8c8c; }

/* Members */
.wc-members-list { display: flex; flex-direction: column; gap: 10px; }
.wc-member-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 25px;
}
.wc-member-name { font-weight: bold; color: #212529; font-size: 18px; }
.wc-member-email { font-size: 14px; color: #212529; }

/* ================================================================
   DISCUSSION DETAIL
================================================================ */
.wc-disc-detail-wrap { max-width: 860px; }

.wc-detail-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 24px; margin-bottom: 20px;
}
.wc-detail-author { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.wc-detail-author-name { font-weight: 700; font-size: 15px; color: #1a1a2e; }
.wc-detail-author-meta { font-size: 12px; color: #9ca3af; display: flex; gap: 12px; margin-top: 3px; flex-wrap: wrap; }
.wc-detail-author-meta span { display: flex; align-items: center; gap: 4px; }
.wc-detail-title { font-size: 22px; font-weight: 800; color: #1a1a2e; margin: 0 0 14px; line-height: 1.3; }
.wc-detail-body { font-size: 15px; color: #374151; line-height: 1.7; margin-bottom: 16px; }
.wc-detail-media { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.wc-detail-media-item { width: 130px; height: 100px; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; cursor: pointer; }
.wc-detail-media-item img,
.wc-detail-media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-detail-footer {
    display: flex; align-items: center; gap: 12px; padding-top: 14px;
    border-top: 1px solid #f0f0f0; flex-wrap: wrap;
}
.wc-detail-stat { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #9ca3af; }

/* Add comment bar */
.wc-add-comment-bar {
    display: flex; align-items: center; gap: 10px;
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 13px 16px; margin-bottom: 18px; cursor: pointer; font-size: 14px; color: #9ca3af;
    transition: border-color .18s;
}
.wc-add-comment-bar:hover { border-color: #FFD700; }
.wc-add-comment-bar i { color: #FFD700; }

/* Comments */
.wc-comments-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.wc-comments-title { font-size: 17px; font-weight: 800; color: #1a1a2e; margin: 0; flex: 1; }
.wc-comment-sort { border: 1px solid #d1d5db; border-radius: 8px; padding: 6px 10px; font-size: 13px; color: #374151; background: #fff; }

.wc-comment-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 12px;
}
.wc-comment-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wc-comment-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wc-comment-author { font-weight: 700; font-size: 14px; color: #1a1a2e; }
.wc-comment-time { font-size: 12px; color: #9ca3af; }
.wc-comment-actions-row { display: flex; gap: 2px; }
.wc-comment-body { font-size: 14px; color: #374151; line-height: 1.6; margin-bottom: 8px; white-space: pre-wrap; }
.wc-comment-footer { display: flex; align-items: center; gap: 8px; }
.wc-reply-toggle {
    background: none; border: none; display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: #9ca3af; padding: 3px 8px; border-radius: 6px; cursor: pointer;
    transition: color .18s;
}
.wc-reply-toggle:hover { color: #FFD700; }

/* Replies */
.wc-replies-wrap { margin-top: 10px; padding-left: 18px; border-left: 3px solid rgba(240,180,41,.3); }
.wc-reply-card { background: #f9fafb; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid #f0f0f0; }
.wc-reply-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wc-reply-meta { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.wc-reply-actions-row { display: flex; gap: 2px; }
.wc-reply-body { font-size: 13px; color: #374151; padding-left: 36px; white-space: pre-wrap; }
.wc-add-reply-form { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.wc-add-reply-form textarea {
    flex: 1; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 12px;
    font-size: 13px; resize: none; font-family: inherit; line-height: 1.5;
    transition: border-color .18s;
}
.wc-add-reply-form textarea:focus { outline: none; border-color: #FFD700; }

/* Badges */
.wc-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.wc-badge-ok      { background: #d1fae5; color: #065f46; }
.wc-badge-blocked { background: #fee2e2; color: #991b1b; }
.wc-badge-pin     { background: #fef3c7; color: #92400e; }
.wc-badge-deleted { background: #f3f4f6; color: #6b7280; }

/* Empty state */
.wc-empty-state { text-align: center; padding: 40px 20px; color: #9ca3af; }
.wc-empty-state i { font-size: 44px; margin-bottom: 10px; display: block; color: #d1d5db; }
.wc-empty-state p { font-size: 15px; margin: 0; }

/* ================================================================
   MODALS
================================================================ */
.wc-modal-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 8000;
    align-items: center; justify-content: center; padding: 16px;
}
.wc-modal-backdrop.open { display: flex; animation: wc-bd-in .2s ease; }
@keyframes wc-bd-in { from { opacity: 0; } to { opacity: 1; } }
.wc-modal {
    background: #fff; border-radius: 0px; width: 100%; max-width: 580px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: wc-m-in .22s ease;
    display: flex; flex-direction: column; max-height: 92vh;
}
.wc-modal-sm { max-width: 420px; }
@keyframes wc-m-in { from { opacity: 0; transform: scale(.95) translateY(-10px); } to { opacity: 1; transform: none; } }
.wc-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 14px; border-bottom: 1px solid #f0f0f0;
    font-size: 16px; font-weight: 700; color: #1a1a2e; flex-shrink: 0;
}
.wc-modal-x { background: none; border: none; color: #9ca3af; font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: color .18s; }
.wc-modal-x:hover { color: #ef4444; }
.wc-modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.wc-modal-foot { padding: 14px 22px 18px; border-top: 1px solid #f0f0f0; display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; }

/* Form fields */
.wc-field { margin-bottom: 16px; }
.wc-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.wc-field label .req { color: #ef4444; }
.wc-field input[type="text"],
.wc-field select,
.wc-field textarea {
    width: 100%; border: 1px solid #d1d5db; border-radius: 8px;
    padding: 9px 12px; font-size: 14px; color: #374151; font-family: inherit;
    transition: border-color .18s;
}
.wc-field input[type="text"]:focus,
.wc-field select:focus,
.wc-field textarea:focus { outline: none; border-color: #FFD700; }
.wc-field textarea { resize: vertical; line-height: 1.5; }

/* Upload zone */
.wc-upload-zone {
    border: 2px dashed #d1d5db; border-radius: 10px; padding: 22px;
    text-align: center; color: #9ca3af; cursor: pointer; transition: border-color .18s, background .18s;
}
.wc-upload-zone:hover, .wc-upload-zone.drag-over { border-color: #FFD700; background: rgba(240,180,41,.04); }
.wc-upload-zone i { font-size: 28px; color: #FFD700; margin-bottom: 6px; display: block; }
.wc-upload-zone p { margin: 0; font-size: 13px; }
.wc-upload-link { color: #FFD700; cursor: pointer; text-decoration: underline; }
.wc-file-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wc-thumb-item { position: relative; width: 80px; height: 70px; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.wc-thumb-item img, .wc-thumb-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-thumb-remove {
    position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
    border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; border: none;
    font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Comment form */
.wc-comment-form-inner { display: flex; gap: 12px; align-items: flex-start; }
.wc-comment-form-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #FFD700; flex-shrink: 0; }
#wc-comment-text { flex: 1; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; line-height: 1.5; }
#wc-comment-text:focus { outline: none; border-color: #FFD700; }

/* ================================================================
   LOGIN MODAL — Required Login
================================================================ */
.wc-modal-login { max-width: 480px !important; }

/* Yellow header */
.wc-modal-login .wc-modal-head {
    background: #FFD700 !important;
    border-radius: 0px 0px 0 0;
    border-bottom: none !important;
    padding: 16px 22px !important;
}
.wc-modal-login .wc-modal-head span {
    font-size: 18px; font-weight: 500; color: #1a1a2e !important;
}
.wc-modal-login .wc-modal-x {
    color: #1a1a2e !important; font-size: 20px;
}
.wc-modal-login .wc-modal-x:hover { color: #000 !important; background: rgba(0,0,0,.1) !important; }

/* Body */
.wc-modal-login .wc-modal-body {
    padding: 16px !important;
}
.wc-login-desc {
    text-align: center; font-size: 14px; color: #4b5563;
    margin: 0 0 28px; line-height: 1.6;
}

/* Two-column buttons */
.wc-login-options {
    display: flex !important; gap: 20px; justify-content: center;
}
.wc-login-option {
    display: flex !important; flex-direction: column; align-items: center; gap: 10px;
    flex: 1;
}

/* User Login — outline yellow */
a.wc-btn-login-outline {
    display: block !important; width: 100%; text-align: center;
    background: #fff !important; color: #212529 !important;
    border: 2px solid #FFD700 !important; border-radius: 0px;
    padding: 10px 17px; font-size: 15px; font-weight: 700 !important;
    cursor: pointer; text-decoration: none !important;
    transition: background .18s, color .18s; box-sizing: border-box;
}
a.wc-btn-login-outline:hover {
    background: #FFD700 !important; color: #1a1a2e !important;
    text-decoration: none !important;
}

/* Vendor Login — filled yellow */
a.wc-btn-login-primary {
    display: block !important; width: 100%; text-align: center;
    background: #FFD700 !important; color: #212529 !important;
    border: 2px solid #FFD700 !important; border-radius: 0px;
    padding: 10px 17px; font-size: 15px; font-weight: 700 !important;
    cursor: pointer; text-decoration: none !important;
    transition: background .18s; box-sizing: border-box;
}
a.wc-btn-login-primary:hover {
    background: #ffd700 !important; border-color: #ffd700 !important;
    text-decoration: none !important;
}

/* Sub links */
a.wc-login-sub-link {
    font-size: 14px !important; color: #007bff !important;
    text-decoration: none !important; font-weight: 400;
}
a.wc-login-sub-link:hover { text-decoration: underline !important; }

/* ================================================================
   LIGHTBOX
================================================================ */
.wc-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9500; align-items: center; justify-content: center; }
.wc-lightbox.open { display: flex; }
.wc-lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 28px; cursor: pointer; opacity: .8; transition: opacity .18s; }
.wc-lightbox-close:hover { opacity: 1; }
#wc-lightbox-img { max-width: 90vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

img.wc-disc-meta-av {
    width: 30px;
    height: 30px;
}

/* Hide global top bar when inside category view — replaced by inline bar */
body.wc-view-category #wc-app .wc-top-bar { display: none !important; }

/* Category action bar — inherits same layout as .wc-top-bar */
#wc-app .wc-cat-action-bar {
    display: flex !important; align-items: center !important; gap: 12px;
    margin-bottom: 16px; flex-wrap: nowrap;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1023px) {
    .wc-home-layout { grid-template-columns: 240px 1fr; }
    .wc-cat-body-layout { grid-template-columns: 1fr 200px; }
}
@media (max-width: 767px) {
    #wc-app .wc-top-bar { flex-wrap: wrap !important; }
    #wc-app .wc-cat-action-bar { flex-wrap: wrap !important; }
    #wc-app .wc-top-search { width: 100%; flex: 1 1 100%; }
    #wc-app .wc-btn-search, #wc-app .wc-btn-new-conv { flex: 1; justify-content: center; }
    #wc-app .wc-home-layout { grid-template-columns: 1fr !important; }
    .wc-cat-body-layout { grid-template-columns: 1fr 200px; }
    .wc-cat-banner-wrap { height: 150px; }
        .wc-disc-card { flex-direction: column; }
    .wc-disc-card-left { flex-direction: row; width: auto; align-items: center; }
    .wc-btn-join { width: 50px; height: 50px; font-size: 12px; }
    .wc-main-toolbar { flex-direction: column; align-items: flex-start; }
    .wc-toolbar-right { width: 100%; }
}
/* ================================================================
   SEARCH DROPDOWN
================================================================ */
#wc-search-dropdown,
#wc-cat-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    z-index: 500;
    overflow: hidden;
}
#wc-search-dropdown.open,
#wc-cat-search-dropdown.open { display: block; }
.wc-drop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
    gap: 12px;
}
.wc-drop-count { flex: 1; min-width: 0; }
.wc-drop-count strong { color: #1a1a2e; }
.wc-drop-viewall {
    color:#ffd700;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.wc-drop-viewall:hover { text-decoration: underline; }
.wc-drop-item {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    color: #1a1a2e;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wc-drop-item:last-child { border-bottom: none; }
.wc-drop-item:hover { background: #fffbea; color: #1a1a2e; text-decoration: none; }
.wc-drop-empty { padding: 14px 16px; font-size: 14px; color: #9ca3af; text-align: center; }

@media (max-width: 480px) {
    .wc-modal { border-radius: 10px 10px 0 0; }
    .wc-modal-backdrop { align-items: center; padding: 0; }
}
