/* ===============================================
   EMBEDDED FEATURE SECTIONS STYLING
   Styles for loesung.html content in flip cards
   =============================================== */

.embedded-feature-section {
    width: 100%;
}

/* Scale down content to fit in card */
.embedded-feature-section .offers-ecosystem-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.embedded-feature-section .card {
    padding: var(--spacing-md);
    font-size: 0.9em;
}

/* Reduce spacing in embedded content */
.embedded-feature-section h3,
.embedded-feature-section .heading-3 {
    font-size: var(--font-size-heading-4);
    margin-bottom: var(--spacing-sm);
}

.embedded-feature-section h4,
.embedded-feature-section .heading-4 {
    font-size: var(--font-size-heading-5);
    margin-bottom: var(--spacing-xs);
}

.embedded-feature-section h5,
.embedded-feature-section .heading-5 {
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-xs);
}

.embedded-feature-section p,
.embedded-feature-section .body {
    font-size: var(--font-size-body-small);
    margin-bottom: var(--spacing-xs);
}

.embedded-feature-section ul,
.embedded-feature-section .package-card-features {
    font-size: var(--font-size-body-small);
    margin-bottom: var(--spacing-sm);
}

.embedded-feature-section .steps {
    margin-bottom: var(--spacing-sm);
}

.embedded-feature-section .step {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

/* Expandable sections */
.embedded-feature-section .card-expandable-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.embedded-feature-section .offers-ecosystem-card.expanded .card-expandable-section {
    max-height: 1000px;
}

.embedded-feature-section .card-expand-button {
    width: 100%;
    padding: var(--spacing-sm);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-body-small);
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    margin-top: var(--spacing-sm);
}

.embedded-feature-section .card-expand-button:hover {
    background: var(--color-surface-variant);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Scan-go timeline in embedded view */
.embedded-feature-section .scan-go-timeline {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.embedded-feature-section .scan-go-timeline img {
    max-height: 200px !important;
    width: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.embedded-feature-section .timeline-arrow {
    font-size: 20px;
}

/* Dividers */
.embedded-feature-section .offers-card-divider {
    margin: var(--spacing-md) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.embedded-feature-section .divider-line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.embedded-feature-section .divider-icon {
    color: var(--color-text-secondary);
    font-size: var(--font-size-heading-5);
}

/* Premium card embedded content - light text on dark background */
.flip-card-back[data-card="prime"] .embedded-feature-section {
    color: rgba(255, 255, 255, 0.9);
}

.flip-card-back[data-card="prime"] .embedded-feature-section .offers-ecosystem-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.flip-card-back[data-card="prime"] .embedded-feature-section .card {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.flip-card-back[data-card="prime"] .embedded-feature-section h3,
.flip-card-back[data-card="prime"] .embedded-feature-section h4,
.flip-card-back[data-card="prime"] .embedded-feature-section h5 {
    color: #FFD700;
}

.flip-card-back[data-card="prime"] .embedded-feature-section .text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .embedded-feature-section .scan-go-timeline {
        flex-direction: column;
    }

    .embedded-feature-section .timeline-arrow {
        display: none;
    }

    .embedded-feature-section .scan-go-timeline img {
        max-height: 250px !important;
    }
}