/* S25 Wiki - Modern & Secret UI */

:root {
    --primary-neon: #ffcc00; /* Diablo Unique Gold */
    --secondary-neon: #00ff00; /* Diablo Set Green */
    --accent-red: #c21d1d; /* Diablo Mana/Health Dark Red */
    --bg-dark: #0a0a0a;
    --card-bg: rgba(20, 15, 10, 0.95); /* Dark parchment/stone feel */
    --glass-border: rgba(255, 204, 0, 0.2);
    --text-glow: 0 0 10px rgba(255, 204, 0, 0.5);
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
    color: #e0e0e0;
    font-family: var(--font-body);
}

.s25-wiki-wrapper {
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 50px;
    position: relative;
    overflow-x: visible !important;
    background-color: #050505;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(255, 204, 0, 0.14) 0%, transparent 48%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.36), rgba(5, 5, 5, 0.68)),
        url('../images/hero-bg-epic.png');
    background-position: center top, center top, center top;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: 100% 720px, 100% 100%, cover;
}

.s25-wiki-wrapper::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 204, 0, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 98%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Header / Hero */
.wiki-hero {
    text-align: center;
    margin-bottom: 60px;
}

.secret-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff3333;
    color: #ff3333;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

.wiki-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff 20%, #d4ff00 50%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.2));
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.wiki-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* Layout */
/* Force overflow visible for sticky to work on WP themes */
html, body, #page, #content, .site-content, .s25-wiki-wrapper, .container {
    overflow: visible !important;
}

/* Layout */
.wiki-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 40px;
    align-items: start !important;
}

/* Sidebar */
.wiki-sidebar, .wiki-summary-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px !important;
    align-self: start;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

.sidebar-nav a, .summary-nav a {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 100000 !important;
}

@media (max-width: 1024px) {
    .wiki-layout {
        grid-template-columns: 220px 1fr;
    }
    .wiki-summary-sidebar {
        display: none !important;
    }
}

.sidebar-glass {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    padding: 10px 15px;
    border-radius: 8px;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    color: var(--primary-neon);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255, 204, 0, 0.1);
    color: var(--primary-neon);
    box-shadow: inset 0 0 10px rgba(255, 204, 0, 0.05);
    border-right: 3px solid var(--primary-neon);
}

/* Right Summary Sidebar */
.summary-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-nav li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.summary-nav li::before {
    content: '\f111';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 6px;
    color: var(--primary-neon);
    position: absolute;
    left: 0;
    top: 8px;
    opacity: 0.5;
}

.summary-nav a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-nav a:hover, .summary-nav li.active a {
    color: var(--primary-neon);
    padding-left: 5px;
}

.summary-nav li.active::before {
    opacity: 1;
    color: #fff;
    box-shadow: 0 0 10px var(--primary-neon);
}

.wiki-category-section {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.category-header {
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-neon);
    padding-left: 20px;
}

.category-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
}

/* Wiki Cards */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wiki-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.wiki-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.wiki-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
    background: rgba(20, 20, 35, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.wiki-card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--primary-neon);
    margin-bottom: 15px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Infographic Style UI */
.infographic-workflow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

.flow-step {
    background: var(--card-bg);
    border: 1px solid rgba(184, 150, 80, 0.15);
    border-radius: 8px;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), inset 0 0 50px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: rgba(184, 150, 80, 0.4);
    box-shadow: 0 15px 50px rgba(0,0,0,0.9), inset 0 0 60px rgba(0,0,0,0.6);
}

.step-label {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #d4af37, #8b6b1d); /* Ornate Gold */
    color: #000;
    padding: 8px 25px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 204, 0, 0.3);
    border: 1px solid #ffea00;
}

.formula-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    border: 1px dashed rgba(0, 242, 255, 0.3);
    border: 1px dashed rgba(255, 204, 0, 0.3);
}

.item-slot {
    width: 60px;
    height: 60px;
    background: #0f0f0f;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 10px #000;
    transition: all 0.3s ease;
}

.item-slot:hover {
    border-color: var(--primary-neon);
    background: #1a1a15;
    box-shadow: inset 0 0 15px rgba(255, 204, 0, 0.2);
}

.formula-plus {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.3);
}

.formula-arrow {
    color: var(--primary-neon);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.4));
    animation: arrowSide 1.5s infinite;
}

@keyframes arrowSide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.activated-orb-result {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-neon), var(--secondary-neon));
    box-shadow: 0 0 30px var(--primary-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    position: relative;
}

.activated-orb-result::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary-neon);
    animation: orbPulse 2s linear infinite;
}

@keyframes orbPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Roll Counter Circle */
.roll-counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.roll-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-neon);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.roll-count {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    line-height: 1;
}

.roll-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.category-tag {
    background: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--primary-neon);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .infographic-workflow {
        grid-template-columns: 1fr;
    }
}

/* Cube In-game Image Styling */
.cube-image-wrapper {
    position: relative;
    width: fit-content;
    margin: 20px auto;
    padding: 8px;
    background: #1a1a1a;
    border: 2px solid #332211;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), 0 0 10px rgba(0, 242, 255, 0.1);
    border-radius: 4px;
}

.ingame-cube-img {
    display: block;
    max-width: 180px;
    height: auto;
    border: 1px solid #000;
    filter: contrast(1.1) brightness(1.1);
}

.orb-visual-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.method-badge.cube {
    background: rgba(255, 166, 0, 0.1);
    border: 1px solid #ffa600;
    color: #ffa600;
    box-shadow: 0 0 10px rgba(255, 166, 0, 0.2);
}

.method-badge.click {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

/* Custom Tooltips for Item Slots */
.item-slot {
    position: relative;
    overflow: visible;
}

.item-slot::after {
    content: attr(title);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--primary-neon);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8), 0 0 10px rgba(0, 242, 255, 0.3);
    pointer-events: none;
}

.item-slot:hover {
    z-index: 2000;
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--primary-neon);
    transform: scale(1.2);
}

.item-slot:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.item-slot::before {
    content: '';
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-neon);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
}

.item-slot:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Image Zoom Effect */
.cube-image-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cube-image-wrapper:hover {
    transform: scale(1.5) !important;
    z-index: 1000;
    border-color: var(--primary-neon);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.6);
}

/* SEO Content Accordion - Premium Version */
.seo-content-section {
    max-width: 1200px;
    margin: 80px auto 120px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.seo-accordion {
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.9), rgba(5, 5, 10, 0.95));
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 242, 255, 0.05);
    position: relative;
}

.seo-accordion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    opacity: 0.5;
}

.seo-accordion[open] {
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 255, 0.15);
}

.seo-summary {
    padding: 25px 40px;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

.seo-summary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.seo-summary span {
    background: linear-gradient(90deg, #fff, var(--primary-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.seo-summary i {
    color: var(--primary-neon);
    font-size: 1.2rem;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 5px var(--primary-neon));
}

.seo-accordion[open] .seo-summary i {
    transform: rotate(180deg);
    color: var(--secondary-neon);
    filter: drop-shadow(0 0 8px var(--secondary-neon));
}

.seo-text-body {
    padding: 50px 60px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.9;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-text-body h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-neon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.seo-text-body h2 {
    font-size: 1.4rem;
    color: var(--secondary-neon);
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.seo-text-body h2::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--primary-neon);
}

.seo-text-body p {
    margin-bottom: 25px;
    text-align: justify;
}

.seo-text-body strong {
    color: var(--primary-neon);
    font-weight: 700;
}

.seo-keywords {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.seo-keywords span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness for Premium SEO */
@media (max-width: 768px) {
    .seo-text-body {
        padding: 30px 20px;
    }
    .seo-text-body h1 {
        font-size: 1.6rem;
    }
}
