/**
 * Signposts Block Styles
 *
 * @package Bucksalc
 */

/* Signposts Container */
.bucksalc-signposts {
    margin-bottom: 2rem;
}

/* Signpost Card */
.signpost-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all var(--transition-speed, 0.3s) ease;
    height: 100%;
}

.signpost-card.rounded {
    border-radius: 8px;
}

.signpost-card.has-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.signpost-card.has-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.08);
}

.signpost-card.is-clickable {
    cursor: pointer;
    position: relative;
}

/* Card Media (Image or Icon) */
.signpost-card-media {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #f3f4f6;
}

.signpost-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.signpost-card-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary, #2E2766), var(--color-secondary, #E67E23));
}

.signpost-card-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: white;
}

/* Card Body */
.signpost-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.signpost-card-title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    color: inherit;
}

.signpost-card-content {
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    color: inherit;
    opacity: 0.9;
}

.signpost-card-content p {
    margin: 0 0 0.75rem 0;
}

.signpost-card-content p:last-child {
    margin-bottom: 0;
}

/* Card Footer / Link */
.signpost-card-footer {
    margin-top: auto;
}

/* Clickable Card Overlay */
.signpost-card-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}

.signpost-card-overlay-link:focus {
    outline: 2px solid var(--color-primary, #2E2766);
    outline-offset: -2px;
}

/* Ensure card content is above overlay link */
.is-clickable .signpost-card-body {
    position: relative;
    z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .signpost-card-title {
        font-size: 1.125rem;
    }

    .signpost-card-body {
        padding: 1.25rem;
    }

    .signpost-card-content {
        font-size: 0.875rem;
    }

    .signpost-card-icon .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .signpost-card-title {
        font-size: 1rem;
    }

    .signpost-card-body {
        padding: 1rem;
    }

    .signpost-card-link {
        width: 100%;
        text-align: center;
    }
}

/* Disable animations if requested */
.disable-animations .signpost-card {
    transition: none !important;
}

.disable-animations .signpost-card.has-hover:hover {
    transform: none;
}
