/*
Theme Name: Wisdom
Theme URI: http://example.com
Author: Your Name
Author URI: http://example.com
Description: A theme for the Temple of Wisdom.
Version: 1.0
*/

/* Custom styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, rgba(64, 0, 64, 0.9), rgba(32, 0, 32, 0.9));
    background-attachment: fixed;
    color: white;
    text-shadow: 1px 1px 3px black;
    height: 100vh;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-bg-color);
	background-image: url('bg.jpg');
	background-size: cover; /* or contain, depending on how you want it */
	background-repeat: no-repeat;
	background-position: center center;
}

/* Image Fix */
img {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}

/* Define Crownfire colors */
:root {
    --scrollbar-bg-color: #4b004b;
    --scrollbar-thumb-color: #800080;
    --scrollbar-thumb-hover-color: #9932cc;
}

/* Scrollbar styles for WebKit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-bg-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover-color);
}

::-webkit-scrollbar-thumb:active {
    background-color: var(--scrollbar-thumb-hover-color);
}

/* Main content background */
.main-body {
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 1000px;
    margin-top: 60px;
    flex: 1;
}

/* Links */
a {
    text-decoration: none;
    color: white;
    transition: text-shadow 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px #9932cc, 0 0 20px #9932cc, 0 0 30px #9932cc, 0 0 40px #9932cc;
}

/* Navigation header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(32, 0, 32, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header title */
h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5em;
    margin: 0;
}

/* Responsive header text */
@media (max-width: 768px) {
    h1 {
        font-size: 85%;
    }
}

/* Sidebar menu */
.menu {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 250px;
    background: rgba(32, 0, 32, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.menu.active {
    right: 0;
}

.menu .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

nav a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 0px;
    transition: background 0.3s ease;
    width: 120%;
    text-align: left;
    font-size: 80%;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.5);
}

.menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.menu ul li {
    padding-left: 20px;
}

.menu li {
    padding-left: 0;
}

/* Hamburger */
.hamburger {
    font-size: 30px;
    cursor: pointer;
    color: white;
    margin-left: 20px;
}

/* Search bar */
.search-bar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    padding: 90px;
}

.search-bar {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    color: black;
    font-size: 0.9em;
    flex: 1;
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    padding: 0px 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background: rgba(32, 0, 32, 0.8);
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    bottom: 0;
    z-index: 1000;
    color: white;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Posts */
.post-wrapper {
    #background: rgba(48, 0, 48, 0.9);
	background-color: #160b1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-wrapper li {
    margin-bottom: 15px;
}

/* Cursor effect */
.cursor-effect {
    position: fixed;
    pointer-events: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 80%);
    mix-blend-mode: screen;
    filter: blur(10px);
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: background 0.2s ease;
}

.post-wrapper h3 a {
    color: #9932cc;
    font-size: 1.8em;
    transition: text-shadow 0.3s ease;
}

.post-wrapper h3 a:hover {
    text-shadow: 0 0 10px #9932cc, 0 0 20px #9932cc, 0 0 30px #9932cc;
}

/* Dropdowns */
.page-dropdown {
    padding: 10px;
    background: rgba(48, 0, 48, 0.8);
    border-radius: 10px;
    color: white;
    border: none;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.page-dropdown option {
    background: rgba(32, 0, 32, 0.9);
    color: white;
}

/* Page button */
.page-button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.page-button:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .menu {
        width: 100%;
        right: -100%;
    }

    .menu.active {
        right: 0;
    }

    .search-bar-wrapper {
        padding: 10px;
        width: 100%;
    }

    nav a {
        font-size: 1em;
    }

    footer {
        padding: 15px;
        font-size: 0.8em;
    }
}

.posts-list {
    margin: 20px 0;
}

.post-button {
    display: flex;
    justify-content: space-between;
    align-items: left;
    margin-bottom: 10px;
    width: 90%;
    padding: 0;
}

.post-title-button {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.post-title-button:hover {
    background-color: #660066;
}

.post-author-info {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.author-avatar {
    margin-right: 5px;
}

#secondary-menu {
    margin-top: 10px;
    z-index: 8;
    position: relative;
}

.secondary-menu-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.secondary-menu-links li {
    display: block;
    margin-bottom: 20px;
}

.secondary-menu-links a {
    text-decoration: none;
    padding: 12px 20px;
    background-color: #800080;
    color: #fff;
    border-radius: 5px;
    display: block;
}

.secondary-menu-links a:hover {
    background-color: #9932cc;
}

.edit-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
}

.edit-button:hover {
    background-color: #9932cc;
}



@media (max-width: 768px) {
    body {
        background: linear-gradient(180deg, rgba(64, 0, 64, 0.9), rgba(32, 0, 32, 0.9));
        background-attachment: fixed;
        background-image: url('bg.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        color: white;
        text-shadow: 1px 1px 3px black;
    }

    .main-body {
        width: 95%;
        margin: 80px auto 20px auto;
        padding: 15px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .hamburger {
        margin-left: 0;
    }

    nav a {
        font-size: 1em;
        width: 100%;
    }

    .post-title-button {
        font-size: 1em;
        padding: 10px;
    }

    .search-bar-wrapper {
        flex-direction: column;
        padding: 10px;
        width: 100%;
    }

    .search-bar, .search-button {
        width: 100%;
        margin-top: 5px;
    }

    footer {
        font-size: 0.8em;
        text-align: center;
        padding: 10px;
    }

    .page-button {
        width: 100%;
        text-align: center;
    }
}



@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        margin-left: 0;
        margin-right: 10px;
        align-self: flex-end;
    }

    h1 {
        flex: 1;
        text-align: left;
    }
}



@media (max-width: 768px) {
    .main-body,
    .post-wrapper,
    nav a,
    .post-title-button,
    footer,
    h1,
    p,
    li,
    .menu,
    .search-bar-wrapper {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}/* This is the outer background container */


.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    padding: 20px 30px;
    background: rgba(32, 0, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 0 20px #000;
    backdrop-filter: blur(8px);
    max-width: 100%;
    box-sizing: border-box;
}

/* This holds the actual pagination links */
.pagination nav {
    width: 100%;
}

.pagination .nav-links {
    display: flex !important;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;  /* allow wrap */
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Prevent stretching of list items */
.pagination .nav-links li {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    width: auto !important;
    max-width: none !important;
}

/* Page numbers styling */
.pagination .nav-links a.page-numbers,
.pagination .nav-links span.page-numbers {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 5px black;
    white-space: nowrap;  /* no wrapping inside buttons */
    display: inline-block;
    text-align: center;
}

.pagination .nav-links a.page-numbers:hover {
    background-color: #9932cc;
    transform: scale(1.05);
    box-shadow: 0 0 12px #9932cc;
}

.pagination .nav-links span.current {
    background-color: #9932cc;
    font-weight: bold;
    box-shadow: 0 0 15px #9932cc, 0 0 30px #9932cc;
}

.pagination .nav-links .dots {
    padding: 10px 16px;
    color: white;
    user-select: none;
}


