/* Styles scoped to the documentation list page */

.docs-list-shell {
    background: linear-gradient(180deg, #0A1628 0%, #1A2F4F 50%, #0A1628 100%);
    min-height: 100vh;
}

.docs-hero-icon {
    box-shadow: 0 12px 32px rgba(38, 208, 168, 0.25);
}

.docs-card[data-color="teal"] {
    --docs-accent: #26D0A8;
    --docs-accent-soft: rgba(38, 208, 168, 0.15);
    --docs-accent-shadow: rgba(38, 208, 168, 0.35);
}

.docs-card[data-color="blue"] {
    --docs-accent: #3498DB;
    --docs-accent-soft: rgba(52, 152, 219, 0.16);
    --docs-accent-shadow: rgba(52, 152, 219, 0.32);
}

.docs-card[data-color="yellow"] {
    --docs-accent: #F3C63F;
    --docs-accent-soft: rgba(243, 198, 63, 0.16);
    --docs-accent-shadow: rgba(243, 198, 63, 0.32);
}

.docs-card[data-color="purple"] {
    --docs-accent: #9B59B6;
    --docs-accent-soft: rgba(155, 89, 182, 0.16);
    --docs-accent-shadow: rgba(155, 89, 182, 0.32);
}

.docs-card[data-color="red"] {
    --docs-accent: #E63946;
    --docs-accent-soft: rgba(230, 57, 70, 0.16);
    --docs-accent-shadow: rgba(230, 57, 70, 0.32);
}

.docs-card[data-color="orange"] {
    --docs-accent: #F29B38;
    --docs-accent-soft: rgba(242, 155, 56, 0.16);
    --docs-accent-shadow: rgba(242, 155, 56, 0.32);
}

.docs-card[data-color="cyan"] {
    --docs-accent: #26C6DA;
    --docs-accent-soft: rgba(38, 198, 218, 0.16);
    --docs-accent-shadow: rgba(38, 198, 218, 0.32);
}

.docs-card {
    background: #1A2F4F;
    border: 1px solid #2C4868;
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
    box-shadow:
        inset 0 6px 0 var(--docs-accent, #26D0A8),
        0 20px 60px rgba(12, 20, 35, 0.45);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.docs-card:hover {
    border-color: var(--docs-accent, #26D0A8);
    box-shadow:
        inset 0 6px 0 var(--docs-accent, #26D0A8),
        0 20px 60px rgba(12, 20, 35, 0.55),
        0 0 0 1px rgba(38, 208, 168, 0.15);
    transform: translateY(-1px);
}

.docs-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--docs-accent, #26D0A8);
    color: #fff;
    box-shadow: 0 14px 32px var(--docs-accent-shadow, rgba(38, 208, 168, 0.35));
}

.docs-card-count {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--docs-accent, #26D0A8);
}

.docs-card-arrow {
    width: 20px;
    height: 20px;
    color: #8B9CB6;
    transition: transform 150ms ease, color 150ms ease;
    transform: rotate(-90deg);
}

[data-accordion] .docs-card-arrow.-rotate-90 {
    transform: rotate(-90deg);
}

[data-accordion] .docs-card-arrow.rotate-0 {
    transform: rotate(0deg);
}

.docs-card:hover .docs-card-arrow {
    color: var(--docs-accent, #26D0A8);
}

.docs-card-children {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.docs-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #0A1628;
    border: 1px solid #2C4868;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.docs-child:hover {
    border-color: var(--docs-accent, #26D0A8);
    box-shadow: 0 10px 30px rgba(12, 20, 35, 0.35);
    transform: translateY(-1px);
}

.docs-child-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--docs-accent-soft, rgba(38, 208, 168, 0.15));
    color: var(--docs-accent, #26D0A8);
}

.docs-child-arrow {
    width: 18px;
    height: 18px;
    color: #8B9CB6;
    transition: transform 150ms ease, color 150ms ease;
}

.docs-child:hover .docs-child-arrow {
    color: var(--docs-accent, #26D0A8);
    transform: translateX(2px);
}

.docs-cta {
    margin-top: 2rem;
    background: linear-gradient(90deg, #26D0A8 0%, #00897B 100%);
    border-radius: 18px;
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: 0 22px 60px rgba(0, 137, 123, 0.35);
}

.docs-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.docs-cta-icon svg {
    color: #ffffff;
}

.docs-cta-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.docs-cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.docs-cta-button {
    margin-top: 4px;
    background: #ffffff;
    color: #0F1F37;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(7, 17, 31, 0.35);
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.docs-cta-button:hover,
.docs-cta-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(7, 17, 31, 0.45);
    outline: none;
}

.docs-cta-button:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .docs-cta {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }

    .docs-cta-text {
        text-align: left;
    }
}
