/**
 * DGS Featured CTA Block - Frontend Styles
 */

/* Block container */
.dgs-featured-cta {
    padding: var(--space-xxl, 4rem) var(--space-xl, 2rem);
}

/* Border radius variants */
.dgs-featured-cta.border-radius-small {
    border-radius: var(--radius, 1rem);
}

.dgs-featured-cta.border-radius-medium {
    border-radius: var(--radius-l, 1.5rem);
}

.dgs-featured-cta.border-radius-large {
    border-radius: var(--radius-xl, 2.25rem);
}

.dgs-featured-cta.border-radius-xlarge {
    border-radius: var(--radius-xxl, 3.375rem);
}

/* Color scheme backgrounds - using ultra-light variants */
.dgs-featured-cta.color-scheme-primary {
    background-color: var(--primary-ultra-light);
}

.dgs-featured-cta.color-scheme-secondary {
    background-color: var(--secondary-ultra-light);
}

.dgs-featured-cta.color-scheme-accent {
    background-color: var(--accent-ultra-light);
}

.dgs-featured-cta.color-scheme-neutral {
    background-color: var(--neutral-ultra-light);
}

.dgs-featured-cta.color-scheme-warning {
    background-color: var(--warning-ultra-light);
}

/* No color scheme - no background */
.dgs-featured-cta.color-scheme-none {
    background-color: transparent;
}

/* Main container - two column layout */
.dgs-featured-cta__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl, 4rem);
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Content area (left side) */
.dgs-featured-cta__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-l);
}

/* Text wrapper for heading and description */
.dgs-featured-cta__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-s, 1.5rem);
}

.dgs-featured-cta__heading {
    font-size: var(--h1, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--text, #000000);
}

.dgs-featured-cta__description {
    font-size: var(--text-l, 1.25rem);
    line-height: 1.6;
    color: var(--text, #000000);
}

/* CTA Button */
.dgs-featured-cta__button {
    display: inline-block;
    padding: var(--space-m, 1rem) var(--space-xl, 2rem);
    background: var(--black, #000000);
    color: var(--white, #ffffff);
    border-radius: var(--radius-l, 1.5rem);
    font-size: var(--text-m, 1rem);
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    align-self: flex-start;
}

.dgs-featured-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

/* Color scheme variants for CTA button - using dark variants */
.dgs-featured-cta.color-scheme-primary .dgs-featured-cta__button {
    background: var(--primary-dark);
}

.dgs-featured-cta.color-scheme-secondary .dgs-featured-cta__button {
    background: var(--secondary-dark);
}

.dgs-featured-cta.color-scheme-accent .dgs-featured-cta__button {
    background: var(--accent-dark);
}

.dgs-featured-cta.color-scheme-neutral .dgs-featured-cta__button {
    background: var(--neutral-dark);
}

.dgs-featured-cta.color-scheme-warning .dgs-featured-cta__button {
    background: var(--warning-dark);
}

/* Editor-only button (non-clickable) */
.dgs-featured-cta__button--editor {
    cursor: default;
    pointer-events: none;
}

/* Sidebar area (right side) */
.dgs-featured-cta__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-l, 2rem);
}

.dgs-featured-cta__learn-more-label {
    font-size: var(--text-l, 1.25rem);
    font-weight: 600;
    color: var(--text, #000000);
}

/* Post list */
.dgs-featured-cta__post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dgs-featured-cta__post-item {
    border-bottom: 1px solid var(--neutral-light, #e5e5e5);
}

.dgs-featured-cta__post-item:last-child {
    border-bottom: none;
}

.dgs-featured-cta__post-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-m, 1.25rem);
    text-decoration: none;
    color: var(--text, #000000);
    transition: all 0.2s ease;
    gap: var(--space-m, 1rem);
}

.dgs-featured-cta__post-link:hover {
    color: var(--primary-dark, #4338ca);
}

/* Color scheme variants for post link hover */
.dgs-featured-cta.color-scheme-primary .dgs-featured-cta__post-link:hover {
    color: var(--primary-dark);
}

.dgs-featured-cta.color-scheme-secondary .dgs-featured-cta__post-link:hover {
    color: var(--secondary-dark);
}

.dgs-featured-cta.color-scheme-accent .dgs-featured-cta__post-link:hover {
    color: var(--accent-dark);
}

.dgs-featured-cta.color-scheme-neutral .dgs-featured-cta__post-link:hover {
    color: var(--neutral-dark);
}

.dgs-featured-cta.color-scheme-warning .dgs-featured-cta__post-link:hover {
    color: var(--warning-dark);
}

.dgs-featured-cta.color-scheme-none .dgs-featured-cta__post-link:hover {
    color: var(--primary-dark);
}

.dgs-featured-cta__post-link:hover .dgs-featured-cta__arrow {
    transform: translateX(4px);
}

.dgs-featured-cta__post-title {
    font-size: var(--text-l, 1.25rem);
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.dgs-featured-cta__arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dgs-featured-cta__container {
        grid-template-columns: 1fr;
        gap: var(--space-xl, 2rem);
    }

    .dgs-featured-cta__heading {
        font-size: var(--h2, 2.25rem);
    }
}

@media (max-width: 768px) {
    .dgs-featured-cta {
        padding: var(--space-xl, 2rem) var(--space-l, 1.5rem);
    }

    .dgs-featured-cta__heading {
        font-size: var(--h3, 1.875rem);
    }

    .dgs-featured-cta__description {
        font-size: var(--text-m, 1rem);
    }

    .dgs-featured-cta__post-title {
        font-size: var(--text-m, 1rem);
    }
}
