/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
/* Custom CSS for spotlight background and button */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("https://ultrasnustar.com/wp-content/uploads/2025/09/backgound_ultra.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -3;
    pointer-events: none;
}
#spotlight-background {
    position: fixed;
    inset: 0;
    background-image: url("https://ultrasnustar.com/wp-content/uploads/2025/09/backgound_ultra.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
    clip-path: circle(150px at 0 0);
    transition: clip-path 0.05s ease;
}
#toggle-spotlight-btn {
    position: fixed !important;
    right: 20px !important;
    bottom: 80px !important;
    position: fixed;
    right: 20px;
    bottom: 80px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#toggle-spotlight-btn:hover {
    background: #eaf6ff;
}
.matches-container {
    position: fixed;
    top: 120px;
    right: 12px;
    margin-top: -50px;
    width: 320px;
    z-index: 10;
}

/* Hide Network link for non-logged-in users */
.menu-bar a[href="/Network"] { display: none; }
.admin-user .menu-bar a[href="/Network"] { display: inline; }

body { background-color: transparent !important; }
html { background-color: transparent !important; }
:root { --wp--preset--color--base: transparent; }

/* Dark theme for /Network page */

/* ==========================================================================
   wpForo Usergroup Title Colors - Added by Ultras Nustar
   ========================================================================== */

/* Style usergroup titles with colors */
.wpforo-member-title,
.wpf-member-title,
.wpforo-post-author-data .wpforo-member-title,
.wpf-post-author-data .wpf-member-title,
.wpforo-profile .wpforo-member-title {
    font-weight: bold !important;
}

/* Admin title - Red */
.wpforo-member-title:contains("Admin"),
.wpf-member-title:contains("Admin") {
    color: #ff0000 !important;
}

/* Super Moderator title - Magenta */
.wpforo-member-title:contains("Super Moderator"),
.wpf-member-title:contains("Super Moderator") {
    color: #ff00ff !important;
}

/* Forum Moderator title - Dark Blue */
.wpforo-member-title:contains("Forum Moderator"),
.wpf-member-title:contains("Forum Moderator") {
    color: #00008b !important;
}

/* Registered/Member title - Orange */
.wpforo-member-title:contains("Registered"),
.wpf-member-title:contains("Registered") {
    color: #ffa500 !important;
}

/* Alternative method using data attributes and classes */
[class*="wpforo-member-title"]:contains("Admin"),
[class*="wpf-member-title"]:contains("Admin") {
    color: #ff0000 !important;
}

[class*="wpforo-member-title"]:contains("Super Moderator"),
[class*="wpf-member-title"]:contains("Super Moderator") {
    color: #ff00ff !important;
}

[class*="wpforo-member-title"]:contains("Forum Moderator"),
[class*="wpf-member-title"]:contains("Forum Moderator") {
    color: #00008b !important;
}

/* Specific wpForo elements for usergroup colors */
.wpforo-post .wpforo-post-author .wpforo-member-title,
.wpforo-profile .wpforo-member-title,
.wpf-post .wpf-post-author .wpf-member-title {
    font-weight: bold !important;
    font-size: 11px !important;
}

/* Profile page usergroup titles */
.wpforo-profile-default .wpforo-member-title {
    font-size: 14px !important;
    font-weight: bold !important;
    margin: 5px 0 !important;
}


/* ==========================================================================
   wpForo Usergroup Title Colors - JavaScript Solution
   ========================================================================== */

<script>
document.addEventListener('DOMContentLoaded', function() {
    // Function to colorize usergroup titles
    function colorizeUsergroups() {
        // Find all elements that might contain usergroup titles
        const elements = document.querySelectorAll('.wpforo-member-title, .wpf-member-title, [class*="member-title"]');
        
        elements.forEach(function(element) {
            const text = element.textContent.trim();
            
            // Apply colors based on text content
            if (text === 'Admin') {
                element.style.color = '#ff0000';
                element.style.fontWeight = 'bold';
            } else if (text === 'Super Moderator') {
                element.style.color = '#ff00ff';
                element.style.fontWeight = 'bold';
            } else if (text === 'Forum Moderator') {
                element.style.color = '#00008b';
                element.style.fontWeight = 'bold';
            } else if (text === 'Registered' || text === 'Member') {
                element.style.color = '#ffa500';
                element.style.fontWeight = 'bold';
            }
        });
    }
    
    // Run immediately
    colorizeUsergroups();
    
    // Run again after a short delay (for dynamic content)
    setTimeout(colorizeUsergroups, 1000);
    
    // Observe for new content being added dynamically
    const observer = new MutationObserver(colorizeUsergroups);
    observer.observe(document.body, { childList: true, subtree: true });
});
</script>

