/*
 * Theme Name: Twenty Twenty-Five Child (Poppins)
 * Theme URI: https://yourwebsite.com/
 * Description: A child theme for the Twenty Twenty-Five WordPress theme, configured to use the Poppins font.
 * Author: Your Name
 * Author URI: https://yourwebsite.com/
 * Template: twentytwentyfive
 * Version: 1.0.1
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: twentytwentyfive-child
 */

/*=============================================
  1. SETUP & GLOBALS
=============================================*/

/* 1.1 Font Imports */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* 1.2 Root Variables */
:root {
    --primary: #7b1ea2;
    --secondary: #1a237e;
    --accent: #eee8f0;
    --dark-grey: #667085;

    --text-xs: 14px;
    --text-sm: 16px;
    --text-md: 18px;
    --check-icon: url(/wp-content/uploads/2025/08/vink.svg);

    --border-radius: 8px;
    --font-family-base: "Poppins", sans-serif;
}

/* 1.3 Base Styles */
body * {
    font-family: var(--font-family-base);
}
body {
    font-weight: 400;
}

/*=============================================
  2. TYPOGRAPHY
=============================================*/
h1,
h2,
h3,
h4 {
    color: var(--primary);
}

/*=============================================
  3. LAYOUT & STRUCTURE
=============================================*/
.w-full {
    width: 100%;
}

.site-header {
    max-width: var(--wp--style--global--wide-size) !important;
    margin: 0 auto;
}

.wp-block-site-title {
    display: none;
}

/*=============================================
  4. UTILITY CLASSES (TAILWIND-INSPIRED)
=============================================*/
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-end {
    justify-items: flex-end;
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between !important;
}

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

.mt-auto {
    margin-top: auto;
}

/*=============================================
  5. COMPONENTS
=============================================*/
/* 5.1 Navigation */
.wp-block-navigation,
.site-header .wp-block-group {
    @media (max-width: 768px) {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.wp-block-navigation
    .wp-block-navigation-item__content.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-loginout a {
    color: var(--secondary) !important;
    font-size: var(--text-sm) !important;
    font-weight: 500 !important;
    margin-top: 0 !important;
}

.wp-block-loginout {
    height: 35px;
}

footer
    nav
    .wp-block-navigation
    .wp-block-navigation-item__content.wp-block-navigation-item__content {
    font-weight: 300 !important;
}

footer
    nav
    .wp-block-navigation
    .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
    color: var(--primary);
}

/* 5.2 Custom Lists */
ul.wp-block-list {
    padding-left: 0;
    max-width: 300px;
}

ul.wp-block-list li {
    display: flex;
    align-items: center;
    gap: 0.8em;
    position: relative;
    list-style: none;
    list-style-type: none;
    font-size: var(--text-sm);
    color: var(--dark-grey);
    font-weight: 300;
    margin-top: 0.2em;
}

ul.wp-block-list li:before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 45px;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    justify-items: center;
    background-image: var(--check-icon);
    background-repeat: no-repeat;
    background-position: center center;
}

/* 5.3 Go Back Link */
.go-back {
    position: absolute;
    right: 50px;
    top: 50px;
    padding: 10px;
}

.go-back a {
    padding: 10px;
}

/*=============================================
  6. PLUGIN STYLES: BBPRESS
=============================================*/
.bbp-forum-title {
    font-weight: bolder;
}

/* 6.1 General Typography & Links */
#bbpress-forums li,
#bbpress-forums a,
#bbpress-forums .bbp-breadcrumb-current,
legend {
    color: var(--secondary);
    font-size: var(--text-sm);
}

#bbpress-forums .bbp-header li {
    color: white;
}

.bbpress-container > h1 {
    display: none;
}

/* 6.2 Forms & Inputs */
.bbp-login-form label {
    width: auto !important;
}

.bbp-search-form {
    margin-bottom: 1em;
}

input {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgb(102, 112, 133);
    background: transparent;
}

input[type="submit"],
button[type="submit"],
#bbp_reply_submit {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
}

.bsp_button1 {
    padding: 10px !important;
    line-height: 9 !important;
    border-radius: var(--border-radius);
}

/* 6.3 Forum & Topic View */
#bbpress-forums li.bbp-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
}

#bbpress-forums li.bbp-footer {
    display: none !important;
}

#bbpress-forums ul.forum {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1rem !important;
    border: 1px solid var(--accent) !important;
    border-radius: 5px;
}

#bbpress-forums div.odd,
#bbpress-forums ul.odd {
    background: white;
}

.bbp-topic-description,
div.bbp-template-notice.info {
    background-color: var(--accent);
}

div.bbp-template-notice,
div.indicator-hint,
div.bbp-template-notice li {
    background-color: var(--accent);
    color: black !important;
    border-color: transparent;
}

#bbpress-forums ul.odd,
#bbpress-forums ul.bbp-forums,
#bbpress-forums li.bbp-header {
    border: none;
}

/* 6.4 Forum Editor */
#qt_bbp_reply_content_code {
    display: none;
}

/* HIDES POST REACTION ID EG: #313*/
.bbp-reply-permalink {
    display: none;
}

/*=============================================
  7. SHORTCODE STYLES
=============================================*/

/* 7.1 bbPress Forum Grid */
.bbp-forum-grid {
    width: 100%;
    max-width: var(--wp--style--global--wide-size);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

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

.bbp-forum-grid * {
    font-family: Poppins, sans-serif;
}

.bbp-forum-grid-item {
    text-decoration: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bbp-forum-grid-item:nth-child(3n + 2) {
    border-right: 1px solid rgb(229, 229, 229);
    border-left: 1px solid rgb(229, 229, 229);
}

.bbp-forum-grid-item .bbp-forum-grid-image img {
    width: 40px;
    height: auto;
    object-fit: cover;
}

.bbp-forum-grid-title {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
}

.bbp-forum-grid-description {
    color: rgb(98, 98, 98);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 28px;
}

.bbp-forum-read-more {
    color: var(--primary);
    margin-top: 2rem;
    font-size: var(--text-md);
}

.bbp-forum-read-more svg {
    width: 16px;
    height: 16px;
    margin-left: 10px;
    fill: var(--primary);
}

/*=============================================
  8. FOOTER
=============================================*/
.custom-footer {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    background: #eee8f0;
    color: #1a237e;
}

.custom-footer .container {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
}

footer h3,
footer h4 {
    color: var(--secondary);
}

.custom-footer nav li:not(:first-child) {
    margin-top: 0.5em;
}

nav {
    list-style-type: none;
}

.copy {
    text-align: center;
    margin-top: 1.5em;
}

.custom-footer .copy,
.custom-footer .sitemap,
.custom-footer p {
    font-size: var(--text-xs);
}

/*=============================================
  9. OVERRIDES
=============================================*/
.bbpress-content {
    width: 100%;
}

.bbpress-container {
    width: 100% !important;
}

.bbpress-container .bbpress-wrapper {
    max-width: var(--wp--style--global--wide-size) !important;
    margin: 0 auto;
}

.wp-block-group-is-layout-constrained {
    max-width: 1440px;
    margin: 0 auto;
}

.wp-container-core-group-is-layout-df81c40a {
    width: 100%;
    justify-content: space-between !important;
}

.is-layout-constrained
    > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: var(--wp--style--global--wide-size) !important;
}

footer .wp-block-group .wp-block-columns {
    width: 100%;
}
