/* --- Documentation Modern Design --- */

:root {
    --mylands-color: #00c896;
    --mycommands-color: #5865f2;
    --myeconomy-color: #f1c40f;
    --text-muted: #8b949e;
    --text-light: #c9d1d9;
    --accent: #00c896;
    --secondary: #5865f2;
}

.docs-page-wrapper {
    padding-top: 6rem;
    min-height: 80vh;
    background: radial-gradient(circle at 10% 20%, rgba(88, 101, 242, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 200, 150, 0.05), transparent 40%);
}

/* --- Landing Page --- */
.docs-landing {
    padding-bottom: 4rem;
}

.docs-landing-hero {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding: 4rem 0;
}

.docs-landing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.docs-landing-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.docs-landing-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.docs-landing-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.docs-landing-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-landing-stat strong {
    color: #fff;
    font-weight: 700;
}

/* Plugin Cards Grid */
.docs-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.docs-landing-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.docs-landing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.docs-landing-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.docs-landing-card:hover .docs-landing-card-icon {
    transform: rotate(10deg) scale(1.1);
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(0, 200, 150, 0.4);
    border-color: transparent;
}

/* Specific Plugin Colors on Hover */
.docs-landing-card[href*="mycommands"]:hover .docs-landing-card-icon {
    background: var(--mycommands-color);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.docs-landing-card[href*="myeconomy"]:hover .docs-landing-card-icon {
    background: var(--myeconomy-color);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
}

.docs-landing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.docs-landing-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.docs-landing-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.docs-landing-card:hover .docs-landing-card-cta {
    transform: translateX(5px);
}

/* --- Documentation View --- */
.docs-hero {
    background: rgba(22, 27, 34, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.docs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 70%);
    z-index: 1;
}

.docs-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.docs-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.docs-breadcrumb a:hover {
    color: #fff;
}

.docs-breadcrumb-sep {
    font-size: 0.7rem;
    opacity: 0.5;
}

.docs-breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

.docs-hero-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.docs-hero-icon {
    font-size: 3rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(0, 200, 150, 0.3));
}

.docs-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

.docs-hero-version {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}


.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
}

/* Custom Scrollbar for sidebar */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.docs-search {
    position: relative;
    margin-bottom: 2rem;
}

.docs-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.docs-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 10px 10px 38px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.docs-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.1);
}

.docs-nav-section {
    margin-bottom: 2rem;
}

.docs-nav-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 700;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.docs-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.docs-nav-link.active {
    background: rgba(0, 200, 150, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}


/* Main Content */
.docs-main {
    min-width: 0;
    /* Prevent flex/grid overflow */
}

.doc-article {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.doc-article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.doc-content {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

.doc-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.doc-content h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-content p {
    margin-bottom: 1rem;
}

.doc-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: #ff7b72;
}

.doc-content pre {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.doc-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

.doc-content ul,
.doc-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

/* Alerts inside docs */
.doc-alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.doc-alert-info {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.2);
    color: #adc2ff;
}

.doc-alert-warning {
    background: rgba(241, 196, 15, 0.1);
    border-color: rgba(241, 196, 15, 0.2);
    color: #ffe680;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .docs-container {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        height: auto;
        margin-bottom: 3rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 2rem;
    }
}