/* 
 * FAIFL FOTOL Stylesheet
 * Minimalistic, Fluent Design using White and Yellow theme.
 */

:root {
    --bg-color: #fcfcfc;
    --surface-color: rgba(255, 255, 255, 0.85);
    --surface-color-solid: #ffffff;
    --primary-color: #f7ca18;
    /* Yellow */
    --primary-hover: #e0b615;
    --text-color: #1a1a1a;
    --text-muted: #757575;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-focus: rgba(247, 202, 24, 0.6);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.07);
    --radius-md: 16px;
    /* Scaled up */
    --radius-lg: 28px;
    /* Scaled up */
    --font-scale: 1.05;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* App Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-area {
    flex-grow: 1;
    padding: 80px 20px 100px 20px;
    /* Adjusted top padding for sticky header */
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* --- HEADER & NAVIGATION --- */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    /* Larger */
    font-weight: 850;
    color: var(--text-color);
    letter-spacing: -1.5px;
    background: linear-gradient(45deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.page-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Header Search */
.header-search-form {
    display: flex;
    align-items: center;
    background: var(--surface-color-solid);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header-search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.header-search-input {
    border: none;
    background: transparent;
    padding: 12px 20px;
    /* More padding */
    outline: none;
    width: 300px;
    /* Wider */
    font-size: 16px;
    /* Larger font */
}

.header-search-select {
    border: none;
    background: transparent;
    padding: 8px;
    outline: none;
    border-left: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

.header-search-submit {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth springy transitions */
    cursor: pointer;
    color: var(--text-muted);
}

.nav-item:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-3px);
    /* Floating animation */
}

.nav-item:active {
    transform: scale(0.9);
    /* Press animation */
}

.nav-item .nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.nav-item .nav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-link:hover {
    color: #dc2626;
    background-color: #fee2e2 !important;
}

.header-profile-link .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.header-profile-link .avatar-micro {
    border: 1.5px solid var(--primary-color);
}

.header-profile-link .nav-label {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- BOTTOM NAVIGATION (MOBILE) --- */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--surface-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-item:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.03);
}

.mobile-nav-item .nav-icon {
    font-size: 26px;
    /* Larger icons */
}

.mobile-nav-item .nav-label {
    font-size: 11px;
    /* Slightly larger */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-color-solid);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-search-overlay.show {
    transform: translateY(0);
}

.search-overlay-content {
    padding: 40px 20px;
}

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

.overlay-search-input {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    outline: none;
}

.overlay-search-submit {
    padding: 15px;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.overlay-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* --- AVATARS --- */
.avatar-micro {
    width: 24px;
    height: 24px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.avatar-small {
    width: 42px;
    height: 42px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 40px;
    /* Squircle */
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    display: block;
    /* Avoid inline spacing issues */
}

/* Hide header search and nav labels on small screens */
@media (max-width: 768px) {
    .header-content {
        padding: 0 8px;
        gap: 5px;
    }

    .header-left {
        flex-shrink: 0;
    }

    .header-center {
        display: flex;
        flex: 1;
        margin: 0;
        min-width: 0;
    }

    .header-search-form {
        width: 100%;
        max-width: 100%;
    }

    .header-search-input {
        flex: 1;
        width: 100%;
        min-width: 0;
        padding: 6px 10px;
        font-size: 14px;
    }

    .header-search-select {
        display: none;
        /* Hide select for space */
    }

    .app-header .logo-text {
        display: none;
    }

    .header-right .nav-item:not(.mobile-menu-btn):not(.notifications-container) {
        display: none;
    }

    .header-right .nav-label {
        display: none;
    }

    .header-nav {
        gap: 8px;
    }

    .content-area {
        padding-bottom: 70px;
    }

    .profile-header {
        padding: 20px 15px !important;
    }

    .profile-info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        object-fit: cover;
        aspect-ratio: 1 / 1;
        border-radius: 30px;
    }

    .profile-details {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-title-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: 5px;
        width: 100%;
    }

    .profile-title-row h2 {
        font-size: 1.4rem;
        word-break: break-all;
    }

    .profile-stats {
        justify-content: center;
        gap: 15px !important;
        font-size: 0.9rem;
        width: 100%;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .profile-actions .fluent-btn {
        flex: 1 1 auto;
        /* Allow buttons to shrink/grow but not overflow */
        min-width: 80px;
        justify-content: center;
    }

    .country-badge-btn {
        border-radius: 20px !important;
        padding: 5px 12px !important;
    }

    .profile-bio {
        word-break: break-word;
        font-size: 0.9rem !important;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .admin-controls-box {
        justify-content: center;
        padding: 10px !important;
    }

    .emoji-trigger-container {
        display: none !important;
    }

    .create-modal .fluent-textarea {
        padding-bottom: 20px !important;
    }
}

@media (min-width: 769px) {

    .mobile-bottom-nav,
    .mobile-menu-btn {
        display: none !important;
    }
}

.mobile-menu-btn {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Dropdown */
.mobile-menu-dropdown {
    position: fixed;
    top: 60px;
    right: 15px;
    width: 240px;
    z-index: 10005;
    display: none;
    animation: slideInDown 0.2s ease;
}

.mobile-menu-dropdown.show {
    display: block;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    /* Slightly increased gap */
    padding: 14px 20px;
    /* Better padding */
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
    margin: 4px 8px;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    /* Prevent text wrapping */
    font-weight: 500;
}

.mobile-menu-item:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
    /* Subtle slide effect */
}

.mobile-menu-item .nav-icon {
    width: 24px;
    /* Fixed width for alignment */
    text-align: center;
    font-size: 1.3rem;
}

.mobile-menu-item.danger {
    color: var(--error-color);
}

.mobile-submenu {
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-submenu .mobile-menu-item {
    font-size: 0.9rem;
    padding-left: 45px !important;
}

/* Post Menu */
.post-menu-container {
    position: relative;
}

.post-menu-btn {
    cursor: pointer;
    padding: 5px;
    font-size: 20px;
    color: var(--text-muted);
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 200px;
    /* Increased min-width */
    z-index: 1005;
    /* Higher z-index */
    display: none;
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    /* More premium shadow */
    overflow: hidden;
}

.dropdown-animate {
    animation: dropdownPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top right;
}

@keyframes dropdownPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.post-menu-dropdown.show {
    display: block;
}

.post-menu-dropdown .mobile-menu-item {
    margin: 0;
    /* Remove individual margins */
    border-radius: 0;
    /* Remove individual rounding */
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.post-menu-dropdown .mobile-menu-item:last-child {
    border-bottom: none;
}

.post-menu-dropdown .mobile-menu-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: none;
    /* Removed slide effect for unified list */
}

.post-menu-dropdown .mobile-menu-item:first-child {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.post-menu-dropdown .mobile-menu-item:last-child {
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.post-menu-dropdown.show {
    display: block;
}

/* Comment Toggle Icon Button */
.comment-submit-icon-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.comment-submit-icon-btn:hover {
    transform: scale(1.1);
}

/* Language Menu Adjustment */
.lang-menu {
    top: 100%;
    margin-top: 10px;
    right: 0;
    display: none;
    position: absolute;
    background-color: var(--surface-color-solid);
    min-width: 120px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 1001;
}

.lang-menu.show {
    display: block !important;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

/* Typography */
.fluent-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.fluent-title-small {
    font-size: 20px;
    font-weight: 600;
}

.fluent-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.center-text {
    text-align: center;
}

.m-0 {
    margin: 0;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.text-muted {
    color: var(--text-muted);
}

.text-small {
    font-size: 12px;
}

/* Buttons */
.fluent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.fluent-btn.primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 10px rgba(247, 202, 24, 0.3);
}

.fluent-btn.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(247, 202, 24, 0.4);
}

.fluent-btn.secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
}

.fluent-btn.secondary:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.fluent-btn.text-only {
    background-color: transparent;
    color: var(--text-muted);
}

.fluent-btn.text-only:hover {
    color: var(--text-color);
}

.fluent-btn.small {
    padding: 8px 16px;
    font-size: 13px;
}

.button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button-group {
    display: flex;
    gap: 12px;
}

.account-type-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.account-type-badge.business {
    background: #0095f6;
    color: white;
    border-color: transparent;
}

.account-type-badge.badge-error {
    background: var(--error-color);
    color: #fff;
}

.account-type-badge.badge-private {
    background: #000;
    color: #fff;
}

.mention-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.mention-link:hover {
    text-decoration: underline;
}

/* Forms */
.fluent-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding-left: 4px;
    border-left: 3px solid var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .fluent-input {
    flex: 1;
}

.fluent-input,
.fluent-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--surface-color-solid);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.fluent-input:focus,
.fluent-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.fluent-textarea {
    resize: vertical;
}

/* Input Prefixes */
.prefix-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.prefix-text {
    position: absolute;
    left: 16px;
    color: var(--text-color);
    font-weight: 600;
    pointer-events: none;
    font-size: 15px;
}

.prefix-container .fluent-input {
    padding-left: 32px;
}

/* Password Toggle */
.password-toggle-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    user-select: none;
}

.password-toggle-btn:hover {
    color: var(--text-color);
}

.password-toggle-container .fluent-input {
    padding-right: 45px;
    /* Space for the button */
}

/* Custom Checkbox */
.fluent-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: var(--text-muted);
}

.fluent-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--surface-color-solid);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.fluent-checkbox-container:hover input~.checkmark {
    border-color: var(--primary-color);
}

.fluent-checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.fluent-checkbox-container input:checked~.checkmark:after {
    display: block;
}

.fluent-checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    margin-left: 5px;
}

/* Map Search Styling */
#search_results {
    background: var(--surface-color-solid) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-result-item {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-color);
    transition: background 0.2s;
}

.search-result-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.search-result-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

/* Utility Layouts */
.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.auth-box,
.welcome-box,
.create-box,
.edit-box {
    width: 100%;
    max-width: 400px;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.flash-error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.flash-success {
    background-color: #d1fae5;
    color: #047857;
}

/* Footer & Nav */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--surface-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
}

.footer-left {
    display: flex;
    gap: 20px;
}

.footer-btn {
    font-weight: 600;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.footer-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-menu.show {
    display: block !important;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-menu span {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    cursor: pointer;
    font-size: 14px;
}

.lang-menu span:hover {
    background-color: var(--primary-color);
}

.footer-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    background: var(--surface-color-solid);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px 16px;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-select {
    border: none;
    background: transparent;
    padding: 8px;
    outline: none;
    border-left: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

.search-submit {
    background: var(--primary-color);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-submit:hover {
    background-color: var(--primary-hover);
}

/* Post Cards */
.post-card {
    background: var(--surface-color-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    /* Ensure relative for dropdowns */
    z-index: 1;
    /* Base z-index */
    box-shadow: var(--shadow-sm);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-small {
    width: 52px;
    /* Chunkier */
    height: 52px;
    border-radius: 18px;
    /* More squircle/modern */
    object-fit: cover;
    border: 2px solid var(--surface-color-solid);
    box-shadow: var(--shadow-sm);
}

.avatar-micro {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post-desc {
    padding: 10px 20px 0 20px;
    /* Reduced padding */
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #1a1a1a;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow: hidden;
}

.post-image,
.post-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-actions {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap for tighter grouping */
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    /* Slightly smaller text */
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth animation */
}

.action-btn .like-icon {
    font-size: 20px;
    /* Reduced from 22px to be more balanced */
    transition: transform 0.2s ease;
}

.action-btn:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: scale(0.92);
    /* Click feedback animation */
}

.action-btn.liked {
    color: #000;
}

.action-btn.liked .like-icon {
    animation: heartBeat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.action-btn.delete {
    color: #dc2626;
}

.comments-section {
    padding: 0 16px 16px 16px;
}

.comment-list {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    display: flex;
    gap: 12px;
    font-size: 15px;
    /* Slightly larger */
}

.comment-content {
    background: rgba(0, 0, 0, 0.03);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    flex-grow: 1;
    line-height: 1.4;
}

.comment-input-area {
    display: flex;
    gap: 10px;
}

.comment-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
}

.comment-input:focus {
    border-color: var(--primary-color);
}

.comment-submit {
    background: var(--primary-color);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}


.profile-info-row {
    display: flex;
    gap: 24px;
    align-items: center;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* User List */
.flex-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flex-grow {
    flex-grow: 1;
}

.user-list-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-list-link {
    font-weight: 600;
    font-size: 16px;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.scroll-top-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(247, 202, 24, 0.4);
}

/* Multi-photo Post Styles & Slider */
.post-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.post-media-slider {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Hide scrollbar */
}

.post-media-slider::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: center;
    position: relative;
}

.slider-item img,
.slider-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.5);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    font-size: 14px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.post-image-container:hover .feed-nav-btn {
    opacity: 1;
}

.feed-nav-btn:hover {
    background: #fff;
}

.feed-prev {
    left: 10px;
}

.feed-next {
    right: 10px;
}

.photo-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
}

.video-mute-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: transparent;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.post-image-container:hover .video-mute-btn {
    opacity: 1;
}

.video-mute-btn:hover {
    transform: scale(1.2);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2100;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

/* Big Heart Overlay Animation */
.big-heart-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 80px;
    color: var(--primary-color);
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.big-heart-overlay.animate {
    animation: bigHeartPulse 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bigHeartPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    30% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
    }

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

    80% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.lightbox-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0 30px;
}

/* Ensure buttons don't push the image container and keep it centered */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2005;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image-container img,
.lightbox-image-container video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    width: 50px;
    height: 50px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Create Post Previews */
.image-previews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Notification Dropdown */
.notifications-container {
    position: relative;
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: #ff4d4d;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface-color-solid);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notif-dropdown {
    position: absolute;
    top: 120%;
    right: -20px;
    /* Adjusted for better alignment */
    width: 300px;
    /* Slightly narrower */
    max-height: 480px;
    /* More space */
    background: var(--surface-color-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    /* More premium rounding */
    box-shadow: var(--shadow-md);
    z-index: 1000;
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: dropdownPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notif-dropdown.show {
    display: flex !important;
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

.notif-list {
    overflow-y: auto;
    flex: 1;
}

/* Notification Dropdown */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    align-items: center;
    position: relative;
}

.notif-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.notif-item.unread {
    background: rgba(247, 202, 24, 0.05);
    /* Match yellow theme subtly */
}

.notif-item .avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.notif-content {
    flex: 1;
    font-size: 13.5px;
    line-height: 1.4;
}

.notif-content strong {
    color: var(--text-color);
}

.notif-username {
    text-decoration: none;
    color: inherit;
}

.notif-username:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.notif-action-text {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s;
}

.notif-action-text:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Account Switcher */
.account-switcher-container {
    position: relative;
    cursor: pointer;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-md);
    margin: 4px 8px;
    border-bottom: none !important;
}

.account-item:hover {
    background: rgba(247, 202, 24, 0.08) !important;
    transform: translateX(4px) scale(1.02);
}

.account-item.active {
    background: rgba(0, 0, 0, 0.02);
}

.account-item.active .notif-content strong::after {
    content: ' (Logged in)';
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 400;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.switcher-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    min-width: 16px;
    height: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Premium Switcher Footer Button */
.switcher-footer-btn {
    width: 100%;
    padding: 14px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.switcher-footer-btn:hover {
    background: rgba(247, 202, 24, 0.1);
    color: var(--primary-hover);
    letter-spacing: 0.5px;
}

.switcher-footer-btn:active {
    transform: scale(0.95);
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.remove-preview {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-image-btn {
    width: 80px;
    height: 80px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.add-image-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(247, 202, 24, 0.05);
}

.add-image-btn span {
    font-size: 24px;
    font-weight: bold;
}

.add-image-btn p {
    font-size: 10px;
    margin: 4px 0 0 0;
    gap: 8px;
}

.repost-header strong {
    color: var(--text-color);
}

/* End of Feed Styles */
.end-of-feed {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.end-of-feed p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Post Desc refined below */
.show-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0;
    margin-bottom: 5px;
    display: block;
    transition: color 0.2s;
}

.show-more-btn:hover {
    color: var(--primary-hover);
}

/* Minimalist Feed Top Create Trigger */
.create-trigger-box {
    background: var(--surface-color-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.create-trigger-box:hover {
    border-color: var(--primary-color);
    background: rgba(247, 202, 24, 0.02);
    transform: translateY(-2px);
}

.trigger-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.trigger-icon {
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Create Modal Refinements - Wider */
.mention-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mention-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.create-modal .modal-body {
    width: 95%;
    max-width: 800px;
    padding: 40px;
    position: relative;
    border-radius: var(--radius-lg);
}

.textarea-wrapper {
    position: relative;
    width: 100%;
}

.create-modal .fluent-textarea {
    font-size: 18px;
    padding: 20px;
    padding-bottom: 50px;
    /* Space for emoji button */
    min-height: 150px;
    border-color: rgba(0, 0, 0, 0.08);
    width: 100%;
    margin-bottom: 10px;
}

.emoji-trigger-container {
    position: absolute;
    bottom: 25px;
    right: 20px;
    z-index: 10;
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 280px;
    height: 320px;
    background: var(--surface-color-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    margin-bottom: 10px;
    overflow-y: auto;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    animation: slideUpFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
}

.emoji-item {
    font-size: 22px;
    padding: 5px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    user-select: none;
}

.emoji-item:hover {
    background: rgba(247, 202, 24, 0.1);
    transform: scale(1.2);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    overflow-x: auto;
    padding: 10px 0;
    min-height: 120px;
}

.add-media-trigger {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.image-previews-container {
    display: flex;
    gap: 12px;
}

.preview-item {
    box-sizing: border-box;
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s, opacity 0.2s;
    background: #eee;
}

.preview-item:active {
    cursor: grabbing;
}

.preview-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-file-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}

.remove-file-btn:hover {
    background: var(--error-color);
}

.add-media-trigger {
    flex-shrink: 0;
}

.add-image-btn {
    box-sizing: border-box;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    margin: 0;
    /* Clear potential default margins */
}

/* Like count clickable text */
.like-count-text {
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-left: -5px;
    /* Bring it closer to the heart icon */
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    height: 38px;
    /* Match button height impact */
}

.like-count-text:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* Specific styling for user list items in modal */
#userListContent .notif-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

#userListContent .notif-item:last-child {
    border-bottom: none;
}

#userListContent .avatar-small {
    width: 40px;
    height: 40px;
}

/* Profile stats clickable cursor */
#connectionsCount {
    cursor: pointer;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    transition: all 0.2s;
    background: rgba(247, 202, 24, 0.1);
    color: var(--text-color);
    border: 1px solid transparent;
}

#connectionsCount:hover {
    background: var(--primary-color);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Comment Likes Styles */
.comment-like-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
    user-select: none;
}

.comment-like-icon {
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    opacity: 0.6;
}

.comment-like-icon:hover {
    transform: scale(1.3);
    opacity: 1;
}

.comment-like-icon.liked {
    opacity: 1;
}

.comment-like-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

.comment-like-count:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- WALLET & BALANCE COUNTER --- */
.business-balance-counter {
    position: fixed;
    bottom: 85px;
    left: 20px;
    z-index: 9999;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(247, 202, 24, 0.2);
}

.business-balance-counter:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--surface-color-solid);
    box-shadow: 0 12px 40px rgba(247, 202, 24, 0.3);
}

.business-balance-counter .balance-icon {
    font-size: 24px;
}

.business-balance-counter .balance-text {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.2px;
}

/* Wallet Page */
.wallet-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.wallet-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
}

.balance-display {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 20px 0 30px 0;
    border: 1px solid rgba(247, 202, 24, 0.2);
}

.balance-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 850;
    color: var(--text-color);
    margin: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.topup-section {
    padding: 10px 0;
}

.w-100 {
    width: 100%;
}

@media (max-width: 768px) {
    .business-balance-counter {
        bottom: 85px;
        left: 15px;
        padding: 10px 16px;
    }

    .wallet-card {
        padding: 20px;
    }

    .balance-amount {
        font-size: 28px;
    }
}

/* Advertisement System Styles */
.action-btn.promote {
    background: #fff9db;
    border-color: #fcc419;
    color: #f08c00;
}

.action-btn.promote:hover {
    background: #fff3bf;
}

.action-btn.cancel-promo {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.action-btn.cancel-promo:hover {
    background: #fecaca;
}

.ad-trigger-btn {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 2px;
}

.ad-trigger-btn:hover {
    background: var(--primary-color);
}


.ad-intro-row {
    padding: 10px 16px;
    background: #fff9db;
    border-top: 1px dashed #fcc419;
    border-bottom: 1px dashed #fcc419;
    animation: slideDown Ad 0.3s ease;
}

.ad-link-text {
    font-size: 14px;
    font-weight: 600;
    color: #f08c00;
    text-decoration: none;
    display: block;
}

.ad-link-text:hover {
    text-decoration: underline;
}

@keyframes slideDownAd {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal specific for promotion */
#promoteModal {
    z-index: 2500;
}

.comment-metadata {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-reply-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.comment-reply-btn:hover {
    color: var(--primary-color);
}

/* Suggested Profiles Carousel */
.suggested-profiles-section {
    margin-bottom: 20px;
    padding: 15px 0;
    overflow: hidden;
}

.suggested-header {
    padding: 0 15px 10px 15px;
}

.suggested-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 15px;
    scroll-snap-type: x mandatory;
}

.profile-promo-card {
    min-width: 180px;
    max-width: 180px;
    padding: 15px;
    text-align: center;
    scroll-snap-align: start;
    transition: transform 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-promo-card:hover {
    transform: translateY(-5px);
}

.promo-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--primary-color);
}

.promo-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-username {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.promo-bio {
    font-size: 0.8rem;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-color);
}

.post-views-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* Desktop Floating Countries Button */
.floating-btn {
    position: fixed !important;
    top: 100px !important;
    left: 20px !important;
    z-index: 9999 !important;
    /* Extremely high to be sure */
    background-color: var(--surface-color-solid) !important;
    border: 2px solid var(--primary-color) !important;
    /* Yellow border */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    background-color: var(--primary-color) !important;
    color: #000 !important;
}

.floating-btn .nav-icon {
    font-size: 1.2rem !important;
}

/* Desktop Sidebar Toggle (Header version removed) */
.sidebar-toggle-btn {
    display: none;
}

.sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Hide floating button when ANY modal or sidebar is open */
body.modal-open #countriesFloatingBtn,
body.modal-open .business-balance-counter,
.countries-sidebar.show~#countriesFloatingBtn,
.countries-sidebar.show~.business-balance-counter {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: none !important;
    /* Immediate hiding */
}

.countries-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface-color-solid);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.countries-sidebar.show {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-sidebar {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.countries-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.country-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
    font-size: 0.95rem;
}

.country-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.desktop-only {
    display: flex;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .floating-btn {
        display: none !important;
    }
}