/**
 * Alert/Hint Block Styles - Light Version with Bootstrap Variables
 */

.docsy-alert-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.docsy-alert-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Alert Icon */
.docsy-alert-block .alert-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.docsy-alert-block .alert-icon i {
    font-size: 18px;
    line-height: 1;
}

/* Alert Content */
.docsy-alert-block .alert-content {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.docsy-alert-block .alert-content p {
    margin: 0;
}

.docsy-alert-block .alert-content p:not(:last-child) {
    margin-bottom: 0.5rem;
}

.docsy-alert-block .alert-content strong {
    font-weight: 600;
}

/* Success Alert */
.docsy-alert-block.alert-success {
    background: var(--bs-success-bg-subtle);
    border-left-color: var(--bs-success);
    color: var(--bs-success-text-emphasis);
}

.docsy-alert-block.alert-success .alert-icon {
    color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), 0.15);
}

/* Info Alert */
.docsy-alert-block.alert-info {
    background: var(--bs-info-bg-subtle);
    border-left-color: var(--bs-info);
    color: var(--bs-info-text-emphasis);
}

.docsy-alert-block.alert-info .alert-icon {
    color: var(--bs-info);
    background: rgba(var(--bs-info-rgb), 0.15);
}

/* Warning Alert */
.docsy-alert-block.alert-warning {
    background: var(--bs-warning-bg-subtle);
    border-left-color: var(--bs-warning);
    color: var(--bs-warning-text-emphasis);
}

.docsy-alert-block.alert-warning .alert-icon {
    color: var(--bs-warning);
    background: rgba(var(--bs-warning-rgb), 0.15);
}

/* Danger Alert */
.docsy-alert-block.alert-danger {
    background: var(--bs-danger-bg-subtle);
    border-left-color: var(--bs-danger);
    color: var(--bs-danger-text-emphasis);
}

.docsy-alert-block.alert-danger .alert-icon {
    color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .docsy-alert-block {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .docsy-alert-block .alert-icon {
        width: 24px;
        height: 24px;
    }

    .docsy-alert-block .alert-icon i {
        font-size: 16px;
    }

    .docsy-alert-block .alert-content {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .docsy-alert-block {
        box-shadow: none;
        border: 1px solid currentColor;
        page-break-inside: avoid;
    }

    .docsy-alert-block:hover {
        transform: none;
    }
}

/* Accessibility */
.docsy-alert-block:focus-within {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}
