/* ===== GLOBAL STYLES ===== */

/* Default button styling - purple with shadow */
#buddypress button,
#buddypress a.button,
#buddypress input[type="submit"],
#buddypress input[type="button"],
.entry-content button,
.entry-content input[type="submit"],
.entry-content a.button,
.swpm_mda_profile-button button,
.bp-profile-verified-badge a {
    border: 2px solid #fff !important;
		border-radius: 5px !important;
    background: #742AD5 !important;
    color: #fff !important;
		padding: 15px 20px;
    box-shadow: 3px 3px 10px #ccc !important;
		margin-bottom: 20px;
}

/* Default button hover - teal with inset shadow */
#buddypress button:hover,
#buddypress a.button:hover,
#buddypress input[type="submit"]:hover,
#buddypress input[type="button"]:hover,
.entry-content button:hover,
.entry-content input[type="submit"]:hover,
.entry-content a.button:hover,
.swpm_mda_profile-button button:hover,
.bp-profile-verified-badge a:hover {
    border: 2px solid #fff !important;
    background: #16BEDF !important;
    color: #fff !important;
    box-shadow: 1px 1px 5px #000 inset !important;
}

/* Bold text - blue colour */
b,
strong {
    font-weight: 600;
    color: #154f96;
}

/* Headings - add space above (scoped to content areas only) */
.entry-content h1,
.single-content h1 {
    padding-top: 30px;
}

.entry-content h2,
.single-content h2 {
    padding-top: 20px;
}

/* List items - space between items (scoped to content areas only) */
.entry-content li,
.single-content li,
.wp-block-list li {
    margin-bottom: 20px;
}

/* Bullets - square shape, purple colour */
ul {
    list-style-type: square;
}

li::marker {
    color: #742AD5;
}

/* Separator - thin line, limited width
.wp-block-separator {
    border-top: 0 !important;
    width: 65%;
    overflow-y: hidden;
} */


/* ===== REGISTRATION PAGE ===== */

/* Form background colour */
.swpm-form-builder fieldset {
    background-color: #fafafa !important;
}

/* Form labels - font colour, weight, spacing */
label.swpm-desc {
    font-weight: 500 !important;
    font-size: 16px;
    margin-top: 40px;
    color: #000000 !important;
}

/* Form description text colour */
.page-id-1567 .single-content p:last-child {
    color: #0C9C1F !important;
}

/* Registration & Verification titles colour */
.page-id-1567 h3 {
    color: #0C9C1F;
}

/* Input text boxes - white background */
input.swpm-text,
input[type="text"].swpm-text,
input[type="tel"].swpm-text,
input[type="email"].swpm-text,
input[type="url"].swpm-text,
textarea.swpm-textarea,
select.swpm-select {
    background-color: #ffffff !important;
}

/* Gender Identity description - full width, each sentence on its own line */
.swpm-fb-gender-identity > div > span {
    display: block;
    width: 100% !important;
    clear: both;
    white-space: pre-line !important;
}

/* Photo upload description - each sentence on its own line */
.swpm-fb-profile-image .swpm-span p {
    white-space: pre-line !important;
}


/* ===== MEMBER DIRECTORY PAGE ===== */

/* Search Box - header bar colour */
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: 1px solid #742AD5 !important;
    background: #742AD5 !important;
}

/* Search Box - background colour */
.bps-form.ui-accordion-content.ui-corner-bottom.ui-helper-reset.ui-widget-content.ui-accordion-content-active {
    background: #742AD5 !important;
    box-shadow: 3px 3px 10px #ccc;
}

/* Search Box - remove scroll bar and adjust height */
#form_476.bps-form.ui-accordion-content.ui-corner-bottom.ui-helper-reset.ui-widget-content.ui-accordion-content-active {
    overflow-y: hidden;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 0px;
    margin: 0px;
    height: 130px;
}

/* Search Box - spacing adjustments */
.bps-textbox {
    margin-top: -20px !important;
    margin-bottom: -30px !important;
}

/* Search Box - input field full width */
input#field_any_contains {
    width: 100% !important;
}

/* Search Box - hide label and description */
.bps-label,
.bps-description {
    visibility: hidden;
}

/* Search Box - header label font weight */
.ui-accordion .ui-accordion-header {
    font-weight: 500 !important;
}

/* Search Box - button styling */
.ui-widget button {
    background: #fff !important;
    color: #742AD5 !important;
    border: 2px solid #742AD5 !important;
    padding: 5px 10px 5px 10px !important;
    box-shadow: 3px 3px 10px #000;
}

/* Search Box - button hover */
.ui-widget button:hover {
    background: #742AD5 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: 3px 3px 10px #000 inset;
}

/* Username - font weight and top spacing */
.swpm_mda_member-username {
    font-weight: 500 !important;
    padding-top: 15px !important;
}

/* Country - hide the label text */
.swpm_mda_country .swpm_mda_info-label {
    display: none;
}

/* Hide the SM search bar (using BP search instead) */
form#swpm_mda-search-form {
    display: none !important;
}

/* Sidebar navigation - link colours */
.widget-area a {
    color: #742AD5;
}

.widget-area a:hover {
    color: #ff0000;
}

/* Sidebar navigation - title font weight */
.widget-title {
    font-weight: 500 !important;
}

/* Profile boxes - background, border, shadow */
.swpm_mda_grid-item,
.ui-accordion ui-widget ui-helper-reset {
    background-color: #fafafa !important;
    border: 1px solid #ccc !important;
    box-shadow: 3px 3px 10px #ccc;
}

/* View Profile button - styling */
.swpm_mda_profile-button {
    padding-right: 20px !important;
}



/* --- Member Directory Layout: Image left, text right --- */

/* Grid container - 2 columns (image + text) with 4 rows */
div.swpm_mda_grid-item {
    display: grid !important;
    grid-template-columns: 140px 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 5px 15px !important;
    align-items: start !important;
    text-align: left !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 20px !important;
}

/* Profile image - left column, spans all 4 rows */
div.swpm_mda_grid-item > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 / 5 !important;
}

/* Username - right column, row 1 */
div.swpm_mda_grid-item .swpm_mda_member-username {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-bottom: 0 !important;
}

/* Country - right column, row 2 */
div.swpm_mda_grid-item .swpm_mda_info-lines {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin-bottom: 0 !important;
}

/* Verification badge - right column, row 3 */
div.swpm_mda_grid-item .swpm-verified-badge {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin-bottom: 0 !important;
}

/* View Profile button - right column, row 4 */
div.swpm_mda_grid-item .swpm_mda_profile-button {
    grid-column: 2 !important;
    grid-row: 4 !important;
    margin-top: 0 !important;
}

/* Profile images - fixed size with slight rounding */
div.swpm_mda_grid-item .swpm_mda_profile-image {
    width: 140px !important;
    height: 140px !important;
}

div.swpm_mda_grid-item .swpm_mda_profile-image img {
    width: 140px !important;
    height: 140px !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 140px !important;
    min-height: 140px !important;
    border-radius: 5px !important;
}


/* ===== PROFILE PAGE ===== */

/* Hide theme's entry-header to avoid duplicate username */
.bp-user .entry-header {
    display: none !important;
}

/* Remove extra spacing above profile content */
.bp-user .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.bp-user .entry-content-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.bp-user .content-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.bp-user article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.bp-user #primary,
.bp-user .content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Username above cover image - remove bottom gap */
.bp-user .bp-profile-username {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* BuddyPress container - remove top gap below username */
.bp-user #buddypress {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Cover image - remove top margin (username fills the gap now) */
.bp-user #cover-image-container {
    margin-top: 0 !important;
}

/* Cover image - responsive width, fixed height */
#header-cover-image {
    max-width: 100% !important;
    height: 350px !important;
    line-height: 100px;
}

/* Hide the plugin's native Request Verification button (using custom one instead) */
#item-header-content .generic-button.bp-verified-member-button,
#item-header-content .bp-verified-member-request-button {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
/* Add space above Add Friend / Private Message buttons */
.bp-user .member-header-actions {
    margin-top: 10px !important;
}

/* ===== EDIT PROFILE PAGE ===== */


/* Field labels - consistent font size and weight */
.editfield label,
.editfield legend,
.swpm-profile-field label,
.swpm-profile-field legend,
.bp-profile-field label,
.bp-profile-field legend,
.profile-field-label,
legend {
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-bottom: 0px !important;
}

/* Field containers - reduced spacing */
.editfield,
.swpm-profile-field,
.bp-profile-field,
.profile-field {
    padding: 10px 0 0 0 !important;
    margin-bottom: 5px !important;
}

/* Input fields - consistent padding and font size */
.editfield input[type="text"],
.editfield textarea,
.editfield select,
.swpm-profile-field input[type="text"],
.swpm-profile-field textarea,
.swpm-profile-field select {
    padding: 8px !important;
    font-size: 16px !important;
}

/* Field description text - smaller green font */
.editfield .description,
.swpm-profile-field .description,
.bp-profile-field .description,
.field-description,
p.description {
    font-size: 14px !important;
    color: #0C9C1F !important;
}

/* Visibility settings text - smaller font, no extra spacing */
.field-visibility-settings,
.field-visibility-settings-toggle,
.visibility-toggle-link {
    font-size: 12px !important;
}

.field-visibility-settings,
.field-visibility-settings-toggle {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Text boxes - white background */
.editfield input[type="text"],
.editfield textarea,
.editfield select,
.swpm-profile-field input[type="text"],
.swpm-profile-field textarea,
.swpm-profile-field select,
.bp-profile-field input[type="text"],
.bp-profile-field textarea,
.bp-profile-field select {
    background-color: #ffffff !important;
}

/* Save button - extra padding */
input#profile-group-edit-submit {
    padding: 10px !important;
}