/*
 Theme Name:   Generatepress Child
 Theme URI:    https://mushroom-scholars.org/htdocs/wp-content/themes/generatepress/
 Description:  Generatepress Child Theme
 Author:       MAT
 Author URI:   https://mushroom-scholars.org
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepresschild
*/

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1.  RESET & BASE
   2.  HEADER & NAVIGATION
   3.  TYPOGRAPHY & COLORS
   4.  BUTTONS & FORMS
   5.  CONTENT & POSTS
   6.  COMMENTS
   7.  SIDEBAR & WIDGETS
   8.  PAGINATION
   9.  PROFILE & USER PAGES
  10.  GROUP & FANDOM PAGES
  11.  RPG ELEMENTS
  12.  STUDENT BLOGS & LISTS
  13.  MISCELLANEOUS UTILITY
  14.  RESPONSIVE BREAKPOINTS
  15.  CPL LEGACY (TO DELETE LATER)
   ============================================ */

/* ============================================
   1. RESET & BASE
   ============================================ */

body {
    padding-top: 0 !important;
	 background: linear-gradient(to bottom, 
        darkblue 0%, 
        darkblue 35%,
        blue 65%,
        #000000 100%);
    min-height: 100vh !important;
}

a {
    color: darkblue;
}
a:hover {
    color: blue;
}

.aligncenter {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

/* Remove WP logo from admin bar */
#wp-admin-bar-wp-logo {
    display: none;
}

 /* Remove copyright bar */
.copyright-bar{
	display:none;
}

/* Remove site footer for site info */
.site-footer .site-info{
	display:none;
}

/* ============================================
   2. HEADER & NAVIGATION - SLEEK VERSION
   ============================================ */

/* Header Container - Reduced height */
.site-header {
    background-color: darkblue;
    border-bottom: none !important;
    width: 100vw;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    padding: 5px 0; /* Reduced from default */
}

/* Branding - Tighter spacing */
.site-branding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    max-width: 95%;
	margin-right: 20px; /* Push menu away from branding */
}

.site-logo {
    margin-bottom: 5px; /* Reduced from 10px */
    max-height: 60px; /* Limit logo height */
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-description {
    display: none !important;
}

#masthead > div {
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-top: 5px; /* Reduced from 10px */
}

.main-title > a:nth-child(1) {
    color: white;
    font-size: 1.2rem; /* Slightly smaller */
}

/* === PRIMARY MENU - DARK BLUE WITH WHITE TEXT === */
#mobile-menu-control-wrapper > button > span.gp-icon.icon-menu-bars > svg:nth-child(1){
	display:none;
}
/* Menu container background */
.main-navigation {
    background-color: darkblue !important;
	min-height: auto !important;
}

.main-navigation .main-nav ul {
    background-color: darkblue !important;
	 min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Main menu items */
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
   background-color: transparent !important;
    color: #ffffff !important;
    padding: 6px 14px !important; /* Reduced further */
    line-height: 1.2 !important; /* Controls text height */
    min-height: auto !important;
    height: auto !important;
    transition: all 0.2s ease !important;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    display: inline-block !important; /* Prevents block-level stretching */
}

/* Hover state - subtle white border */
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li.focus > a {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.main-navigation .main-nav ul li {
	 margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    line-height: 1 !important; /* CRITICAL: kills extra vertical space */
}

/* === SUB-MENUS (Slimlined styles) === */

.main-navigation ul ul {
    background-color: #00008b !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px !important;
    padding: 5px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    min-width: 200px;
}

.main-navigation ul ul > li {
    background-color: transparent !important;
    margin: 2px 5px !important;
    border-radius: 6px !important;
    /* Remove any default padding */
    padding: 0 !important;
}

/* KEY CHANGE: Make the <a> fill the entire <li> */
.main-navigation ul ul > li > a {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    border: 1px solid transparent;
    display: block !important; /* Makes the <a> fill the <li> width */
    width: 100% !important;    /* Ensures it stretches full width */
    box-sizing: border-box !important; /* Includes padding in width calculation */
}

.main-navigation ul ul > li:hover > a {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.main-navigation ul ul ul {
    margin-left: 0 !important;
    background-color: #00008b !important;
}

/* === MOBILE MENU === */
/* Hide mobile menu toggle on desktop */
@media (min-width: 769px) {
    #mobile-menu-control-wrapper {
        display: none !important;
    }
    
    .main-navigation .menu-toggle {
        display: none !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
}

/* Mobile menu styles - only apply on mobile devices */
@media (max-width: 768px) {
    #mobile-menu-control-wrapper {
        background-color: darkblue;
        display: block !important;
    }

    button .menu-toggle {
        border-radius: 50% !important;
        padding: 1px !important;
    }

    .main-navigation .menu-toggle {
        padding: 4px 12px !important;
        line-height: 1.2 !important;
        min-height: auto !important;
        height: auto !important;
        display: inline-block !important;
    }

    /* If there's a wrapper adding height */
    .main-navigation .inside-navigation {
        padding: 0 !important;
        min-height: auto !important;
    }

    /* If GeneratePress has a nav class */
    .main-navigation .inside-navigation .main-nav {
        min-height: auto !important;
    }

    /* Any potential flex/grid spacing */
    .main-navigation .main-nav ul li a .menu-text {
        line-height: 1.2 !important;
    }
}
/* === MENU VISIBILITY BY ROLE/LOGIN STATUS === */

/* Hide admin bar for non-admin roles */
.user-role-editor #wpadminbar,
.user-role-deputy #wpadminbar,
.user-role-student #wpadminbar {
    display: none;
}

/* Remove WP logo from admin bar */
#wp-admin-bar-wp-logo {
    display: none;
}

/* Menu items visibility by login status */
body.logged-in #menu-item-10000 {
    display: none;
}

body:not(.logged-in) #menu-item-9966 {
    display: none !important;
}
body:not(.logged-in) #menu-item-9980 {
    display: none !important;
}
body:not(.logged-in) #menu-item-18502 {
    display: none !important;
}

/* Gold Login Button Glow (for non-logged-in users) - Dark Orange Base */
body:not(.logged-in) #menu-item-10000 {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 10%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    margin: 2px 2px 0 2px;
    font-weight: bold;
    background: linear-gradient(
        120deg,
        #cc5500 0%,           /* Dark orange base */
        #ffd700 35%,          /* Bright gold highlight */
        #ffaa00 45%,          /* Orange-gold */
        #ffd700 55%,          /* Bright gold highlight */
        #cc5500 90%           /* Dark orange base */
    );
    background-size: 300% 100%;
    animation: goldFlash 5s ease-in-out infinite;
    color: #ffffff !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

body:not(.logged-in) #menu-item-10000 a {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Hover state - brighter */
body:not(.logged-in) #menu-item-10000:hover {
    background: linear-gradient(
        120deg,
        #dd6600 0%,
        #ffd700 35%,
        #ffbb00 45%,
        #ffd700 55%,
        #dd6600 90%
    );
    background-size: 300% 100%;
    animation: goldFlash 5s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

@keyframes goldFlash {
    0% { background-position: -150% 0; }
    100% { background-position: 150% 0; }
}

body:not(.logged-in) #menu-item-10000 a:hover {
    background: orangered;
}

/* Role-specific menu items */
#menu-item-10505 {
    display: none;
}
.user-role-editor #menu-item-10505 {
    display: list-item;
}
.user-role-administrator #menu-item-10505 {
    display: list-item;
}

#menu-item-11940 {
    display: none;
}
.user-role-editor #menu-item-11940 {
    display: list-item;
}

body.logged-in #menu-item-11941 {
    display: none;
}
body.logged-in #menu-item-12913 {
    display: none;
}

/* Student/Deputy specific */
#menu-item-15898 {
    display: none;
}
.user-role-student #menu-item-15898 {
    display: list-item;
}
.user-role-deputy #menu-item-15898 {
    display: list-item;
}

/* Creative Menu Item - Blue highlight for logged-in users */
body.logged-in #menu-item-15661 {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(0, 123, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: blueHighlight 2s linear infinite;
    border-radius: 10%;
    box-shadow: 2px 2px 10px;
    margin: 2px;
    margin-top: 0px;
}

@keyframes blueHighlight {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Blogging Menu Item - Orange for logged-in users */
body.logged-in #menu-item-9980 {
    display: inline-block;
    border-radius: 10%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    margin: 2px 2px 0 2px;
    font-weight: bold;
    background: linear-gradient(
        120deg,
        #cc5500 0%,           /* Dark orange base */
        #ffd700 35%,          /* Bright gold highlight */
        #ffaa00 45%,          /* Orange-gold */
        #ffd700 55%,          /* Bright gold highlight */
        #cc5500 90%           /* Dark orange base */
    );
    background-size: 300% 100%;
    animation: goldFlash 5s ease-in-out infinite;
    color: #ffffff !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
}
body.logged-in #menu-item-9980 a {
    background-color: transparent !important;
    color: #ffffff !important;
}
body.logged-in #menu-item-9980:hover {
    background: orange;
}

/* ============================================
   3. TYPOGRAPHY & COLORS
   ============================================ */

.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4,
.widget.widget_block h1,
.widget.widget_block h2,
.widget.widget_block h3,
.widget.widget_block h4 {
    color: #344B6D;
}

.qust {
    background-color: #b6dbf8;
    padding-bottom: 15px;
    padding-top: 15px;
}

blockquote {
    border-left: none;
}

.spaced-listing li {
    margin-bottom: 20px;
}

/* ============================================
   4. BUTTONS & FORMS
   ============================================ */

/* Standard Buttons */
button,
#edit-group-page-button,
#submit,
.hdq_button,
.delete-comment, .blue-button, .basic-text-menu-button, .comment-form-attachment__input::file-selector-button  {
    font-size: large;
    border-radius: 5px;
    background-color: darkblue;
    background: darkblue;
    color: white;
    text-shadow: 1px 1px black;
    padding: 5px;
    box-shadow: 0px 2px 2px black;
    border-width: 1px;
	margin:3px;
}

button:hover,
#edit-group-page-button:hover,
#submit:hover,
.hdq_button:hover,
.delete-comment:hover, .blue-button:hover,.comment-form-attachment__input::file-selector-button:hover  {
    border-radius: 5px;
    background-color: blue;
    background: blue;
    box-shadow: 0px 1px 3px black;
	color: #ffd700;
	text-shadow:none;
	border-style:solid;
    border-color: #ffd700;
	border-width: 1px;
	margin:3px;
}

.delete-comment {
    background-color: darkred !important;
    box-shadow: 0px 5px 5px black;
    float: right;
}
.delete-comment:hover {
    background-color: orangered !important;
    box-shadow: 0px 3px 5px black;
}

input[type="button"] {
    font-size: 90%;
}

/* Text Menu Buttons */
.text-menu-button-container {
    text-align: center;
}

.text-menu-button-container a {
    align-content: center;
    text-decoration: none !important;
}

.text-menu-button-container a:hover .basic-text-menu-button {
    background-color: white;
}

/* SU Button Override */
.su-button {
    margin-bottom: 25px;
}

/* ============================================
   5. CONTENT & POSTS
   ============================================ */

.page-header {
    box-shadow: 0px 5px 10px darkblue;
}

.entry-title a {
    color: darkblue;
}
.entry-title a:hover {
    color: blue;
}

.entry-content a:hover {
    background-color: white;
    color: darkblue;
}

.entry-content > ol > li {
    margin-bottom: 15px;
}

.entry-content img {
    margin: 15px;
}

/* --- FEATURED IMAGE STYLES --- */

/* Single post/page featured image */
.featured-image {
    float: left;
    margin-right: 30px;
    margin-left: 0px;
    max-width: 100px;
}
.featured-image img {
	box-shadow: 0px 2px 5px black;
    border-radius: 3px;
}

/* Archive page featured images */
.post-image img {
    width: 100px;
    box-shadow: 0px 2px 5px darkblue;
}

article .post-image {
    display: flex;
    justify-content: center;
}

/* Hide featured image on portrait/phone screens */
@media (orientation: portrait) {
    .featured-image {
        display: none;
    }
}

/* RPG featured image (for Missions & Quests) */
.rpg-featured-img {
    width: 100px;
    border-radius: 3px;
    float: left;
}

/* Images inside posts need proper margin */
.entry-content img {
    margin: 15px;
}

/* Blog post featured image */
article .inside-article {
    border-radius: 3px;
    box-shadow: 0px 2px 5px darkblue;
    padding: 20px;
    overflow: hidden;
}

/* Archive Page Entries */
article .inside-article {
    border-radius: 3px;
    box-shadow: 0px 2px 5px darkblue;
    padding: 20px;
    overflow: hidden;
}

/* Remove footer on pages (posts only) */
.page #footer-widgets {
    display: none;
}

/* Remove previous/next posts links */
#nav-below .nav-previous,
#nav-below .nav-next {
    display: none;
}

/* Videos */
.wp-video {
    width: 400px !important;
    margin: 0 auto;
}
.wp-video video {
    max-width: 100%;
    height: auto;
}

/* Spoilers */
.su-spoiler-title {
    background-color: #344B6D;
    color: white;
}

.narrow-spoiler {
    display: inline-block;
    max-width: 300px;
    padding: 5px;
    box-shadow: 0px 0px 20px;
    text-align: left;
    vertical-align: top;
}

.narrow-spoiler ol {
    margin-left: 5px;
}
.narrow-spoiler li {
    margin-bottom: 15px;
}

/* ============================================
   6. COMMENTS
   ============================================ */

.comment-content {
    display: flex;
    border-top: none;
    margin-top: 0px;
    border-radius: 3px;
}

.comment-content p img {
    display: block;
    margin: 0 auto;
    max-width: 70%;
    border-radius: 3px;
}

.comment-body {
    padding: 25px;
}

.comment .children {
    border-left: none;
}

.reply a {
    border-radius: 15%;
    background-color: darkblue;
    background: darkblue;
    color: white;
    text-decoration: none;
    padding: 5px;
    box-shadow: 0px 3px 3px black;
    border-width: 1px;
}
.reply a:hover {
    border-radius: 3px;
    background-color: blue;
    background: blue;
    box-shadow: 0px 2px 3px black;
}

.comment-form-comment textarea {
    border-radius: 3px;
}

.comment-metadata a {
    pointer-events: none;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

.media-frame-router button {
    color: black;
    background: lightblue;
    margin: 1px;
    border-radius: 5%;
    padding: 10px;
    box-shadow: 0px 1px 3px black;
    text-shadow: 0px 0px 0px;
}
.media-frame-router button:hover {
    background: whitesmoke;
}

.media-frame-menu button {
    color: black;
    background: lightblue;
    margin: 1px;
    border-radius: 5%;
    padding: 10px;
    box-shadow: 0px 1px 3px black;
    text-shadow: 0px 0px 0px;
}

.media-modal-close button {
    color: black;
    background: lightblue;
    margin: 1px;
    border-radius: 5%;
    padding: 10px;
    box-shadow: 0px 1px 3px black;
    text-shadow: 0px 0px 0px;
}

.media-frame-menu #menu-item-gallery,
#menu-item-playlist,
#menu-item-video-playlist,
#menu-item-featured-image {
    display: none;
}

.media-frame-router #menu-item-upload {
    display: none;
}

/* ============================================
   7. SIDEBAR & WIDGETS
   ============================================ */

.sidebar .widget {
    background-color: white;
    margin-bottom: 5px;
	border-radius:3px;
}

.widget-area .widget {
    padding: 15px;
}

#text-10 {
    background-color: white !important;
    box-shadow: 0px 0px 5px darkblue;
}

#text-23 .su-tabs {
    background-color: white !important;
    box-shadow: 0px 0px 5px darkblue;
}
#text-23 .su-tabs-nav {
    text-align: center !important;
    border-bottom: 1px solid darkblue;
}
#text-23 .su-tabs-pane {
    padding-top: 0px !important;
}
#text-23 .su-tabs-pane p {
    margin-bottom: 5px !important;
}

.su-tabs-nav .blogging-tabs {
    border: 1px solid darkblue;
    border-bottom: none;
    display: inline-block !important;
    text-align: center;
    margin: 0px;
}
.su-tabs-nav .blogging-tabs:hover {
    border: 1px solid white;
    background-color: blue !important;
    color: white;
}

.su-tabs {
    background: none !important;
}
.su-tabs-current {
    background: darkblue !important;
    color: white !important;
}

#text-15 > div > div > div.su-tabs-nav > span {
    border: 1px solid darkblue !important;
    border-color: darkblue !important;
}

#custom_html-23 {
    box-shadow: 0px 0px 2px darkblue;
    display: block;
    text-align: center;
    margin: 0px;
    border-radius: 3px;
    background-color: white;
}
#custom_html-23 .widget-title {
    margin-bottom: 5px;
}

/* Categories & Blogging Widgets */
#categories-3,
#text-6,
#text-2,
#text-3 {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0px 0px 5px darkblue;
}

#text-2,
#text-3 {
    border-radius: 3px;
    box-shadow: 0px 0px 10px white;
}

#text-3 li {
    box-shadow: 0px 1px 5px darkblue;
}

#custom_html-3 .basic-text-menu-button {
    margin: 0px;
}

/* ============================================
   8. PAGINATION (Moved to frontend styling)
   ============================================ */

/* ============================================
   9. PROFILE & USER PAGES
   ============================================ */

#post-38 > div {
    text-align: center;
}

/* Profile Page Title - Match the profile container */
#post-10383  {
	background-color: white;
	 box-shadow: 2px 2px 20px;
	padding: 40px;
}
#post-10383 .entry-header {
    margin-bottom: 0;
    border-bottom: none;
}

#post-10383 .entry-title {
    margin-bottom: 0;
    padding-bottom: 10px;
    color: #344B6D; /* Your existing heading color */
}

/* The profile container - remove top padding since title handles it */
#post-10383 .profile-info-container {
    text-align: center;
    margin-bottom: 25px;
    background-color: white;
    margin-top: 0;
}

#post-10383 .avatar-n-stats-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#post-10383 .rpg-avatar-container {
    text-align: center;
    box-shadow: 1px 5px 15px;
    margin-bottom: 25px;
    margin-left: 10%;
    border-radius: 3px;
    border-width: 2px;
    border-style: solid;
    border-color: darkblue;
    overflow: hidden;
}

#post-10383 .rpg-avatar-container img {
    width: 250px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
#post-10383 .mushrooming-since-record{
	display: flex;
  align-items: center;
  justify-content: flex-start; /* Forces content to stick to the absolute left edge */
  width: 100%;                  /* Ensures full width despite parent centering */
  text-align: left;             /* Overrides parent text-align: center */
  margin: 0;
  padding-left: 10px;
	padding-right:10px;
	padding-bottom:5px;
  gap: 0.35em;
}
#post-10383 .mushrooming-since-record img.emoji {
  margin: 0;
  vertical-align: middle;
}
#post-10383 .profile-user-stats-container {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 25px;
    border-width: 2px;
    border-style: solid;
    border-color: darkblue;
    background-color: cornsilk;
    box-shadow: 1px 2px 15px;
    padding: 40px;
    border-radius: 3px;
}

#post-10383 .rpg-level-display-container {
    margin-bottom: 15px;
}

#post-10383 .profile-lives-display {
    margin-top: 15px;
}

#post-10383 .profile-rank-display {
    padding: 15px;
}

.bio-container {
    margin-top: 25px;
    border-width: 2px;
    border-style: solid;
    border-color: darkblue;
    padding: 15px;
    box-shadow: 1px 5px 15px;
    border-radius: 3px;
}

.profile-page-bio {
    padding: 30px 45px;
    text-align: left;
}

.profile-edit-button-container {
    text-align: right;
}

.rpg-groups-container {
    margin: 10px;
    border-width: 2px;
    border-style: solid;
    border-color: whitesmoke whitesmoke darkblue whitesmoke;
    padding: 15px;
    box-shadow: 1px 5px 15px;
    text-align: left;
}

/* Mission Log */
.mission-log-container {
    width: 90%;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
}

.the-missions-log {
    display: block;
    border-width: 2px;
    border-style: solid;
    border-color: darkblue;
    background-color: cornsilk;
    box-shadow: 1px 2px 15px;
    padding: 20px;
}

.mission-log-container ul {
    padding: 0;
    margin: 0;
}

.mission-log-container li {
    padding: 10px;
    background-color: whitesmoke;
}

.the-missions-log ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.the-missions-log li {
    border-width: 2px;
    border-style: solid;
    border-color: darkblue;
    border-radius: 8px;
    box-shadow: 0px 5px 15px;
    margin: 5px 0;
}

.mission-log-entry {
    margin-right: 20px;
    margin-left: 20px;
    text-align: left;
}

.mission-log-entry-icon {
    max-width: 100px;
    max-height: 150px;
    vertical-align: middle;
    text-align: center;
}

.mission-log-entry a:hover {
    background-color: whitesmoke;
    text-shadow: 0px 1px 10px #4084ff;
}

.pagination a {
    margin-left: 5px;
}

/* ============================================
   10. GROUP & FANDOM PAGES
   ============================================ */

/* Group Pages Listing */
.group-pages-listing {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-page-item {
    margin-bottom: 20px;
    box-shadow: 0 2px 10px darkblue;
    padding: 10px;
    border-radius: 4px;
}

.group-page-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.group-page-thumb {
    flex-shrink: 0;
    margin-right: 15px;
}

.group-page-thumb-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.group-page-thumb-default {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-radius: 4px;
}

.group-page-content {
    flex-grow: 1;
}

.group-page-content h3 {
    margin: 0 12px 6px 0;
    font-size: 1.2em;
}

.group-page-excerpt {
    font-size: 0.95em;
    color: #444;
}

.group-page-link:hover h3 {
    color: blue;
}

.group-page-item:hover {
    box-shadow: 0 2px 14px blue;
    border-radius: 8px;
}

/* Group Posts Archive */
.page-id-11151 .site-content {
    display: flex;
    flex-wrap: wrap;
}

.group-posts-archive-title h2 {
    display: block;
    width: 90%;
    margin: 50px auto 25px auto;
}

.group-posts-archive {
    display: block;
    margin: auto;
}

.group-posts-archive .post-item {
    display: block;
    width: 75%;
    margin: 0 auto 25px auto;
    border-radius: 15%;
    box-shadow: 0px 2px 5px darkblue;
    padding: 25px;
    overflow: hidden;
}

.group-posts-archive .post-item .post-author {
    margin-right: 25px;
}

.group-posts-archive .post-item .post-meta {
    margin-top: 20px;
}

.dropdowns-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    align-items: center;
    margin: 20px 0 30px 0;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

#other-group-dropdown,
#users-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

#other-group-dropdown select,
#users-dropdown select {
    max-width: 220px;
    width: auto;
    min-width: 160px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fandom-big-button:hover {
    box-shadow: 0px 1px 3px black;
    font-weight: bold;
}

.fandom-big-button img {
    border-radius: 10%;
    box-shadow: 0px 1px 3px black;
}

.fandom-list-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fandom-list-left-column,
.fandom-list-right-column {
    flex: 0 1 45%;
    border-radius: 2%;
    margin: 10px;
    padding: 15px;
    box-shadow: 0px 1px 5px darkblue;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fandom-list-left-column h3,
.fandom-list-right-column h3 {
    text-align: center;
    width: 100%;
    margin: 0 0 15px 0;
}

.fandom-list-left-column ul,
.fandom-list-right-column ul {
    text-align: center;
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.fandom-list-left-column li,
.fandom-list-right-column li {
    list-style: none;
    margin-bottom: 20px;
}

/* ============================================
   11. STUDENT LISTS (NOTE: mbl lists are in frontend styling  plugin)
   ============================================ */

/* Top Ten Student Bloggers */
.blogger-item {
    text-align: center;
    background-color: cornsilk;
    box-shadow: 0px 2px 5px darkblue;
    padding: 10px;
    margin-bottom: 15px;
	border-radius: 3px;
}

.blogger-item img {
    height: 50px;
    width: 50px;
}

/* ============================================
   13. MISCELLANEOUS UTILITY
   ============================================ */

/* Modal / Pop-up */
.modalDialog {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal_window {
    position: relative;
    color: darkblue;
    background-color: #b6dbf8;
    padding: 4em 2em;
    border-width: 2px;
    border-style: solid;
    border-color: darkblue;
    box-shadow: 0px 0px 20px;
    height: 350px;
    overflow: auto;
}

.modal_window h2 {
    color: darkblue;
}

.close {
    position: absolute;
    color: darkblue;
    top: 10px;
    right: 10px;
}

.modalDialog:not(:target) {
    visibility: hidden;
    opacity: 0;
}

/* Rotate Animation */
.rotate {
    -webkit-transform-origin: center;
    -moz-transform-origin: center;
    -o-transform-origin: center;
    transform-origin: center;
    animation: rotation 6s infinite linear;
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(359deg); }
}

/* Book Image Library */
.book-img-library {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.book-img-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-img {
    width: 100%;
    display: block;
}

.book-img-title {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    color: white;
    width: 90%;
    font-size: 25px;
    padding: 15px 0;
    text-align: center;
    opacity: 0;
    transition: 0.6s;
}

.book-img-container:hover .book-img-title {
    opacity: 1;
}

/* Hide Admin Bar for non-admins */
.user-role-editor #wpadminbar,
.user-role-deputy #wpadminbar,
.user-role-student #wpadminbar {
    display: none;
}

/* ============================================
   14. RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 768px) {
    .fandom-list-container {
        flex-direction: column;
        align-items: center;
    }

    .fandom-list-left-column,
    .fandom-list-right-column {
        flex: 0 1 100%;
        width: 90%;
    }
}

@media (max-width: 600px) {
    /* Responsive from earlier sections merged */
    .featured-image {
        display: none;
    }

    .comment-content {
        display: block;
    }

    .profile-info-container {
        padding: 15px;
    }

    .avatar-n-stats-wrapper {
        display: block;
    }

    .rpg-avatar-container {
        margin-left: auto;
        margin-right: auto;
    }

    .rpg-avatar-container img {
        width: 200px !important;
    }

    .profile-user-stats-container {
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 15px;
    }

    .mission-log-container {
        padding: 10px;
    }

    .the-missions-log {
        padding: 10px;
    }

    .mission-log-container li {
        padding: 5px;
    }

    .mission-log-entry {
        margin-right: 10px;
    }

    .mission-log-entry-icon {
        max-width: 60px;
        max-height: 90px;
    }

    .group-posts-archive .post-item {
        width: 90%;
        padding: 15px;
    }

    #post-9481 .entry-content {
        width: 100%;
    }

    .student-blogs-list-container {
        column-count: 1;
    }

    .student-blogs-list-container ul {
        margin-left: 15px;
    }

    .student-blogs-list-container li {
        padding: 10px;
    }

    .dropdowns-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    #other-group-dropdown,
    #users-dropdown {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
    }

    #other-group-dropdown select,
    #users-dropdown select {
        width: 100%;
        max-width: none;
    }

    .page-id-11151 .site-content {
        display: block;
    }

    .page-id-11151 #tag-list-by-topic {
        display: none;
    }

    .series-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ACCOUNT HELP & RESET PASSWORD FORMS
   Compact, contained, matching the login box width.
   ============================================================ */

.shroom-help-form,
.shroom-reset-form {
    max-width: 420px;
    margin: 10px auto;
    font-size: 0.92rem;
    line-height: 0.5;
}

.shroom-help-form {
	margin:0;
}

/* Field rows — tight vertical rhythm. */
.shroom-help-form p,
.shroom-reset-form p {
    margin: 0;
    padding: 0;
}

/* Labels sit snugly above their inputs. */
.shroom-help-form label,
.shroom-reset-form label {
    display: block;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1;
    color: #333;
}

/* Required star. */
.shroom-help-form .req,
.shroom-reset-form .req {
    color: #c62828;
    font-weight: 700;
}

/* Text inputs, email inputs, password inputs, textareas. */
.shroom-help-form input[type="text"],
.shroom-help-form input[type="email"],
.shroom-help-form textarea,
.shroom-reset-form input[type="password"] {
    width: 100%;
    padding: 6px 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.92rem;
    line-height: 1.35;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
    color: #333;
}

.shroom-help-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Focus state — consistent across both forms. */
.shroom-help-form input:focus,
.shroom-help-form textarea:focus,
.shroom-reset-form input:focus {
    outline: none;
    border-color: darkblue;
    box-shadow: 0 0 0 2px rgba(0, 0, 139, 0.12);
}

/* Helper text. */
.shroom-help-form small {
    display: block;
    margin: 3px 0 0 0;
    font-size: 0.78rem;
    color: #777;
    line-height: 1.35;
}

/* Submit buttons — same shape as login. */
.shroom-help-form button[type="submit"],
.shroom-reset-form button[type="submit"] {
    background: darkblue;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
}

.shroom-help-form button[type="submit"]:hover,
.shroom-reset-form button[type="submit"]:hover {
    background: blue;
}

/* ---- Grammar challenge block (account help form only) ---- */
.shroom-help-form .grammar-challenge-wrapper {
    margin: 10px 0 12px 0 !important;
    padding: 10px 0 0 0 !important;
    border-top: 1px solid #e0e0e0 !important;
}

.shroom-help-form .grammar-challenge-wrapper p {
    margin: 0 0 6px 0;
}

.shroom-help-form .grammar-challenge-wrapper label {
    display: inline-block;
    font-weight: 400;
    margin: 0 16px 6px 0;
    font-size: 0.88rem;
    cursor: pointer;
    line-height: 1;
    color: #333;
    white-space: nowrap;
}

.shroom-help-form .grammar-challenge-wrapper input[type="radio"] {
    margin-right: 6px;
    vertical-align: middle;
}

.shroom-help-form .grammar-challenge-wrapper strong {
    font-size: 0.9rem;
    color: darkblue;
}

/* ---- Success and error messages ---- */
.shroom-help-success,
.shroom-help-error,
.shroom-reset-error {
    max-width: 420px;
    margin: 0 auto 16px auto;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.shroom-help-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.shroom-help-error,
.shroom-reset-error {
    background: #ffebee;
    border-left: 4px solid #e53935;
    color: #b71c1c;
}

/* ============================================
   LISTINGS (CPL Styles) - Legacy but retained summer 2026 in case still used
   ============================================ */

/* These styles support both the legacy CPL listings (now  mostly replaced by mbl in frontend styling) */

.cpl-most-popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cpl-most-popular-posts li {
    display: flex;
    flex-direction: column; /* CHANGE: stack items vertically */
    align-items: flex-start; /* Align to left */
    position: relative;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0px 1px 5px darkblue;
}

/* The link stays as a flex row for its content */
.cpl-most-popular-posts li a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    color: darkblue;
    text-decoration: none;
}

.cpl-most-popular-posts li:hover {
    box-shadow: 0px 1px 5px blue;
}

.cpl-most-popular-posts li a:hover {
    color: blue;
}

.popular-post-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cpl-like-count {
    position: absolute;
    top: 3px;
    right: 6px;
    font-size: 0.9em;
    color: #666;
}