@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100;300;400;500&display=swap&font-display=swap');

/* Base styles and CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #121319;
    color: #AAC1CB;
    line-height: 1.6;
    font-weight: 300;
    /* Fixed background image styling */
    background-image: url('../images/assets/background.webp'); /* Replace with your actual image path */
    background-attachment: fixed; /* This makes the background stay in place when scrolling */
    background-size: cover; /* Makes the image cover the entire viewport */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the image from repeating */

    /* Animation for subtle background movement - comment out this line if you don't like it */
    animation: subtle-pulse 15s ease-in-out infinite;
}

/* Optional overlay to darken/adjust the background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 19, 25, 0.9), rgba(14, 26, 38, 0.8)); /* Gradient overlay that matches your color scheme */
    z-index: -1; /* Places it behind content */
}

/* Background animation keyframes */
@keyframes subtle-pulse {
    0% {
        background-size: 100% 100%;
    }
    50% {
        background-size: 105% 105%;
    }
    100% {
        background-size: 100% 100%;
    }
}

/* Container for the entire layout */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1620px;
    margin: 0 auto;
    background-color: rgba(18, 19, 25, 0.7); /* Semi-transparent background to help content stand out */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
}

/* Left sidebar with navigation */
.sidebar-left {
    width: 15%;
    /* Replace solid background with gradient that fades to transparent on left edge */
    /* ADJUST FADE: Change '80%' value to control where the fade starts from right edge */
    background: linear-gradient(to left, #121319, #121319 80%, rgba(18, 19, 25, 0.3));
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1;
}

/* Main content area with gradient transitions to sidebar colors */
.main-content {
    width: 70%;
    padding: 2rem;
    /* Replace solid background with gradient for smooth transitions */
    /* ADJUST TRANSITION: Change px values to increase/decrease gradient width */
    background: linear-gradient(to right, #121319, #0E1A26 40px, #0E1A26 calc(100% - 30px), #121319);
    min-height: 100vh;
    position: relative; /* Needed for the shadow pseudo-element */
    z-index: 1;
}

/* Optional inner shadow for enhanced depth effect */
/* You can comment out this entire block if you prefer no shadow effect */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* ADJUST SHADOW: Change values for shadow size, blur and opacity */
    /* Format: inset [horizontal offset] [vertical offset] [blur radius] [spread] [color] */
    box-shadow: inset 10px 0 15px -10px rgba(0, 0, 0, 0.3),
    inset -10px 0 15px -10px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* Makes the element non-interactive */
    z-index: -1; /* Places it behind content */
}

/* Right sidebar with profile/info */
.sidebar-right {
    width: 15%;
    /* Replace solid background with gradient that fades to transparent on right edge */
    /* ADJUST FADE: Change '80%' value to control where the fade starts from left edge */
    background: linear-gradient(to right, #121319, #121319 80%, rgba(18, 19, 25, 0.3));
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1;
}

/* Navigation menu styling */
.nav-menu {
    margin-top: 2rem;
}

.nav-menu h2 {
    color: #e75480;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #e75480;
    font-weight: 400;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu li:hover {
    border-left: 3px solid #00ced1;
    background-color: rgba(0, 206, 209, 0.1);
}

.nav-menu a {
    color: #AAC1CB;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #00ced1;
    transform: translateX(5px);
    text-shadow: 0 0 5px #00ced1;
}

/* Submenu styling */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.has-submenu:hover .submenu,
.submenu.active {
    display: block;
}

.submenu li {
    margin-bottom: 0.5rem;
    padding: 0.3rem;
}

.submenu-toggle::after {
    content: ' +';
    color: #e75480;
}

/* Profile section */
.profile {
    border: 1px solid #e75480;
    padding: 1.0rem;
    border-radius: 5px;
    background-color: rgba(231, 84, 128, 0.1);
    margin-bottom: 2rem;
    font-size: 0.69rem;
}

.profile h2 {
    color: #e75480;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    text-shadow: 0 0 3px #e75480;
}

.profile-pic {
    width: 100%;
    height: auto;
    border: 2px solid #e75480;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(231, 84, 128, 0.7);
}

.kofi-pic {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    margin-bottom: auto;
    border: none;
    background-color: transparent;
}
/* Content styling */
.content-title {
    color: #e75480;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #e75480;
    border-bottom: 1px solid #e75480;
    padding-bottom: 0.5rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    color: #00ced1;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #00ced1;
    font-weight: 400;
}

.content-section p {
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Neon button styling */
.neon-button {
    background-color: transparent;
    border: 2px solid #e75480;
    color: #e75480;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    margin-top: 1rem;
    margin-right: 0.5rem;
    display: inline-block;
    text-shadow: 0 0 5px #e75480;
    box-shadow: 0 0 10px rgba(231, 84, 128, 0.5);
    text-decoration: none;
}

.neon-button:hover {
    background-color: rgba(231, 84, 128, 0.2);
    box-shadow: 0 0 20px rgba(231, 84, 128, 0.8);
    transform: translateY(-3px);
}

.kofi-button {
    background-color: rgba(231, 84, 128, 0.2);
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* Contact list styling */
.contact-list {
    list-style: none;
    margin-top: 0.5rem;
}

.contact-list li {
    margin-bottom: 0.5rem;
}

.contact-list a {
    color: #AAC1CB;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.contact-list a:hover {
    color: #00ced1;
    text-shadow: 0 0 5px #00ced1;
    transform: translateX(3px);
}

/* Info boxes styling */
.info-box {
    border: 1px solid;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.info-box.blue {
    border-color: #00ced1;
    background-color: rgba(0, 206, 209, 0.1);
}

.info-box.blue h3 {
    color: #00ced1;
    text-shadow: 0 0 5px #00ced1;
}

.info-box.pink {
    border-color: #e75480;
    background-color: rgba(231, 84, 128, 0.1);
}

.info-box.pink h3 {
    color: #e75480;
    text-shadow: 0 0 5px #e75480;
}

.info-box h3 {
    margin-bottom: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .container {
        flex-wrap: wrap;
    }

    .sidebar-left {
        width: 30%;
        height: auto;
        /* Adjust tablet gradient for narrower panel */
        background: linear-gradient(to left, #121319, #121319 70%, rgba(18, 19, 25, 0.3));
    }

    .main-content {
        width: 70%;
        /* Adjust mobile gradient to account for different layout */
        background: linear-gradient(to right, #121319, #0E1A26 20px, #0E1A26 calc(100% - 20px), #121319);
    }

    .sidebar-right {
        width: 100%;
        height: auto;
        /* For full-width bottom panel, fade both edges */
        background: linear-gradient(to right,
        rgba(18, 19, 25, 0.3),
        #121319 20%,
        #121319 80%,
        rgba(18, 19, 25, 0.3));
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar-left {
        width: 100%;
        border-right: none;
        border-bottom: none;
        order: 1;
        height: auto;
        position: relative;
        /* For mobile top panel, fade left and right edges */
        background: linear-gradient(to right,
        rgba(18, 19, 25, 0.3),
        #121319 20%,
        #121319 80%,
        rgba(18, 19, 25, 0.3));
    }

    .main-content {
        width: 100%;
        order: 2;
        /* For mobile column layout, change to top/bottom gradient instead of left/right */
        background: linear-gradient(to bottom, #121319, #0E1A26 20px, #0E1A26 calc(100% - 20px), #121319);
    }

    /* Adjust shadow for mobile view */
    .main-content::before {
        box-shadow: inset 0 10px 15px -10px rgba(0, 0, 0, 0.3),
        inset 0 -10px 15px -10px rgba(0, 0, 0, 0.3);
    }

    .sidebar-right {
        width: 100%;
        order: 3;
        position: relative;
        /* For mobile bottom panel, fade left and right edges */
        background: linear-gradient(to right,
        rgba(18, 19, 25, 0.3),
        #121319 20%,
        #121319 80%,
        rgba(18, 19, 25, 0.3));
    }

    /* Mobile menu toggle */
    .mobile-nav-toggle {
        display: block !important;
        background-color: #e75480;
        color: #AAC1CB;
        border: none;
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: left;
        cursor: pointer;
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: block;
    }

    /* Loading indicator */
    .loading {
        color: #e75480;
        text-align: center;
        padding: 2rem;
        font-weight: 300;
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% {
            opacity: 0.5;
        }
        50% {
            opacity: 1;
        }
        100% {
            opacity: 0.5;
        }
    }
}

/* Highlighted text classes for lore keywords */
.blue-text {
    color: #00ced1;
    /*font-weight: bold;*/
    text-shadow: 0 0 3px #00ced1;
    transition: all 0.3s ease;
}

.blue-text:hover {
    text-shadow: 0 0 5px #00ced1;
}

.blue-text-no-glow {
    color: #00ced1;
    /*font-weight: bold;*/
    text-shadow: 0 0 1px #00ced1;
    transition: all 0.3s ease;
}

.blue-text-no-glow:hover {
    text-shadow: 0 0 5px #00ced1;
}

.pink-text {
    color: #e75480;
    /*font-weight: bold;*/
    text-shadow: 0 0 3px #e75480;
    transition: all 0.3s ease;
}

.pink-text:hover {
    text-shadow: 0 0 5px #e75480;
}

.pink-text-no-glow {
    color: #e75480;
    /*font-weight: bold;*/
    text-shadow: 0 0 1px #e75480;
    transition: all 0.3s ease;
}

.pink-text-no-glow:hover {
    text-shadow: 0 0 5px #e75480;
}

/* Highlighted text classes for lore keywords (Arcanthea) */
.teal-text {
    color: #009393;
    /*font-weight: bold;*/
    text-shadow: 0 0 2px #008080;
    transition: all 0.3s ease;
}

.teal-text:hover {
    text-shadow: 0 0 5px #008080;
}

.purple-text {
    color: #9370db;
    /*font-weight: bold;*/
    text-shadow: 0 0 2px #9370db;
    transition: all 0.3s ease;
}

.purple-text:hover {
    text-shadow: 0 0 5px #9370db;
}
a {
    color: inherit;
}

.spacer {
    margin-bottom: 35px;
}

.spacer-small {
    margin-bottom: 15px;
}

/* Visitor Counter Styling */
.visitor-counter-container {
    /*border: 1px solid #e75480;*/
    /*background-color: rgba(0, 0, 0, 0.2);*/
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/*.visitor-counter-container:hover {*/
/*    box-shadow: 0 0 10px rgba(231, 84, 128, 0.5);*/
/*}*/

#visitor-counter {
    display: inline-block;
}

#visitor-counter .count-number {
    color: #e75480;
    font-weight: bold;
    text-shadow: 0 0 5px #e75480;
    font-size: 1.1rem;
}

#visitor-counter .count-label {
    color: #AAC1CB;
    margin-left: 4px;
}

#visitor-counter.counter-complete .count-number {
    animation: pulse 1s ease-in-out;
}

/* Loading animation */
.loading-dots {
    color: #AAC1CB;
}

.loading-dots span {
    animation: loadingDots 1.5s infinite;
    opacity: 0;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes pulse {
    0% { text-shadow: 0 0 5px #e75480; }
    50% { text-shadow: 0 0 15px #e75480; }
    100% { text-shadow: 0 0 5px #e75480; }
}

/* Center the comment box, align heading with comment box edge */
.content-section:has(#isso-thread) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#isso-thread {
    padding: 1rem;
    margin-top: 1.5rem;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 8px;
    border: 0 solid #e75480;
    width: 700px;
    max-width: 100%;
}

/* Container for heading and text */
.comment-header {
    width: 700px;
    max-width: 100%;
    text-align: left;
}

/* Comment form - with stronger overrides */
.isso-postbox .textarea,
textarea.isso-textarea {
    background-color: rgba(38, 46, 52, 0.4) !important;
    border: 2px solid #e75480 !important;
    color: #AAC1CB !important;
    border-radius: 5px !important;
    padding: 0.8rem !important;
    min-height: 100px !important;
    font-family: inherit !important;
    width: 100% !important;
    box-shadow: 0 0 10px rgba(231, 84, 128, 0.5) !important;
}

.isso-postbox .textarea:focus,
textarea.isso-textarea:focus {
    box-shadow: 0 0 15px rgba(231, 84, 128, 0.5) !important;
    outline: none !important;
}

.isso-postbox .textarea:focus {
    box-shadow: 0 0 10px rgba(231, 84, 128, 0.5);
    outline: none;
}

/* Submit button */
.isso-postbox .submit,
.isso-submit {
    background-color: transparent !important;
    border: 2px solid #e75480 !important;
    color: #e75480 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    font-weight: bold !important;
    text-shadow: 0 0 5px #e75480 !important;
    box-shadow: 0 0 10px rgba(231, 84, 128, 0.5) !important;
}

.isso-postbox .submit:hover,
.isso-submit:hover {
    background-color: rgba(231, 84, 128, 0.2) !important;
    box-shadow: 0 0 20px rgba(231, 84, 128, 0.8) !important;
}

/* Text input fields */
.isso-postbox input,
.isso-input-wrapper input {
    background-color: rgba(38, 46, 52, 0.4) !important;
    border: 2px solid #00ced1 !important;
    color: #AAC1CB !important;
    border-radius: 4px !important;
    padding: 0.5rem !important;
    font-family: inherit !important;
    box-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
}

.isso-postbox .input-wrapper input:focus {
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.5);
    outline: none;
}

/* Comment threads */
.isso-comment {
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(38, 46, 52, 0.4);
    border-radius: 5px;
    border-left: 3px solid #00ced1;
}

.isso-comment .isso-text {
    color: #AAC1CB;
}

.isso-comment .isso-author {
    color: #00ced1;
    font-weight: bold;
    text-shadow: 0 0 1px #00ced1;
}

.isso-comment .isso-footer {
    color: rgba(170, 193, 203, 0.7);
    font-size: 0.9rem;
}

.isso-comment .isso-footer a {
    color: #e75480;
    text-decoration: none;
    transition: all 0.3s ease;
}

.isso-comment .isso-footer a:hover {
    text-shadow: 0 0 3px #e75480;
}
