/* Watermelon API Documentation - Custom Styles */

:root {
    --wm-primary: #fd346e;
    --wm-primary-dark: #cf0841;
    --wm-header-bg: #1a1a2e;
    --wm-header-height: 56px;
    --wm-text-light: #e0e0e0;
    --wm-text-white: #ffffff;
    --wm-border-subtle: rgba(255, 255, 255, 0.08);
    --wm-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--wm-font);
    background: #121218;
}

/* Header */
.wm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--wm-header-height);
    background: var(--wm-header-bg);
    border-bottom: 1px solid var(--wm-border-subtle);
    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.wm-header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand */
.wm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.wm-logo-icon {
    display: block;
}

.wm-logo-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--wm-text-white);
    letter-spacing: -0.01em;
}

/* Navigation */
.wm-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wm-nav::-webkit-scrollbar {
    display: none;
}

.wm-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wm-text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.wm-nav-link:hover {
    color: var(--wm-text-white);
    background: rgba(255, 255, 255, 0.06);
}

.wm-nav-link.active {
    color: var(--wm-text-white);
    background: rgba(253, 52, 110, 0.12);
}

.wm-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--wm-primary);
    border-radius: 2px 2px 0 0;
}

/* Main content */
.wm-main {
    padding-top: var(--wm-header-height);
}

/* Responsive */
@media (max-width: 768px) {
    .wm-header-inner {
        padding: 0 16px;
        flex-direction: column;
        height: auto;
        padding-top: 12px;
        padding-bottom: 8px;
        gap: 8px;
    }

    .wm-header {
        height: auto;
    }

    .wm-main {
        padding-top: 88px;
    }

    .wm-nav {
        width: 100%;
    }

    .wm-nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}
