/* --- 1. :root Variables & Global Setup --- */
:root {
    --color-bg: #0D0D10;
    --color-surface: rgba(22, 22, 28, 0.65);
    --color-surface-solid: #16161C;
    --color-border: rgba(138, 118, 255, 0.2);
    --color-text-primary: #F0F0F5;
    --color-text-secondary: #A0A0B0;
    --color-accent-glow: #8A76FF;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Josefin Sans', sans-serif;
}

/* Base Reset & Full-Page Background */
html {
    box-sizing: border-box;
    background-color: var(--color-bg);
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    margin: 0;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 80% 80% at 20% -10%, rgba(138, 76, 255, 0.15), transparent),
        radial-gradient(ellipse 80% 80% at 80% 110%, rgba(0, 153, 255, 0.15), transparent);
    background-attachment: fixed;
}

/* --- 2. Full-Page Layout (Sticky Footer) --- */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-content {
    flex: 1; /* This pushes the footer to the bottom */
}

/* --- 3. Header & Navigation --- */
.site-header {
    background-color: var(--color-surface-solid);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
	padding-top: 2rem;
}
body.admin-bar .site-header {
top: 0px;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
}
.site-branding a {
    color: var(--color-accent-glow);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
}
.site-branding img {
    max-height: 50px;
    width: auto;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}
.main-navigation a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-text-primary);
}

/* --- 4. Main Content Layout --- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.content-area {
    grid-column: 1 / 2;
}
.widget-area {
    grid-column: 2 / 3;
}
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

/* --- 5. Post & Page Styles --- */
.post, .page, .hentry {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}
.home .page .entry-title {
    display: none;
}
.post-thumbnail {
    margin: -2rem -2rem 1.5rem -2rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.entry-title {
    font-family: var(--font-secondary);
    margin-top: 0;
}
.entry-title a {
    color: var(--color-text-primary);
    text-decoration: none;
}
.entry-meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.entry-meta span:not(:last-child)::after {
    content: '•';
    margin: 0 0.5rem;
}
.entry-content p {
    line-height: 1.7;
    color: var(--color-text-secondary);
	padding: 2rem;
}
.entry-content a, .comment-content a {
    color: var(--color-accent-glow);
    text-decoration: none;
    font-weight: bold;
}
.entry-content a:hover, .comment-content a:hover {
    text-decoration: underline;
}

/* --- 6. Sidebar Styles --- */
.widget-area .widget {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.widget-title {
    font-family: var(--font-secondary);
    margin-top: 0;
}
.widget-area a {
    color: var(--color-accent-glow);
    text-decoration: none;
}
.widget-area a:hover {
    text-decoration: underline;
}
.widget-area ul {
    padding-left: 1.5rem;
}
.widget-area li {
    margin-bottom: 0.5rem;
}
.widget_search .search-field {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-surface-solid);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text-primary);
}
.widget_search .search-submit {
    background-color: var(--color-accent-glow);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* --- 7. Comments Section --- */
.comments-area {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}
.comments-title {
    font-family: var(--font-secondary);
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-body {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-surface-solid);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text-primary);
}
.comment-form .submit {
    background-color: var(--color-accent-glow);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* --- 8. Footer --- */
.site-footer {
    background-color: var(--color-surface-solid);
    border-top: 1px solid var(--color-border);
    width: 100%;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
}

/* --- 9. BuddyPress Compatibility --- */
#buddypress {
    color: var(--color-text-secondary);
}
#buddypress #container {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
}
#buddypress div.item-list-tabs ul li a {
    color: var(--color-text-secondary);
    background: none;
    border: none;
}
#buddypress div.item-list-tabs ul li.current a,
#buddypress div.item-list-tabs ul li a:hover {
    color: var(--color-text-primary);
    background-color: var(--color-surface-solid);
    border-radius: 0.5rem;
}
#buddypress input[type="submit"],
#buddypress input[type="button"],
#buddypress .button {
    background-color: var(--color-accent-glow);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}
#buddypress .activity-list .activity-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}
#buddypress .activity-list .activity-content .activity-header a {
    color: var(--color-text-primary);
    font-weight: bold;
}
#buddypress #item-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}