/* START KOL BP Followers System - Styles */

/* ============================================================
   HEADER FOLLOWER COUNTS
   ============================================================ */

.kol-follower-counts {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.kol-follower-counts a {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 76px;
    padding: 6px 10px;
    border-radius: 7px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.kol-follower-counts a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

html.dark-mode .kol-follower-counts a {
    color: inherit;
}

html.light-mode .kol-follower-counts a {
    color: inherit;
}

.kol-followers-count-link,
.kol-following-count-link {
    display: inline-flex;
    align-items: center;
}

html.dark-mode .kol-followers-count-link span,
html.dark-mode .kol-following-count-link span,
html.dark-mode .kol-friends-count-link span {
    color: #e0e0e0;
}

html.light-mode .kol-followers-count-link span,
html.light-mode .kol-following-count-link span,
html.light-mode .kol-friends-count-link span {
    color: #1f2937;
}

html.dark-mode .kol-followers-count-link:hover span,
html.dark-mode .kol-following-count-link:hover span,
html.dark-mode .kol-friends-count-link:hover span {
    color: #2d7c2d;
}

html.light-mode .kol-followers-count-link:hover span,
html.light-mode .kol-following-count-link:hover span,
html.light-mode .kol-friends-count-link:hover span {
    color: #2d7c2d;
}

.kol-social-stat-number {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.kol-social-stat-label {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

html.dark-mode .kol-follower-counts a {
    background: rgba(255, 255, 255, 0.04);
}

html.light-mode .kol-follower-counts a {
    background: rgba(31, 41, 55, 0.05);
}

/* ============================================================
   WRAPPER
   ============================================================ */

html.dark-mode .kol-bp-followers-wrapper,
html.light-mode .kol-bp-followers-wrapper {
    width: 100%;
}

/* ============================================================
   HEADER ROW - tabs + search side by side
   ============================================================ */

html.dark-mode .kol-bp-followers-header,
html.light-mode .kol-bp-followers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

html.dark-mode .kol-bp-followers-header {
    border-bottom: 1px solid #333;
}

html.light-mode .kol-bp-followers-header {
    border-bottom: 1px solid #e5e7eb;
}

/* ============================================================
   TAB BUTTONS
   ============================================================ */

html.dark-mode .kol-bp-followers-tabs,
html.light-mode .kol-bp-followers-tabs {
    display: flex;
    gap: 8px;
}

html.dark-mode .kol-bp-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 15px;
    border-radius: 6px;
    border-top: 1px solid #555555;
    border-left: 1px solid #555555;
    border-right: 1px solid #282828;
    border-bottom: 1px solid #282828;
    background: linear-gradient(to bottom, #383838, #343434);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.4);
    transition: opacity 0.15s;
}

html.light-mode .kol-bp-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 15px;
    border-radius: 6px;
    border-top: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #b0b0b0;
    border-bottom: 1px solid #b0b0b0;
    background: linear-gradient(to bottom, #e2e2e2, #d4d4d4);
    color: #2d2d2d;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.15);
    transition: opacity 0.15s;
}

html.dark-mode .kol-bp-tab-btn.active,
html.light-mode .kol-bp-tab-btn.active {
    background: linear-gradient(to bottom, #2d7c2d, #1f5f1f);
    border-top: 1px solid #3d9d3d;
    border-left: 1px solid #3d9d3d;
    border-right: 1px solid #1a4d1a;
    border-bottom: 1px solid #1a4d1a;
    color: #ffffff;
}

html.dark-mode .kol-bp-tab-count,
html.light-mode .kol-bp-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    font-size: 11px;
    font-weight: 700;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */

html.dark-mode .kol-bp-search-wrap,
html.light-mode .kol-bp-search-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

html.dark-mode .kol-bp-search-input {
    height: 32px;
    padding: 0 32px 0 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #242424;
    color: #e0e0e0;
    font-size: 13px;
    outline: none;
    width: 200px;
    transition: border-color 0.15s;
}

html.light-mode .kol-bp-search-input {
    height: 32px;
    padding: 0 32px 0 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2937;
    font-size: 13px;
    outline: none;
    width: 200px;
    transition: border-color 0.15s;
}

html.dark-mode .kol-bp-search-input:focus {
    border-color: #2d7c2d;
}

html.light-mode .kol-bp-search-input:focus {
    border-color: #2d7c2d;
}

html.dark-mode .kol-bp-search-clear,
html.light-mode .kol-bp-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: none;
}

html.dark-mode .kol-bp-search-clear {
    color: #888;
}

html.light-mode .kol-bp-search-clear {
    color: #9ca3af;
}

/* ============================================================
   TAB CONTENT VISIBILITY
   ============================================================ */

html.dark-mode .kol-bp-tab-content,
html.light-mode .kol-bp-tab-content {
    display: none;
}

html.dark-mode .kol-bp-tab-content.active,
html.light-mode .kol-bp-tab-content.active {
    display: block;
    min-height: 500px;
}

/* ============================================================
   CARDS GRID - full width per row
   ============================================================ */

html.dark-mode .kol-bp-cards-grid,
html.light-mode .kol-bp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

/* ============================================================
   USER CARD - full row, avatar + info + button
   ============================================================ */

html.dark-mode .kol-bp-follower-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 14px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
}

html.light-mode .kol-bp-follower-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
}

/* AVATAR */
html.dark-mode .kol-bp-card-avatar a,
html.light-mode .kol-bp-card-avatar a {
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

html.dark-mode .kol-bp-card-avatar img,
html.light-mode .kol-bp-card-avatar img {
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    max-width: 78px;
    max-height: 78px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

/* INFO */
html.dark-mode .kol-bp-card-info,
html.light-mode .kol-bp-card-info {
    flex: 1;
    min-width: 0;
}

html.dark-mode .kol-bp-card-name a {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.light-mode .kol-bp-card-name a {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.dark-mode .kol-bp-card-handle {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.light-mode .kol-bp-card-handle {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.dark-mode .kol-bp-card-meta {
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 4px;
}

html.light-mode .kol-bp-card-meta {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 4px;
}

html.dark-mode .kol-bp-card-info,
html.light-mode .kol-bp-card-info {
    width: 100%;
    min-width: 0;
}

/* ACTION */
html.dark-mode .kol-bp-card-action,
html.light-mode .kol-bp-card-action {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

/* ============================================================
   FOLLOW / UNFOLLOW CARD BUTTONS
   ============================================================ */

html.dark-mode .kol-bp-follow-btn.follow-btn,
html.dark-mode .kol-bp-follow-btn.login-prompt,
html.dark-mode .kol-bp-friend-btn.add-friend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 15px;
    border-radius: 6px;
    border-top: 1px solid #3d9d3d;
    border-left: 1px solid #3d9d3d;
    border-right: 1px solid #1a4d1a;
    border-bottom: 1px solid #1a4d1a;
    background: linear-gradient(to bottom, #2d7c2d, #1f5f1f);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.4);
    text-decoration: none;
    white-space: nowrap;
}

html.light-mode .kol-bp-follow-btn.follow-btn,
html.light-mode .kol-bp-follow-btn.login-prompt,
html.light-mode .kol-bp-friend-btn.add-friend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 15px;
    border-radius: 6px;
    border-top: 1px solid #3d9d3d;
    border-left: 1px solid #3d9d3d;
    border-right: 1px solid #1a4d1a;
    border-bottom: 1px solid #1a4d1a;
    background: linear-gradient(to bottom, #2d7c2d, #1f5f1f);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    white-space: nowrap;
}

html.dark-mode .kol-bp-follow-btn.unfollow-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 15px;
    border-radius: 6px;
    border-top: 1px solid #555555;
    border-left: 1px solid #555555;
    border-right: 1px solid #282828;
    border-bottom: 1px solid #282828;
    background: linear-gradient(to bottom, #383838, #343434);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.4);
    white-space: nowrap;
}

html.light-mode .kol-bp-follow-btn.unfollow-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 15px;
    border-radius: 6px;
    border-top: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #b0b0b0;
    border-bottom: 1px solid #b0b0b0;
    background: linear-gradient(to bottom, #e2e2e2, #d4d4d4);
    color: #2d2d2d;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}

html.dark-mode .kol-bp-follow-btn:disabled,
html.light-mode .kol-bp-follow-btn:disabled,
html.dark-mode .kol-bp-friend-btn:disabled,
html.light-mode .kol-bp-friend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

html.dark-mode .kol-bp-follow-btn,
html.light-mode .kol-bp-follow-btn,
html.dark-mode .kol-bp-friend-btn,
html.light-mode .kol-bp-friend-btn {
    width: 100%;
    min-width: 0;
}

html.dark-mode .kol-bp-friend-btn.is_friend,
html.dark-mode .kol-bp-friend-btn.pending,
html.dark-mode .kol-bp-friend-btn.awaiting_response {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #242424;
    color: #cfcfcf;
    font-size: 12px;
    font-weight: 700;
}

html.light-mode .kol-bp-friend-btn.is_friend,
html.light-mode .kol-bp-friend-btn.pending,
html.light-mode .kol-bp-friend-btn.awaiting_response {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================================
   PAGINATION
   ============================================================ */

html.dark-mode .kol-bp-pagination,
html.light-mode .kol-bp-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
}

html.dark-mode .kol-bp-pagination {
    border-top: 1px solid #2a2a2a;
}

html.light-mode .kol-bp-pagination {
    border-top: 1px solid #e5e7eb;
}

html.dark-mode .kol-bp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border-top: 1px solid #555555;
    border-left: 1px solid #555555;
    border-right: 1px solid #282828;
    border-bottom: 1px solid #282828;
    background: linear-gradient(to bottom, #383838, #343434);
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}

html.light-mode .kol-bp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border-top: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #b0b0b0;
    border-bottom: 1px solid #b0b0b0;
    background: linear-gradient(to bottom, #e2e2e2, #d4d4d4);
    color: #2d2d2d;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

html.dark-mode .kol-bp-page-btn.active,
html.light-mode .kol-bp-page-btn.active {
    background: linear-gradient(to bottom, #2d7c2d, #1f5f1f);
    border-top: 1px solid #3d9d3d;
    border-left: 1px solid #3d9d3d;
    border-right: 1px solid #1a4d1a;
    border-bottom: 1px solid #1a4d1a;
    color: #ffffff;
    cursor: default;
}

html.dark-mode .kol-bp-page-ellipsis {
    color: #666;
    padding: 0 4px;
    line-height: 32px;
}

html.light-mode .kol-bp-page-ellipsis {
    color: #9ca3af;
    padding: 0 4px;
    line-height: 32px;
}

/* ============================================================
   LOADING / EMPTY STATES
   ============================================================ */

html.dark-mode .kol-bp-loading,
html.dark-mode .kol-bp-empty {
    padding: 24px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

html.light-mode .kol-bp-loading,
html.light-mode .kol-bp-empty {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* END KOL BP Followers System - Styles */
