/* Documentation hub & guide pages */

.docs-page-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('/public/images/background/background_flowers.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
}

.docs-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 48px clamp(24px, 5vw, 120px) 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.docs-header {
    margin-bottom: 40px;
    text-align: center;
}

.docs-title {
    margin: 0 0 12px;
    font-size: 3.5rem;
    line-height: 1.1;
}

.docs-subtitle {
    margin: 0 auto;
    max-width: 640px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.55;
    opacity: 0.92;
}

.docs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.docs-breadcrumb a {
    color: var(--color-darkpurple-medium, #48265c);
    transition: color 0.2s ease;
}

.docs-breadcrumb a:hover {
    color: #ff31d2;
}

.docs-breadcrumb__sep {
    color: var(--color-lightpurple, #666a81);
    user-select: none;
}

.docs-breadcrumb__current {
    color: var(--color-lightpurple, #666a81);
}

/* Hub — section cards */
.docs-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.docs-sections > li {
    display: flex;
    min-height: 100%;
}

.docs-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 100%;
    gap: 12px;
    padding: 28px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid rgba(76, 46, 139, 0.1);
    box-shadow: 0 14px 40px rgba(44, 18, 59, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

a.docs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(44, 18, 59, 0.12);
    border-color: rgba(255, 49, 210, 0.35);
}

.docs-card--soon {
    opacity: 0.72;
    pointer-events: none;
    cursor: default;
}

.docs-card__tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-card__tag--guide {
    background: rgba(187, 104, 255, 0.24);
    color: #48265c;
}

.docs-card__tag--reference {
    background: rgba(93, 255, 239, 0.2);
    color: #0d7a72;
}

.docs-card__tag--shop {
    background: rgba(255, 189, 67, 0.32);
    color: #8a5a12;
}

.docs-card__tag--account {
    background: linear-gradient(135deg, rgba(187, 104, 255, 0.28), rgba(255, 49, 210, 0.22));
    color: #48265c;
}

.docs-card__tag--muted {
    background: rgba(102, 106, 129, 0.15);
    color: var(--color-lightpurple, #666a81);
}

.docs-card__title {
    margin: 0;
    font-size: 1.35rem;
}

.docs-card__desc {
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.docs-card__link {
    margin-top: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-darkpurple-medium, #48265c);
}

a.docs-card:hover .docs-card__link {
    color: #ff31d2;
}

/* Setup guide */
.docs-guide-outro {
    margin: 0;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(76, 46, 139, 0.12);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.docs-guide-outro a {
    color: var(--color-darkpurple-medium, #48265c);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.docs-guide-outro a:hover {
    color: #ff31d2;
}

.docs-guide-intro {
    margin: 0 0 36px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(76, 46, 139, 0.12);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.docs-guide-phase {
    margin-bottom: 56px;
}

.docs-guide-phase:last-of-type {
    margin-bottom: 32px;
}

.docs-guide-phase__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(76, 46, 139, 0.1);
}

.docs-guide-phase__badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    background: var(--color-black, #140b1b);
}

.docs-guide-phase--1 .docs-guide-phase__badge {
    background: linear-gradient(135deg, #bb68ff, #9b4de0);
}

.docs-guide-phase--2 .docs-guide-phase__badge {
    background: linear-gradient(135deg, #5dbeff, #3d8fd4);
}

.docs-guide-phase--3 .docs-guide-phase__badge {
    background: linear-gradient(135deg, #ffbd43, #fc9f63);
}

.docs-guide-phase--4 .docs-guide-phase__badge {
    background: linear-gradient(135deg, #ff6fae, #d64d9f);
}

.docs-guide-phase__title {
    margin: 0;
    font-size: 1.75rem;
}

.docs-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-guide-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(76, 46, 139, 0.1);
    box-shadow: 0 10px 32px rgba(44, 18, 59, 0.06);
}

.docs-guide-step__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.docs-guide-step__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    background: rgba(44, 18, 59, 0.08);
    color: var(--color-darkpurple, #2c123b);
}

.docs-guide-step__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

.docs-guide-step__text a {
    color: var(--color-darkpurple-medium, #48265c);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.docs-guide-step__text a:hover {
    color: #ff31d2;
}

.docs-guide-step__dims {
    margin: 8px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(93, 190, 255, 0.12);
    font-size: 0.875rem;
    line-height: 1.5;
}

.docs-guide-step__dims code {
    font-family: 'Inter', monospace;
    font-size: 0.8125rem;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
}

.docs-guide-step__figure {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(76, 46, 139, 0.08);
    background: #f8f9fc;
}

.docs-guide-step__figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.docs-guide-substeps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 8px;
    padding-left: 0;
    list-style: none;
}

.docs-guide-substep {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 189, 67, 0.08);
    border: 1px solid rgba(255, 189, 67, 0.25);
}

.docs-guide-substep__label {
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-darkpurple, #2c123b);
}

.docs-guide-callout {
    margin: 0;
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.25);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.docs-guide-callout strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.docs-list {
    margin: 12px 0 20px;
    padding-left: 1.25rem;
    line-height: 1.55;
}

.docs-list li {
    margin-bottom: 8px;
}

.docs-note {
    margin: 16px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(76, 46, 139, 0.06);
    border: 1px solid rgba(76, 46, 139, 0.12);
    line-height: 1.5;
}

.docs-note code {
    font-size: 0.9em;
}

/* Compatibility reference (text-only) */
.docs-compat-block {
    margin-bottom: 40px;
    padding: 28px 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(76, 46, 139, 0.1);
    box-shadow: 0 10px 32px rgba(44, 18, 59, 0.06);
}

.docs-compat-block--featured {
    border-color: rgba(187, 104, 255, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(187, 104, 255, 0.06) 100%);
}

.docs-compat-block__title {
    margin: 0 0 14px;
    font-size: 1.5rem;
}

.docs-compat-block__text {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.6;
}

.docs-compat-block__text:last-child {
    margin-bottom: 0;
}

.docs-compat-block__text a {
    color: var(--color-darkpurple-medium, #48265c);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.docs-compat-block__text a:hover {
    color: #ff31d2;
}

.docs-compat-software {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-compat-software__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(44, 18, 59, 0.04);
    border: 1px solid rgba(76, 46, 139, 0.08);
}

.docs-compat-software__name {
    margin: 0;
}

.docs-compat-software__badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.docs-compat-software__badge--full {
    background: rgba(93, 255, 239, 0.22);
    color: #0d7a72;
}

.docs-compat-software__badge--partial {
    background: rgba(255, 189, 67, 0.22);
    color: #8a5a12;
}

.docs-compat-tips {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1.6;
}

.docs-events-table-wrap {
    margin: 0 0 18px;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(76, 46, 139, 0.1);
}

.docs-events-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.6);
}

.docs-events-table th,
.docs-events-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(76, 46, 139, 0.08);
}

.docs-events-table th {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-darkpurple, #2c123b);
    background: rgba(187, 104, 255, 0.08);
}

.docs-events-table tbody tr:last-child td {
    border-bottom: none;
}

.docs-events-table code {
    font-family: 'Inter', monospace;
    font-size: 0.8125rem;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(44, 18, 59, 0.06);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .docs-title {
        font-size: 1.8rem;
    }

    .docs-guide-phase__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-guide-step {
        padding: 18px;
    }
}
