/*
Theme Name: Gecko Child
Template: peepso-theme-gecko
Author: CHC
Version: 7.0.3.0
Description: Child theme for Gecko (PeepSo Theme)
Text Domain: gecko-child
*/


html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

.gc-header__wrapper {

    width: 100% !important;
    margin: 0 auto;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.gc-header__addons {
    margin-right: -4px;
    /* Adjust as needed */
}


.gc-header {
    width: 75%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
}

.gc-header__inner {
    width: 100%;
    max-width: inherit !important;
    /* Inherit max-width from parent .gc-header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.main-container {
    width: 75% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    background-color: #FCFCFC;
}

/*============================
HOME PAGE LAYOUT
=============================*/

.home-container {
    width: 100%;
    margin: 0 auto;
    padding: 41px 0;
    display: grid;
    grid-template-columns: minmax(285px, 285px) 1fr;
    grid-template-areas: "left-sidebar home-feed";
    column-gap: 16px;
    /* Maintain consistent gap between columns */
    row-gap: 24px;
    /* Keep vertical gap for any stacked elements */
    align-items: start;
    background-color: #FCFCFC;
    /* Explicit background color */
}

/* Left Sidebar */
.left-sidebar {
    grid-area: left-sidebar;
    position: static;
    /* Remove sticky positioning to allow natural scrolling */
    margin: 0;
    padding: 0;
    min-width: 285px;
    /* Ensure minimum width matches grid allocation */
    max-width: 285px;
    /* Ensure consistent width */
    /* Remove max-height and overflow to scroll with main content */
}

/* Home Feed */
.home-feed {
    grid-area: home-feed;
    min-height: 600px;
    padding-right: 4px;
}

/* Questions component is now part of left sidebar with consistent card spacing */
.questions-right-sidebar {
    margin-bottom: 20px;
    /* Consistent 20px spacing with other sidebar cards */
}

/*============================
LOGIN PAGE LAYOUT
=============================*/
.login-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 20px 20px;
    max-width: 1440px;
    margin: 0 auto;
}





.ps-post__date+.ps-post__copy .ps-tooltip {
    display: none;
}

.org-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.org-meta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    width: fit-content;
}

.org-meta-name {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.org-meta-type {
    background-color: #27ae60;
    color: #fff;
}

/* Additional styles for organization info in profile focus area */
.ps-focus .org-meta-wrapper {
    margin-top: 5px;
}

.ps-focus .org-meta {
    color: #fff;
}

.ps-focus .org-meta-name {
    background-color: #6c7cff;
    color: #fff;
}

.ps-focus .org-meta-name a {
    color: #fff;
    text-decoration: none;
}

.ps-focus .org-meta-name a:hover {
    text-decoration: underline;
}

.pso-messages-list-item__author .org-meta-wrapper {
    margin-top: 2px;
    margin-bottom: 5px;
}

.pso-messages-list-item__author .org-meta.org-meta-name,
.pso-messages-list-item__author .org-meta.org-meta-type {
    display: block;
    line-height: 1.4;
    margin: 0;
    /* optional to clean spacing */
}

/* Organization meta styling for profile widget */
.psw-profile__meta .org-meta-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.psw-profile__meta .org-meta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0;
    line-height: 1.4;
}

.psw-profile__meta .org-meta-name {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.psw-profile__meta .org-meta-name a {
    color: inherit;
    text-decoration: none;
}

.psw-profile__meta .org-meta-name a:hover {
    text-decoration: underline;
}

.psw-profile__meta .org-meta-type {
    background-color: #4CAF50;
    color: #fff;
}

/* Reactions section styling */
.ps-post__reactions-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    margin: 10px 0 0 0;
}

.ps-post__reaction-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 14px;
}

.ps-post__reaction-indicator i {
    font-size: 16px;
    color: #ffa500;
}

.ps-post__reaction-button {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.ps-post__reaction-button:hover {
    background-color: #f0f8ff;
}

.ps-post__reaction-button i {
    font-size: 16px;
}

/* Post bottom menu styling - horizontal menu above comments */
.ps-post__bottom-menu {
    margin: 0;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.ps-post__bottom-menu-inner {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.ps-post__bottom-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    border-right: 1px solid #e0e0e0;
}

.ps-post__bottom-action:last-child {
    border-right: none;
}

.ps-post__bottom-action:hover {
    color: #007bff;
    background-color: #f8f9fa;
    text-decoration: none;
}

.ps-post__bottom-action i {
    font-size: 16px;
}

.ps-post__bottom-action span {
    font-weight: 500;
}

/* Special styling for reaction button */
.ps-post__bottom-action--reaction {
    color: #007bff;
}

.ps-post__bottom-action--reaction:hover {
    color: #0056b3;
    background-color: #e7f3ff;
}

.ps-post__content {
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #000000;
}



/* Styles for the profile menu items */
.psw-profile__menu-item {
    font-family: "Mona Sans", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 0%;
    display: flex;
    /* To align icon and text */
    align-items: center;
    /* To vertically center icon and text */
    gap: 12px;
    /* For the gap between icon and text */
}

.psw-profile__menu-icon {
    width: 20px;
    height: 20px;
}

.psw-profile__menu-item img[src*="me-side-bar-peer-networks-icon.png"] {
    width: 20px;
    height: 16px;
}

#sidebar-left {
    max-width: 100%;
    /* Default for smaller screens */
}

.main {
    width: 75% !important;
    max-width: 1440px !important;
    padding: 0 !important;
    padding-top: 30px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

#main {

    width: 100% !important;
}

.content {
    width: 75% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
}

.ps-groups-layout {

    width: 100% !important;
}

.ps-page--group {

    width: 100% !important;
}

.ps-page--groups {

    width: 100% !important;
}

.ps-page {

    width: 100% !important;
}

.peepso {

    width: 100% !important;
}

#peepso-wrap {

    width: 100% !important;
}

.entry-content {

    width: 100% !important;
}

.me-sidebar {
    width: 100%;
}

.profile-card,
.menu-card {
    width: 100%;
}

/*============================
RESPONSIVE DESIGN - ZOOM-SAFE BREAKPOINTS
=============================*/

/* Ensure header and main container always have the same width and max-width */
/* This approach is more zoom-friendly than percentage-only widths */

/* Force consistent container sizing across all zoom levels */
.gc-header,
.main-container,
.content {
    box-sizing: border-box;
    /* Ensure consistent box model */
}

/* At 1440px and below, make header and main container 80% width */
@media (max-width: 1440px) {
    .gc-header {
        width: 80% !important;
        max-width: 1152px !important;
        /* 80% of 1440px */
    }

    .main-container,
    .content {
        width: 80% !important;
        max-width: 1152px !important;
        /* 80% of 1440px */
    }
}

/* At 1200px and below, make header and main container 85% width */
@media (max-width: 1200px) {
    .gc-header {
        width: 85% !important;
        max-width: 1020px !important;
        /* 85% of 1200px */
    }

    .main-container,
    .content {
        width: 85% !important;
        max-width: 1020px !important;
        /* 85% of 1200px */
    }
}

@media (max-width: 1100px) {
    .gc-header {
        width: 90% !important;
        max-width: 990px !important;
        /* 90% of 1100px */
    }

    .main-container,
    .content {
        width: 90% !important;
        max-width: 990px !important;
        /* 90% of 1100px */
    }
}

/* At 1024px and below, make header and main container 95% width */
@media (max-width: 1024px) {
    .gc-header {
        width: 95% !important;
        max-width: 972px !important;
        /* 95% of 1024px */
    }

    .main-container,
    .content {
        width: 95% !important;
        max-width: 972px !important;
        /* 95% of 1024px */
    }

    /* Override mobile.css - keep sidebars visible at 1024px */
    .left-sidebar,
    .chc-home-page .left-sidebar,
    #sidebar-left,
    .group-sidebar {
        display: block !important;
    }

    /* Questions component is now part of left sidebar - no separate right sidebar rules needed */
}

/* Responsive sidebar adjustments for smaller screens */
@media (max-width: 1200px) {
    .home-container {
        grid-template-columns: minmax(260px, 260px) 1fr;
        /* Slightly reduce sidebar width on smaller screens */
    }

    .left-sidebar,
    .left-side-bar-container {
        min-width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 1024px) {
    .home-container {
        grid-template-columns: minmax(240px, 240px) 1fr;
        /* Further reduce sidebar width on tablets */
    }

    .left-sidebar,
    .left-side-bar-container {
        min-width: 240px;
        max-width: 240px;
    }
}






#body {
    background-color: #FCFCFC;
}

#main,
.content,
#sidebar-left,
.me-sidebar {
    background-color: #FCFCFC;
}

.gc-header__sidebar.gc-js-header-sidebar.gc-header__sidebar--open {
    z-index: 99999999 !important;
}


/* this was to hide hte posts filters and search
div.ps-posts__filters.ps-posts__filters--compact-mobile {
    display: none !important;
}
*/

.ps-postbox__input-beautifier {
    display: none !important;
}


/*
================================
POST TEMPLATE
================================
*/


.ps-post__action span span {
    font-family: "Mona Sans", sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0% !important;
    color: #666 !important;
}


.ps-reactions__likes {
    position: relative;
    min-height: 35px;
    display: flex !important;
    /* or block if that was the default */
}

/* Make the dropdown take up no space when visible */
.ps-reactions__dropdown {
    overflow: visible !important;
}

/* Reposition the reaction buttons when they're visible - force horizontal */
.ps-reactions__list.ps-reactions__list--selected {
    width: auto !important;
    position: absolute !important;
    top: -60px !important;
    left: 110px !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    background: white !important;
    padding: 12px 4px !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    height: 46px !important;
    box-sizing: border-box !important;
    width: 285px !important;
}

/* ADD THIS NEW RULE - Style for posts WITHOUT existing reactions */
.ps-reactions__list:not(.ps-reactions__list--selected) {
    width: auto !important;
    position: absolute !important;
    top: -60px !important;
    left: 110px !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    background: white !important;
    padding: 12px 4px !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    height: 46px !important;
    box-sizing: border-box !important;
    width: 285px !important;
}

/* Force horizontal layout on reaction items */
/* Force horizontal layout on reaction items - REDUCED SPACING */
.ps-reactions__list-item {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 -3px !important;
    /* Reduced from 2px to 1px */
    vertical-align: middle !important;
}

/* Style the actual reaction links */
.ps-reactions__list-item a {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
}


/* Make reaction icons bigger ONLY within the reactions list */
.ps-reactions__list [class*="ps-reaction-emoticon-"] {
    width: 28px !important;
    height: 28px !important;
    background-size: 28px 28px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: inline-block !important;
    border-radius: 50% !important;
}

/* Make the delete button icon bigger within the reactions list */
.ps-reactions__list .ps-reaction-option-delete .gcir {
    font-size: 24px !important;
}

/* Ensure all reaction option anchors in the list accommodate bigger icons */
.ps-reactions__list .ps-reaction-option {
    width: 28px !important;
    height: 28px !important;
    display: inline-block !important;
}


.ps-reaction-emoticon-0 {
    z-index: 20;
    position: relative;
}

.ps-reaction-emoticon-1 {
    z-index: 6;
    position: relative;
}

.ps-reaction-emoticon-10 {
    z-index: 5;
    position: relative;
}

.ps-reaction-emoticon-9 {
    z-index: 4;
    position: relative;
}

.ps-reaction-emoticon-2 {
    z-index: 3;
    position: relative;
}

.ps-reaction-emoticon-5 {
    z-index: 2;
    position: relative;
}

.ps-reaction-emoticon-4 {
    z-index: 1;
    position: relative;
}

/* Follow Button Icons */
i.gcir.gci-square-check,
i.gcis.gci-square-check {
    display: inline-block;
    width: 16px;
    /* Adjust as needed */
    height: 16px;
    /* Adjust as needed */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    font-size: 0;
    /* Hide the original font icon */
    color: transparent;
    /* Ensure the font icon color is transparent */
}

i.gcir.gci-square-check {
    background-image: url('/wp-content/themes/peepso-theme-gecko-child/assets/icons/activity-post-follow-icon.png');
}

i.gcis.gci-square-check {
    background-image: url('/wp-content/themes/peepso-theme-gecko-child/assets/icons/activity-post-following-icon.png');
}

i.gcir.gci-bookmark {
    background-image: url('/wp-content/themes/peepso-theme-gecko-child/assets/icons/activity-post-save-icon.png');
}

i.gcis.gci-bookmark {
    background-image: url('/wp-content/themes/peepso-theme-gecko-child/assets/icons/activity-post-saved-icon.png');
}

.chc-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0px 2px;
    transition: background 0.2s;
}

.chc-action-button:hover {
    background: #F3F3F3;
    /* your hover color */
}

.ps-stream__follow-tooltip {
    display: none;

}

.ps-comments__list,
.ps-js-comment-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border: 0 !important;
}

/* Additional spacing reduction for action buttons container */
.ps-post__actions {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ps-post__actions-inner {
    padding-bottom: 0 !important;
}


/* Mobile adjustments */
@media (max-width: 768px) {

    .ps-reactions__list.ps-reactions__list--selected,
    .ps-reactions__list:not(.ps-reactions__list--selected) {
        left: -160px !important;
        /* Adjust this value as needed */
        width: 285px !important;
        /* Optionally make it narrower on mobile */
    }
}

/* For very small screens */
@media (max-width: 480px) {

    .ps-reactions__list.ps-reactions__list--selected,
    .ps-reactions__list:not(.ps-reactions__list--selected) {
        left: -160px !important;
        /* Even closer to left edge */
        width: 285px !important;
        /* Even narrower */
    }
}



/*============================
RESOURCE CARD IN POST ACTIVITY FEED
=============================*/

.resource-card-post-wrapper {
    padding: 0px 15px;
}

.resource-card {
    background: #F6FAFE;
    border: 1px solid #E0E5EB;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
}

.resource-card-label {
    position: absolute;
    top: 0;
    right: 0;
    background: #3171A5;
    color: white;
    padding: 8px 16px;
    border-radius: 0 8px 0 8px;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    z-index: 1;
}

.resource-card-section {
    margin-bottom: 15px;
}

.resource-card-section:last-child {
    margin-bottom: 0;
}

.resource-card-label-text {
    color: #333333;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.resource-card-content {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 400;
    font-style: regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #333333;
}

.resource-card-description {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 400;
    font-style: regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #333333;
}

/*============================
LINK POST STYLING
=============================*/

.chc-link-text {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #333333;
}

.chc-link-url a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 12px;
    line-height: 7px;
    letter-spacing: 0%;
    color: #87878C;
    text-decoration: none;
}

.resource-card-content a {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 400;
    font-style: regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #333333;
    text-decoration: none;
}


.ps-media__title.ps-media-title,
.ps-media__subtitle,
.ps-media__desc.ps-media-desc {
    display: none;
}



/* Default organization name (top-level and base style) */
.org-meta-wrapper .org-meta-name {
    display: inline-block;
    font-family: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    /* top-level default */
    line-height: 16px;
    letter-spacing: 0;
    text-align: center;
    color: #666666;
    background: none;
    background-color: transparent;
    margin-bottom: 8px;
}

/* Reply comments only (nested) */
.ps-comments--nested .org-meta-wrapper .org-meta-name {
    font-size: 10px;
    /* override only this */
}






/* Rebuilt Activity Action buttons */

.chc-activity-reaction-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.chc-activity-action {
    all: unset;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* --- Outer container --- */
.chc-activity-action-buttons {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    width: 95%;
    margin: 0 auto;
    padding: 0;
}

/* --- Inner flex row --- */
.chc-activity-action-buttons-inner {
    display: flex;
    justify-content: space-around;
    /* equal space between button contents */
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    /* equal left/right margins */
}

/* --- Each action button container --- */
.chc-activity-action-button {
    display: flex;
    justify-content: center;
}

/* --- Button reset + layout --- */
.chc-activity-action {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
}

/* --- Hover background --- */
.chc-activity-action:hover {
    background-color: #f2f2f2;
}

.chc-activity-action:hover .chc-activity-label {
    color: #525252;
}

/* --- Prevent parent theme click/active state --- */
.chc-activity-action:active,
.chc-activity-action:focus {
    background-color: #f2f2f2;
    color: inherit;
    outline: none;
}

.chc-activity-action:active .chc-activity-label,
.chc-activity-action:focus .chc-activity-label {
    color: #525252;
}

/* --- Icon style --- */
.chc-activity-icon,
.chc-activity-copy-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Label style --- */
.chc-activity-label {
    font-family: Mona Sans, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;

}


.chc-reaction-icon.no-reaction {
    filter: grayscale(100%) opacity(0.6);
    pointer-events: none;
}

.chc-reaction-label.no-reaction,
.chc-reaction-wrapper:hover .chc-reaction-label.no-reaction {
    color: inherit !important;
}

.chc-activity-action.chc-activity-reaction {
    color: #525252 !important;
}

.chc-activity-action.chc-activity-reaction:hover,
.chc-activity-action.chc-activity-reaction:focus {
    color: #525252 !important;
    text-decoration: none;
}

.chc-reaction-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}


/* End rebuilt Activity Action buttons */
.chc-reactions-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-10%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 35px;
    padding: 4px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    overflow: hidden;
    gap: 8px;
}

.chc-reaction-option {
    all: unset;
    /* remove ALL inherited styles */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    transition: transform 0.15s ease;
}

/* Remove any hover color, only allow scale */
.chc-reaction-option:hover {
    background: none !important;
    transform: scale(1.15);
}

.chc-reaction-option img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin: 0;
    vertical-align: middle;
    pointer-events: none;
}