/* ==========================================
   Home Page Features Links Styles
   ========================================== */

/* Clickable Feature Cards */
.feature-card--clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card--clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-card--clickable::after {
    content: '→';
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-primary, #6366f1);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-card--clickable:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Features CTA Block */
.features-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, var(--color-primary-light, #eef2ff) 0%, var(--color-bg-secondary, #f8f9fa) 100%);
    border-radius: 16px;
    border: 1px solid var(--color-border, #e5e7eb);
}

.features-cta__content {
    flex: 1;
}

.features-cta__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text, #1a1a1a);
}

.features-cta__description {
    font-size: 1rem;
    color: var(--color-text-secondary, #666);
    margin: 0;
}

/* Sticky CTA Bar */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sticky-cta-bar--visible {
    transform: translateY(0);
}

.sticky-cta-bar--closing {
    transform: translateY(100%);
}

.sticky-cta-bar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.sticky-cta-bar__text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.sticky-cta-bar__icon {
    flex-shrink: 0;
    color: var(--color-primary, #6366f1);
    width: 24px;
    height: 24px;
}

.sticky-cta-bar__message {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text, #1a1a1a);
}

.sticky-cta-bar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sticky-cta-bar__button {
    flex-shrink: 0;
}

.sticky-cta-bar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--color-text-secondary, #666);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.sticky-cta-bar__close:hover {
    background-color: var(--color-bg-secondary, #f3f4f6);
    color: var(--color-text, #1a1a1a);
}

.sticky-cta-bar__close:active {
    transform: scale(0.95);
}

.sticky-cta-bar__close svg {
    width: 20px;
    height: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .feature-card--clickable::after {
        bottom: 1rem;
        right: 1rem;
        font-size: 1.25rem;
    }
    
    .features-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .features-cta__title {
        font-size: 1.25rem;
    }
    
    .features-cta__description {
        font-size: 0.9375rem;
    }
    
    .sticky-cta-bar {
        padding: 0.5rem 0;
    }
    
    .sticky-cta-bar__content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        padding: 0;
        position: relative;
    }
    
    .sticky-cta-bar__text {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        padding-right: 2rem;
    }
    
    .sticky-cta-bar__icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .sticky-cta-bar__message {
        font-size: 0.875rem;
        line-height: 1.3;
        text-align: left;
    }
    
    .sticky-cta-bar__actions {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .sticky-cta-bar__button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .sticky-cta-bar__button svg {
        width: 14px;
        height: 14px;
    }
    
    .sticky-cta-bar__close {
        position: absolute;
        top: 0;
        right: 0;
        width: 32px;
        height: 32px;
    }
    
    .sticky-cta-bar__close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .features-cta {
        padding: 1.5rem 1rem;
    }
    
    .features-cta__title {
        font-size: 1.125rem;
    }
    
    .sticky-cta-bar {
        padding: 0.5rem 0;
    }
    
    .sticky-cta-bar__icon {
        width: 16px;
        height: 16px;
    }
    
    .sticky-cta-bar__message {
        font-size: 0.8125rem;
    }
    
    .sticky-cta-bar__button {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .sticky-cta-bar__button svg {
        width: 12px;
        height: 12px;
    }
}
