/**
 * Copyright © Aah. All rights reserved.
 * API Lab frontend - matches design from old static page
 */
.aah-apilab {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    margin: 20px 0 40px;
}

.aah-apilab__empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Category section */
.aah-apilab__category {
    margin-bottom: 40px;
}

.aah-apilab__category:last-child {
    margin-bottom: 0;
}

/* Category header - dark grey rounded bar with icon and text */
.aah-apilab__category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.aah-apilab__category-header .aah-apilab__category-line {
    flex: 1;
    height: 2px;
    background: #000;
    border-radius: 1px;
}
.aah-apilab__category-header .aah-apilab__category-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #2d2d2d;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.aah-apilab__category-header .aah-apilab__category-badge:before {
    background: #A31F36;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.aah-apilab__category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aah-apilab__category-icon svg {
    flex-shrink: 0;
}

.aah-apilab__category-title {
    font-size: 16px;
    font-weight: 700;
}

/* Card grid */
.aah-apilab__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .aah-apilab__card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .aah-apilab__card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.aah-apilab__card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.aah-apilab__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cecece;
    text-decoration: none;
}
.aah-apilab__card:hover .aah-apilab__card-title,
.aah-apilab__card:hover .aah-apilab__card-desc {
    text-decoration: underline;
}

/* Icon container - rounded square */
.aah-apilab__card-icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aah-apilab__card-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aah-apilab__card-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Card body */
.aah-apilab__card-body {
    flex: 1;
    min-width: 0;
}

.aah-apilab__card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    display: inline;
}

.aah-apilab__card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 8px;
    display: inline;
    margin-right: 5px;
}

.aah-apilab__card-tag {
    display: inline;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
}

.card-arrow {
    flex-shrink: 0;
    color: #a31f36;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.25s ease;
}

.aah-apilab__card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.cta-banner {
    background: #a31f36;
    border-radius: 20px;
    padding: 48px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 50px;
}
.cta-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #bf9c5f;
}

.cta-content {
    position: relative;
    z-index: 1;
}
.cta-banner h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-banner h2 span {
    color: #bf9c5f;
}
.cta-banner p {
    color: #fff;
    max-width: 800px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    background: #000;
    color: #fff;
}
.cta-btn:hover {
    background-color: #bf9c5f;
    color: #fff;
}
