/**
 * MU Guide Template Styles
 * Based on MuDream Online design - EXACT CSS with all details
 */

/* CSS Variables */
:root {
    --font-circle: 'Circe', sans-serif;
    --main-bg: #0a0e1a;
    --white: #ffffff;
    --gradient-box-primary: linear-gradient(180deg, #98D2F9 2.17%, #268DD0 97.83%);
    --gradient-box-secondary: linear-gradient(180deg, #db00f1 0%, #9800b3 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --color-light: rgb(149, 127, 116);
    --color-orange: rgb(230, 126, 35);
    --color-yellow: rgb(241, 196, 15);
    --color-red: rgb(186, 55, 42);
    --color-purple: rgb(132, 63, 161);
    --color-green: rgb(45, 194, 107);
}

/* Reset and Base Styles */
body.page-template-mu-guide-template {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-circle, 'Circe', sans-serif);
    background: var(--main-bg, #0a0e1a);
    color: var(--white, #ffffff);
}

body.page-template-mu-guide-template .site-content,
body.page-template-mu-guide-template #content,
body.page-template-mu-guide-template .container,
body.page-template-mu-guide-template .row {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Main Layout */
.mu-page-layout {
    width: 100%;
    min-height: 100vh;
}

.mu-main-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Menu - EXPANDED */
.mu-sidebar-menu {
    position: relative;
    width: 350px;
    min-width: 350px;
    background: rgba(26, 31, 46, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

/* Active Border - FIXED to match item height */
.mu-active-border {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 74px;
    background: #db00f1;
    border-radius: 10px;
    transition: transform 0.2s ease, height 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

/* Logo Wrapper - LARGER */
.mu-logo-wrapper {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.mu-logo-wrapper a {
    display: inline-block;
    text-decoration: none;
}

.mu-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    width: auto;
}

/* Menu Item - EXACT from MuDream */
.mu-menu-item {
    display: flex;
    align-items: center;
    column-gap: 10px;
    position: relative;
    background: radial-gradient(171.9% 682.58% at 150.89% -129.17%, rgba(4, 0, 0, .5) 0, rgba(5, 0, 255, 0) 49.48%), rgba(177, 177, 197, .15);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, .2);
    border-radius: 3px;
    padding: 7px 13px;
    cursor: pointer;
    height: 74px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px 10px 10px;
}

.mu-menu-item:before {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: #db00f1;
    border-radius: 10px;
    transition: height 0.2s ease;
    content: "";
}

.mu-menu-item:hover {
    color: #fff;
    background: radial-gradient(171.9% 682.58% at 150.89% -129.17%, rgba(4, 0, 0, .5) 0, rgba(5, 0, 255, 0) 49.48%), rgba(177, 177, 197, .2);
}

.mu-menu-item.mu-menu-active {
    background: var(--gradient-box-secondary);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 3px;
    color: #fff;
}

.mu-menu-item.mu-menu-active:before {
    height: 100%;
}

.mu-menu-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.mu-menu-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mu-menu-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

.mu-menu-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.mu-menu-item.mu-menu-active .mu-menu-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Main Content Area */
.mu-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mu-scroll-content {
    flex: 1;
    padding: 20px;
    background: var(--main-bg, #0a0e1a);
}

/* Tabs Container */
.mu-tabs-container {
    background: rgba(30, 30, 36, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.mu-tabs-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tab Button - EXACT from MuDream */
.mu-tab-button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.1s ease;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    cursor: pointer;
}

.mu-tab-button:after,
.mu-tab-button:before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    transition: all 0.1s ease;
    content: "";
}

.mu-tab-button:before {
    top: 0;
    height: 100%;
    background: var(--gradient-box-primary);
    opacity: 0.5;
    filter: blur(10px);
    border-radius: 20%;
}

.mu-tab-button.mu-tab-active:before {
    width: 50%;
}

.mu-tab-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.mu-tab-button.mu-tab-active {
    color: #fff;
    background: var(--gradient-box-primary);
}

.mu-tab-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollable Content */
.mu-scroll-area {
    width: 100%;
    height: 100%;
    overflow: auto;
    scrollbar-gutter: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mu-scroll-area::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.mu-scroll-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

.mu-scroll-area::-webkit-scrollbar-thumb {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: #444254;
}

/* Content Body */
.mu-content-body {
    min-height: 100vh;
}

/* Content Rows */
.mu-content-row {
    margin-bottom: 0;
    padding: 0;
}

.mu-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0;
}

.mu-row {
    display: flex;
    column-gap: 0px;
}

.mu-col {
    display: flex;
    flex-direction: column;
}

.mu-col-full {
    width: 100%;
}

.mu-content-col {
    border-width: 0px;
    border-style: solid;
    border-color: transparent;
    border-radius: 0px;
}

.mu-col-inner {
    width: 100%;
    padding: 0px;
}

/* Content Types */
.mu-content-heading {
    overflow-wrap: break-word;
    padding: 7px;
}

.mu-heading-text {
    margin: 0px;
    color: var(--color-yellow);
    line-height: 140%;
    text-align: left;
    overflow-wrap: break-word;
    font-size: 22px;
    font-weight: 700;
}

.mu-content-text {
    overflow-wrap: break-word;
    padding: 10px;
}

.mu-text-content {
    font-size: 14px;
    color: var(--color-light);
    line-height: 140%;
    text-align: left;
    overflow-wrap: break-word;
}

.mu-text-content p {
    line-height: 140%;
    margin: 0 0 10px 0;
}

.mu-text-content strong {
    font-weight: 700;
    color: inherit;
}

.mu-content-image {
    overflow-wrap: break-word;
    padding: 0px;
}

.mu-image-wrapper {
    position: relative;
    line-height: 0px;
    text-align: center;
}

.mu-image {
    width: 100%;
    max-width: 100%;
}

/* Tab Panel with FAST animations */
.mu-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.mu-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: tabFadeIn 0.1s ease;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Styles - EXACT from MuDream */
.mu-text-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mu-text-content table td,
.mu-text-content table th {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    text-align: center;
    line-height: 140%;
}

.mu-text-content table th {
    background: rgba(152, 210, 249, 0.1);
    color: var(--color-orange);
    font-weight: 700;
    font-size: 18px;
}

.mu-text-content table td {
    color: var(--color-light);
    font-size: 14px;
}

.mu-text-content table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mu-text-content table td strong {
    color: var(--color-orange);
    font-weight: 700;
}

/* Special text colors like MuDream */
.mu-text-content span[style*="color: rgb(230, 126, 35)"] {
    color: var(--color-orange) !important;
}

.mu-text-content span[style*="color: rgb(45, 194, 107)"] {
    color: var(--color-green) !important;
}

.mu-text-content span[style*="color: rgb(186, 55, 42)"] {
    color: var(--color-red) !important;
}

.mu-text-content span[style*="color: rgb(132, 63, 161)"] {
    color: var(--color-purple) !important;
}

/* Divider styles */
.mu-content-divider {
    overflow-wrap: break-word;
    padding: 10px;
}

.mu-content-divider div {
    text-align: center;
    line-height: 0;
}

.mu-content-divider div div {
    border-top: 1px solid rgb(53, 53, 53);
    width: 100%;
    display: inline-block;
    line-height: 1px;
    height: 0px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 1024px) {
    .mu-main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .mu-sidebar-menu {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 400px;
    }
    
    .mu-scroll-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .mu-tab-button {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .mu-tabs-container {
        padding: 10px;
    }
    
    .mu-sidebar-menu {
        width: 100%;
    }
}
