/**
 * Card Block - Frontend Styles
 * 
 * Reuses existing theme styles from apoie.css
 * Adds support for borderless variant
 * 
 * @package Ably_Blocks
 */

.ap-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--semantics-colors-border-subtle, #e0e0e0);
    border-radius: 12px;
    padding: 32px 24px;
    background-color: var(--semantics-colors-fill-neutral, #fff);
}

.ap-card--no-border {
    border: none;
    padding: 0;
    background-color: transparent;
}

.ap-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--semantics-colors-fill-accent-petunia, #f5f0ff);
    color: var(--semantics-colors-fill-accent-purpura, #6d28d9);
    font-size: 24px;
    flex-shrink: 0;
}

.ap-card__title {
    font-family: var(--typography-font-family-heading, 'Poppins', sans-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--semantics-colors-text-primary, #1a1a1a);
    margin: 0;
}

.ap-card__desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--semantics-colors-text-secondary, #4a4a4a);
    margin: 0;
}

.ap-card__desc p {
    margin-bottom: 12px;
}

.ap-card__desc p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .ap-card {
        padding: 24px 20px;
    }
    
    .ap-card--no-border {
        padding: 0;
    }
    
    .ap-card__icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .ap-card__title {
        font-size: 18px;
    }
    
    .ap-card__desc {
        font-size: 14px;
    }
}
