/* Dock */
.dock-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(42, 27, 61, 0.6);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dock-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.dock-window {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.dock-window.active {
    height: calc(100vh - 5vh - 78px);
    opacity: 1;
}

.dock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(208, 163, 240, 0.1);
    flex-shrink: 0;
}

.back-home {
    color: var(--light-color);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
}

.back-home:hover {
    opacity: 0.8;
}

.dock-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 1rem;
    width: 100%;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(208, 163, 240, 0.2) transparent;
}

.dock-content-area::-webkit-scrollbar {
    width: 6px;
}

.dock-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.dock-content-area::-webkit-scrollbar-thumb {
    background: rgba(208, 163, 240, 0.2);
    border-radius: 3px;
}

.dock-content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(208, 163, 240, 0.35);
}

.dock-content-area a {
    color: var(--light-color);
    text-decoration: underline;
}


.dock-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: var(--dark-color);
    border: none;
    border-top: 1px solid var(--light-color);
    border-radius: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.dock-nav {
    display: flex;
    justify-content: center;
}

.dock-item {
    color: var(--light-color);
    opacity: 1;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    width: auto;
    flex-shrink: 0;
}

.dock-item:hover {
    opacity: 1;
    background: var(--dark-color);
    color: var(--light-color);
    border-color: var(--light-color);
}

.dock-item.active {
    opacity: 1;
    background: var(--light-color);
    color: var(--dark-color);
}

.dock-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem 0.75rem;
    font-size: 0.65rem;
    opacity: 0.6;
    color: var(--light-color);
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    flex-shrink: 0;
}

.dock-footer span,
.dock-footer a {
    color: var(--light-color);
    text-decoration: none;
}

.dock-footer a:hover {
    text-decoration: underline;
}

.dock-content-area p {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.dock-content-area h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.dock-content-area .status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    font-style: normal;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--light-color);
    color: var(--dark-color);
    vertical-align: middle;
    margin-left: 0.5rem;
}

.dock-content-area .article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(208, 163, 240, 0.1);
    cursor: pointer;
}

.dock-content-area .article:last-child {
    border-bottom: none;
}

.dock-content-area .article h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.dock-content-area .blog-date {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.md-image {
    width: 100%;
    display: block;
    margin: 1.5rem 0;
}

.md-image + p {
    margin-top: 1rem;
}

.md-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.md-table thead th {
    background: rgba(208, 163, 240, 0.08);
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid rgba(208, 163, 240, 0.2);
}

.md-table tbody td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(208, 163, 240, 0.08);
}

.md-table tbody tr:hover {
    background: rgba(208, 163, 240, 0.03);
}

@media (min-width: 600px) {
    .dock-bar {
        left: 50%;
        transform: translateX(-50%);
        width: min(90vw, 800px);
        border: 1px solid var(--light-color);
        border-bottom: none;
        border-radius: 16px 16px 0 0;
    }

    .dock-content-area {
        padding: 0 2rem 2rem;
        max-width: 600px;
    }

    .dock-items {
        padding: 0.75rem 0;
        gap: 1rem;
    }

    .dock-item {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}
