@font-face {
    font-family: "Comic Sans MS";
    src: url('assets/fonts/Comic Sans MS.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.navbar__version-display::before {
    content: "shmoobnet v1.5.0 + ";
}

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

body {
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
/* Global button styles */
.btn { padding: 12px 20px; border-radius: 12px; border: none; cursor: pointer; font-weight: 800; font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif }
.btn-blue { background: #4485ca; color: #fff }
.btn-blue:hover { background: #3a7bb8 }
.btn-green { background: #3fb866; color: #000 }
.btn-green:hover { background: #39a65d }
.btn-red { background: #ab3031; color: #fff }
.btn-red:hover { background: #93282a }

/* Profile borders */
.profile-border-default { border: none }
.profile-border-fancy { border: 6px solid transparent; background: linear-gradient(45deg, #ff69b4, #fff, #ff69b4, #fff) }
.profile-border-digital { border: 6px solid transparent; background: linear-gradient(45deg, #4dabf7, #52cd7d, #4dabf7, #52cd7d) }
.profile-border-spectral { border: 6px solid transparent; background: linear-gradient(45deg, #ff69b4, #4dabf7, #ff69b4, #4dabf7) }

/* Badge layout */
.badge { display: inline-flex; align-items: center; margin-left: 6px }
.badge img { width: 20px; height: 20px }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 20px;
}

header h1 {
    color: #ffffff;
    font-size: 24px;
}

nav button {
    background-color: #ffffff;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
}

nav button:hover {
    background-color: #e0e0e0;
}

.post-form {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.post-form-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-form-user-info {
    flex: 1;
}

.post-form textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #404040;
    border-radius: 5px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
    resize: none;
    margin-bottom: 15px;
    background-color: #1a1a1a;
    color: transparent;
    caret-color: #ffffff;
    position: relative;
    z-index: 2;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    letter-spacing: normal;
    word-spacing: normal;
    tab-size: 4;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-sizing: border-box;
    transform: scale(1);
    transform-origin: top left;
}

.post-form textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-height: 120px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #ffffff;
    border-bottom: 1px solid #333;
}

.autocomplete-item:hover, .autocomplete-item.selected {
    background-color: #3a3a3a;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.textarea-container {
    position: relative;
}
.textarea-container .textarea-preview {
  font-family: inherit;
}

.textarea-preview {
    position: absolute;
    top: 0.5px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    background: transparent;
    border: none;
    pointer-events: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
    z-index: 3;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    letter-spacing: normal;
    word-spacing: normal;
    tab-size: 4;
    transform: scale(1);
    transform-origin: top left;
}

.post-form textarea {
    position: relative;
    z-index: 2;
    background-color: #1a1a1a;
    color: transparent;
    caret-color: #fff;
    font-size: 16px;
    line-height: 1.2;
    padding: 15px;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
    letter-spacing: normal;
    word-spacing: normal;
    tab-size: 4;
    width: 100%;
    box-sizing: border-box;
    resize: none;
}

.post-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

.character-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 10px;
}

.character-counter.warning {
    color: #ff9900;
}

.character-counter.error {
    color: #ff4444;
}

.username-mention {
    color: #4dabf7;
}

.inline-shape {
    display: inline;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.post-btn {
    background-color: #ffffff;
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: block;
    margin-left: auto;
    margin-top: 10px;
}

.post-btn:hover {
    background-color: #e0e0e0;
}

.post-btn:disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
}

.post {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: bold;
    margin-right: 10px;
    cursor: pointer;
}

.post-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.post-time {
    color: #a0a0a0;
    font-size: 14px;
}

.post-content {
    margin: 12px 0;
    line-height: 1.5;
    white-space: pre-line;
    word-wrap: break-word;
}

.post-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background: none;
    border: 2px solid #444;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 16px;
    transition: all 0.2s;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
}

.action-btn:hover, .action-btn.active {
    border: 2px solid #fff;
    background: #232323;
}

.action-btn svg, .action-btn img, .reaction-shape {
    width: 22px;
    height: 22px;
    display: block;
}

.comment-btn {
    border-color: #4485ca;
}

.comment-btn:hover, .comment-btn.active {
    background: #4485ca22;
    border-color: #4485ca;
}

.blue-btn {
    border-color: #4485ca;
}

.blue-btn:hover, .blue-btn.active {
    background: #4485ca22;
    border-color: #4485ca;
}

.red-btn {
    border-color: #ab3031;
}

.red-btn:hover, .red-btn.active {
    background: #ab303122;
    border-color: #ab3031;
}

.green-btn {
    border-color: #52cd7d;
}

.green-btn:hover, .green-btn.active {
    background: #52cd7d22;
    border-color: #52cd7d;
}

.pink-btn {
    border-color: #bd63d0;
}

.pink-btn:hover, .pink-btn.active {
    background: #bd63d022;
    border-color: #bd63d0;
}

.share-btn {
    border-color: #fff;
}

.share-btn:hover, .share-btn.active {
    background: #fff2;
    border-color: #fff;
}

.delete-btn {
    border-color: #ab3031;
}

.delete-btn:hover, .delete-btn.active {
    background: #ab303122;
    border-color: #ab3031;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #2a2a2a;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal input {
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 5px;
    font-size: 16px;
    background-color: #1a1a1a;
    color: #ffffff;
}

.modal input:focus {
    outline: none;
    border-color: #ffffff;
}

.modal button {
    background-color: #ffffff;
    color: #1a1a1a;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.modal button:hover {
    background-color: #e0e0e0;
}

@media (max-width: 700px) {
    .floating-profile {
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
    }
    #profileAvatar {
        width: 40px;
        height: 40px;
    }
    .container {
        padding: 10px;
    }
    .feed-tabs-centered {
        padding-top: 16px;
        gap: 12px;
    }
    .feed-tab {
        font-size: 15px;
        padding: 6px 16px;
    }
}

.floating-profile {
    position: fixed;
    top: 16px;
    right: 32px;
    z-index: 1200;
    width: 64px;
    height: 64px;
    background: none;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}

.floating-profile:focus, .floating-profile:hover {
    box-shadow: 0 0 0 3px #fff;
}

#profileAvatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #232323;
    border: 2px solid #fff;
}

/* Default border - very dark border for posts only, no border for profile selection and top-right avatar */
.floating-profile .profile-border-default,
.avatar-option.profile-border-default {
    border: none !important;
}

.post-avatar.profile-border-default,
div[style*="width:50px"].profile-border-default {
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

/* White border for selected default border option */
.border-option.selected[data-border="default"] .border-preview {
    border: 3px solid #fff !important;
}

/* White border for selected avatar with default profile border */
.avatar-option.selected.profile-border-default {
    border: 3px solid #fff !important;
}

/* Fancy border - different thickness for different contexts */

/* Top-right profile button - consistent border (6px) */
.floating-profile .profile-border-fancy {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #fff, #ff69b4, #fff) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

/* Feed posts - consistent border (6px) with ultra-high specificity */
div[style*="width:50px"].profile-border-fancy,
div[style*="width: 50px"].profile-border-fancy,
div[style*="width:50px"][style*="height:50px"].profile-border-fancy,
div[style*="width: 50px"][style*="height: 50px"].profile-border-fancy,
div[style*="border-radius:50%"].profile-border-fancy,
div[style*="border-radius: 50%"].profile-border-fancy,
div[style*="margin-right:12px"].profile-border-fancy,
div[style*="margin-right: 12px"].profile-border-fancy,
div[style*="display:flex"].profile-border-fancy,
div[style*="display: flex"].profile-border-fancy,
.post-avatar.profile-border-fancy,
.post-header .profile-border-fancy,
.post .profile-border-fancy {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #fff, #ff69b4, #fff) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    background-attachment: scroll !important;
}

/* Fallback for other contexts */
.profile-border-fancy {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #fff, #ff69b4, #fff) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

/* Digital border - different thickness for different contexts */

/* Top-right profile button - consistent border (6px) */
.floating-profile .profile-border-digital {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #4dabf7, #52cd7d, #4dabf7, #52cd7d) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

/* Feed posts - consistent border (6px) with ultra-high specificity */
div[style*="width:50px"].profile-border-digital,
div[style*="width: 50px"].profile-border-digital,
div[style*="width:50px"][style*="height:50px"].profile-border-digital,
div[style*="width: 50px"][style*="height: 50px"].profile-border-digital,
div[style*="border-radius:50%"].profile-border-digital,
div[style*="border-radius: 50%"].profile-border-digital,
div[style*="margin-right:12px"].profile-border-digital,
div[style*="margin-right: 12px"].profile-border-digital,
div[style*="display:flex"].profile-border-digital,
div[style*="display: flex"].profile-border-digital,
.post-avatar.profile-border-digital,
.post-header .profile-border-digital,
.post .profile-border-digital {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #4dabf7, #52cd7d, #4dabf7, #52cd7d) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    background-attachment: scroll !important;
}

/* Fallback for other contexts */
.profile-border-digital {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #4dabf7, #52cd7d, #4dabf7, #52cd7d) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

/* Spectral border - different thickness for different contexts */

/* Top-right profile button - consistent border (6px) */
.floating-profile .profile-border-spectral {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #4dabf7, #ff69b4, #4dabf7) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

/* Feed posts - consistent border (6px) with ultra-high specificity */
div[style*="width:50px"].profile-border-spectral,
div[style*="width: 50px"].profile-border-spectral,
div[style*="width:50px"][style*="height:50px"].profile-border-spectral,
div[style*="width: 50px"][style*="height: 50px"].profile-border-spectral,
div[style*="border-radius:50%"].profile-border-spectral,
div[style*="border-radius: 50%"].profile-border-spectral,
div[style*="margin-right:12px"].profile-border-spectral,
div[style*="margin-right: 12px"].profile-border-spectral,
div[style*="display:flex"].profile-border-spectral,
div[style*="display: flex"].profile-border-spectral,
.post-avatar.profile-border-spectral,
.post-header .profile-border-spectral,
.post .profile-border-spectral {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #4dabf7, #ff69b4, #4dabf7) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    background-attachment: scroll !important;
}

/* Fallback for other contexts */
.profile-border-spectral {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #4dabf7, #ff69b4, #4dabf7) !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

/* Ensure images within bordered containers are properly sized */
.profile-border-fancy img,
.profile-border-digital img,
.profile-border-spectral img {
    border-radius: 50% !important;
}

/* Ultra-high specificity selectors for feed and home screen avatars - targeting exact inline style combinations */
div[style="width:50px;height:50px;border-radius:50%;object-fit:cover;margin-right:12px;display:flex;align-items:center;justify-content:center;"].profile-border-fancy,
div[style*="width:50px"][style*="height:50px"][style*="border-radius:50%"][style*="object-fit:cover"][style*="margin-right:12px"].profile-border-fancy,
div[style*="width:50px"][style*="height:50px"][style*="object-fit:cover"].profile-border-fancy,
div.post-avatar.profile-border-fancy,
.post-avatar.profile-border-fancy,
.post .post-avatar.profile-border-fancy {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #fff, #ff69b4, #fff) !important;
    background-size: 400% 400% !important;
    animation: gradient-rotate 3s ease-in-out infinite !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    background-attachment: scroll !important;
}

div[style="width:50px;height:50px;border-radius:50%;object-fit:cover;margin-right:12px;display:flex;align-items:center;justify-content:center;"].profile-border-digital,
div[style*="width:50px"][style*="height:50px"][style*="border-radius:50%"][style*="object-fit:cover"][style*="margin-right:12px"].profile-border-digital,
div[style*="width:50px"][style*="height:50px"][style*="object-fit:cover"].profile-border-digital,
div.post-avatar.profile-border-digital,
.post-avatar.profile-border-digital,
.post .post-avatar.profile-border-digital {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #4dabf7, #52cd7d, #4dabf7, #52cd7d) !important;
    background-size: 400% 400% !important;
    animation: gradient-rotate 3s ease-in-out infinite !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    background-attachment: scroll !important;
}

div[style="width:50px;height:50px;border-radius:50%;object-fit:cover;margin-right:12px;display:flex;align-items:center;justify-content:center;"].profile-border-spectral,
div[style*="width:50px"][style*="height:50px"][style*="border-radius:50%"][style*="object-fit:cover"][style*="margin-right:12px"].profile-border-spectral,
div[style*="width:50px"][style*="height:50px"][style*="object-fit:cover"].profile-border-spectral,
div.post-avatar.profile-border-spectral,
.post-avatar.profile-border-spectral,
.post .post-avatar.profile-border-spectral {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #4dabf7, #ff69b4, #4dabf7) !important;
    background-size: 400% 400% !important;
    animation: gradient-rotate 3s ease-in-out infinite !important;
    padding: 0 !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    background-attachment: scroll !important;
}

/* ABSOLUTE PRIORITY - Static borders for all profile border types */
.post-avatar.profile-border-fancy,
.profile-border-fancy,
div[style*="width:90px"][style*="height:90px"].profile-border-fancy,
div[style*="width:40px"][style*="height:40px"].profile-border-fancy {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #fff, #ff69b4, #fff) !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

.post-avatar.profile-border-digital,
.profile-border-digital,
div[style*="width:90px"][style*="height:90px"].profile-border-digital,
div[style*="width:40px"][style*="height:40px"].profile-border-digital {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #4dabf7, #52cd7d, #4dabf7, #52cd7d) !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

.post-avatar.profile-border-spectral,
.profile-border-spectral,
div[style*="width:90px"][style*="height:90px"].profile-border-spectral,
div[style*="width:40px"][style*="height:40px"].profile-border-spectral {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff69b4, #4dabf7, #ff69b4, #4dabf7) !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}



.feed-tabs-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0 0 24px 0;
    padding-top: 32px;
}

.feed-tab {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    font-size: 18px;
    font-family: inherit;
    font-weight: bold;
    padding: 8px 32px;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
    letter-spacing: 0.5px;
}

.feed-tab.active {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #fff;
}

.feed-tab.disabled {
    color: #666;
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.feed-tab.disabled:hover {
    color: #666;
    border-color: #666;
    background: transparent;
}

.search-result-item {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #333;
}

.search-result-item img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-item .username {
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 4px;
}

.search-result-item .bio {
    color: #aaa;
    font-size: 0.9em;
}

#profileSearchInput:focus {
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-actions-inline {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.icon-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    line-height: 1;
}

.icon-blue svg { color: #4485ca; }
.icon-red svg { color: #ab3031; }
.icon-green svg { color: #52cd7d; }
.icon-pink svg { color: #bd63d0; }
.icon-white svg { color: #fff; }

.icon-inline svg {
    width: 22px;
    height: 22px;
    display: block;
}

.icon-inline span {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-left: 2px;
}

.post-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    margin-top: 12px;
    width: 100%;
}

.reaction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    background: #232323;
    border: none;
    border-radius: 18px;
    padding: 8px 0;
    margin: 0 2px;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    outline: none;
    position: relative;
}
.reaction-btn:hover, .reaction-btn:focus {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.reaction-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: #fff;
    transition: opacity 0.2s;
    opacity: 0.3;
}
.reaction-btn.active svg {
    opacity: 1;
}

.reaction-btn.active.square { box-shadow: 0 0 0 2px #4485ca inset; background: #232b36; }
.reaction-btn.active.heart { box-shadow: 0 0 0 2px #ab3031 inset; background: #2a1a1a; }
.reaction-btn.active.triangle { box-shadow: 0 0 0 2px #52cd7d inset; background: #1d2a22; }
.reaction-btn.active.circle { box-shadow: 0 0 0 2px #bd63d0 inset; background: #251a2a; }
.reaction-btn .checkmark { display: none !important; }

.reaction-btn .reaction-count {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    margin-left: 7px;
    min-width: 16px;
    text-align: left;
}

@media (max-width: 700px) {
    .post-actions-bar {
        gap: 0;
    }
    .reaction-btn {
        padding: 6px 0;
    }
    .reaction-btn svg {
        width: 18px;
        height: 18px;
    }
    .reaction-btn .reaction-count {
        font-size: 13px;
        margin-left: 5px;
    }
}

.reaction-btn.comment-btn,
.reaction-btn.share-btn {
    color: #ffffff;
}

.reaction-btn.comment-btn svg,
.reaction-btn.share-btn svg {
    fill: #ffffff;
    stroke: #ffffff;
    opacity: 1;
}

.single-post {
    border-bottom: 1px solid #333;
    margin-bottom: 0;
}

.comment-form {
    padding: 20px;
    border-bottom: 1px solid #333;
    background: #1a1a1a;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: transparent;
    caret-color: #fff;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    letter-spacing: normal;
    word-spacing: normal;
    tab-size: 4;
    box-sizing: border-box;
    resize: none;
    position: relative;
    z-index: 2;
    transform: scale(1);
    transform-origin: top left;
}

.comment-form .textarea-container {
    position: relative;
    margin-bottom: 10px;
}

.comment-form .textarea-preview {
    position: absolute;
    top: 0.5px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    background: transparent;
    border: none;
    pointer-events: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
    z-index: 3;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    letter-spacing: normal;
    word-spacing: normal;
    tab-size: 4;
    transform: scale(1);
    transform-origin: top left;
}

.comment-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #666;
}

.comment-form button {
    background: #4485ca;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form button:hover {
    background: #5a9bd8;
}

.comment {
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    background: #1a1a1a;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4485ca;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
}

.comment-info h4 {
    margin: 0;
    color: #ffffff;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    font-size: 14px;
}

.comment-time {
    color: #888;
    font-size: 12px;
    margin-left: 8px;
}

.comment-content {
    color: #ffffff;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.no-comments {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    font-size: 16px;
}

#comments-container {
    background: #1a1a1a;
    padding-top: 20px;
}

.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: #1a1a1a;
    border-radius: 12px;
    margin: 20px 0;
}

.empty-state h3,
.error-state h3 {
    color: #ffffff;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    font-size: 24px;
    margin-bottom: 16px;
}

.empty-state p,
.error-state p {
    color: #888;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 24px;
}

.post-btn,
.retry-btn {
    background: #4485ca;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.post-btn:hover,
.retry-btn:hover {
    background: #5a9bd8;
}

.error-state {
    border: 1px solid #ab3031;
}

.retry-btn {
    background: #ab3031;
}

.retry-btn:hover {
    background: #c44546;
}

.welcome-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}

.welcome-content {
    background-color: #2a2a2a;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
}

.welcome-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff;
}

.welcome-content p {
    font-size: 18px;
    color: #a0a0a0;
    margin-bottom: 40px;
    line-height: 1.5;
}

.welcome-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.login-btn {
    background-color: #4485ca;
    color: #ffffff;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', Arial, sans-serif;
}

.login-btn:hover {
    background-color: #5a9bd8;
}

.signup-btn {
    background-color: #52cd7d;
    color: #ffffff;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', Arial, sans-serif;
}

.signup-btn:hover {
    background-color: #6ad890;
}

.view-btn {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', Arial, sans-serif;
}

.view-btn:hover {
    background-color: #e0e0e0;
}

@media (max-width: 700px) {
    .welcome-content {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .welcome-content h1 {
        font-size: 28px;
    }
    
    .welcome-content p {
        font-size: 16px;
    }
    
    .welcome-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

.post-menu-btn {
  background: #1b1b1b !important;
  border-radius: 50%;
  transition: background 0.15s;
}
.post-menu-btn:hover, .post-menu-btn:focus {
  background: #313131 !important;
}
.post-menu-btn svg {
  width: 24px;
  height: 24px;
}

.post-menu-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: #222;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0003;
  min-width: 140px;
  z-index: 100;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 0;
}

.post-menu-item {
  width: 100%;
  padding: 12px 24px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  border: none;
  background: none;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.post-menu-item:hover {
  background: #333;
  color: #fff;
}
.post-menu-item[data-action='delete'] {
  color: #e55;
}
.post-menu-item[data-action='delete']:hover {
  background: #ffeaea;
  color: #b00;
}

.profile-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 32px !important;
}
.profile-header > img {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 4px solid #181818 !important;
  background: #181818 !important;
}
.profile-header .reaction-row, .profile-header .reaction-row > div {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
}

:root {
  --shm-blue: #4485ca;
  --shm-red: #ab3031;
  --shm-green: #52cd7d;
  --shm-pink: #bd63d0;
}

/* Shmoobnet name color palette (exact) for text highlights */
:root {
  --shm-name-blue: #4485ca;
  --shm-name-red: #ab3031;
  --shm-name-green: #52cd7d;
  --shm-name-pink: #c883a7;
  --shm-name-purple: #bd63d0;
  --shm-name-yellow: #FFD700;
}

/* Text highlight utility classes */
.hl-blue { color: var(--shm-name-blue) !important; }
.hl-red { color: var(--shm-name-red) !important; }
.hl-green { color: var(--shm-name-green) !important; }
.hl-pink { color: var(--shm-name-pink) !important; }
.hl-purple { color: var(--shm-name-purple) !important; }
.hl-yellow { color: var(--shm-name-yellow) !important; }

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.reaction-btn[data-type="square"], .reaction-btn.square { color: var(--shm-blue); }
.reaction-btn[data-type="heart"], .reaction-btn.heart { color: var(--shm-red); }
.reaction-btn[data-type="triangle"], .reaction-btn.triangle { color: var(--shm-green); }
.reaction-btn[data-type="circle"], .reaction-btn.circle { color: var(--shm-pink); }
.reaction-btn[data-type="star"], .reaction-btn.star { color: #FFD700; }
.reaction-btn.active.square { box-shadow: 0 0 0 2px var(--shm-blue) inset; background: #232b36; }
.reaction-btn.active.heart { box-shadow: 0 0 0 2px var(--shm-red) inset; background: #2a1a1a; }
.reaction-btn.active.triangle { box-shadow: 0 0 0 2px var(--shm-green) inset; background: #1d2a22; }
.reaction-btn.active.circle { box-shadow: 0 0 0 2px var(--shm-pink) inset; background: #251a2a; }
.reaction-btn.active.star { box-shadow: 0 0 0 2px #FFD700 inset; background: #2d2a1a; }

/* Filter button specific styling */
.filter-btn svg {
    opacity: 1 !important; /* Always show filter shapes at full opacity */
}

.filter-btn[data-filter="square"] svg { fill: #4485ca; }
.filter-btn[data-filter="heart"] svg { fill: #ab3031; }
.filter-btn[data-filter="triangle"] svg { fill: #52cd7d; }
.filter-btn[data-filter="circle"] svg { fill: #bd63d0; }
.filter-btn[data-filter="star"] svg { fill: #FFD700; }

.star-non-patron { cursor: default !important; }

.reaction-counts {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10001;
    font-size: 0.9em;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reaction-count-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reaction-count-item img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.shmoob-token-balance {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shmoob-token-balance img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .reaction-counts {
        bottom: 75px;
        left: 15px;
        padding: 6px 10px;
        font-size: 0.8em;
        gap: 3px;
    }
    
    .reaction-count-item img {
        width: 14px;
        height: 14px;
    }
    
    .shmoob-token-balance {
        bottom: 15px;
        left: 15px;
        padding: 10px 14px;
        font-size: 0.9em;
    }
    
    .shmoob-token-balance img {
        width: 20px;
        height: 20px;
    }
}

.reaction-tooltip {
    position: absolute;
    background: rgba(35, 35, 35, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    border: 1px solid #bd63d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}
.star-non-patron:hover { background: transparent !important; }

.back-button {
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: 2px solid #444;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    border-color: #fff;
    background: #232323;
}



.no-comments {
    text-align: center;
    color: #a0a0a0;
    font-style: italic;
    margin: 20px 0;
    padding: 20px;
}

/* Comment depth styling - limited to 3 levels */
.comment-depth-1 {
    background-color: #272727;
    margin-left: 0;
}

.comment-depth-2 {
    background-color: #252525;
    margin-left: 30px;
}

.comment-depth-3 {
    background-color: #232323;
    margin-left: 60px;
}

.post[class*="comment-depth"] {
    transition: background-color 0.2s ease;
}

.post[class*="comment-depth"]:hover {
    background-color: #2d2d2d;
}

.banned-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", Arial, sans-serif;
}



.badges-row {
    display: flex;
    align-items: center;
    margin-left: 8px;
    gap: 2px;
}

.badge, .badges-row, .sap-badge, .sap-plus-badge, .sap-plus-plus-badge, .shmoobnet-badge, .shmooble-badge, .banned-badge, .employee-badge, .bug-badge {
    margin-left: 0 !important;
    gap: 0 !important;
    display: inline-block !important;
    vertical-align: middle;
}
.badge {
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative;
    margin-left: 0 !important;
}
.badge:not(:first-child) {
    margin-left: 6px !important;
}
.badge:first-child {
    margin-left: 2px !important;
}
.badge img {
    width: 18px;
    height: 18px;
    margin: 0 0 2px 0;
    vertical-align: middle !important;
}

.badge svg {
    width: 16px;
    height: 16px;
}

.badge-tooltip {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
    margin-bottom: 6px;
}
.badge:hover .badge-tooltip {
    opacity: 1;
}
.badge-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.sap-badge {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.sap-plus-badge {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.sap-plus-plus-badge {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.shmoobnet-badge {
    margin-left: 6px;
}

.shmooble-badge {
    margin-left: 6px;
}

.banned-badge {
    margin-left: 6px;
}

.star-own-post {
    cursor: not-allowed !important;
    position: relative;
}

.star-own-post:hover {
    background: transparent !important;
    box-shadow: none !important;
}

.star-own-post::after {
    content: "You can't star your own post!";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
    margin-bottom: 5px;
}

.star-own-post::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.star-own-post:hover::after,
.star-own-post:hover::before {
    opacity: 1;
}

.employee-badge {
    margin-left: 6px;
}
.employee-badge img {
    width: 20px;
    height: 20px;
}

.bug-badge {
    margin-left: 6px;
}

.comment-form .textarea-preview {
    font-size: 14px;
    padding: 12px;
}

.reaction-filter-container {
    position: relative;
    display: flex;
    align-items: center;
}





.circle-filter-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.circle-filter-btn svg {
    width: 20px;
    height: 20px;
}

.reaction-filter-dropdown {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 2px 8px #0008;
    z-index: 1000;
}

.reaction-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
    border-bottom: 1px solid #333;
}

.reaction-filter-item:last-child {
    border-bottom: none;
}

.reaction-filter-item:hover {
    background: #333;
}

.reaction-filter-item.selected {
    background: #444;
}

.reaction-filter-item svg {
    width: 24px;
    height: 24px;
}

.reaction-filter-item svg[fill] {
    stroke: none;
}

.reaction-filter-item svg[stroke] {
    stroke: #fff;
}

.reaction-filter-item span {
    font-size: 14px;
    font-weight: 500;
}

/* User Profile Styles */
.reaction-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #232323;
    border-radius: 8px;
}

.reaction-stat img {
    opacity: 1;
}

.reaction-stat span {
    color: #fff;
    font-size: 1.1em;
}

#userProfileContent {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 20px;
}

.profile-header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    cursor: pointer;
}

.profile-header .bio {
    color: #aaa;
    font-size: 1.1em;
    margin: 12px 0;
}

.profile-header .token-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.profile-header .token-balance img {
    width: 24px;
    height: 24px;
}

.profile-header .token-balance span {
    color: #fff;
    font-size: 1.1em;
}



