/**
 * Facebook Ad Preview Styles
 * Accurate reproduction of Facebook Feed, Story, Carousel & Right Column ads
 */

/* =============================================================================
   CSS VARIABLES - Facebook Colors
   ============================================================================= */

:root {
    --fb-bg: #ffffff;
    --fb-secondary-bg: #F0F2F5;
    --fb-text-primary: #050505;
    --fb-text-secondary: #65676B;
    --fb-text-link: #216FDB;
    --fb-border: #CED0D4;
    --fb-blue: #1877F2;
    --fb-separator: #CED0D4;
    --fb-link-card-bg: #F0F2F5;
    --fb-cta-bg: #E4E6EB;
    --fb-cta-text: #050505;
    --fb-reaction-like: #1877F2;
    --fb-reaction-love: #F33E58;
    --fb-reaction-haha: #F7B125;
    --fb-reaction-wow: #F7B125;
    --fb-reaction-sad: #F7B125;
    --fb-reaction-angry: #E9710F;
}

/* =============================================================================
   FEED AD - CONTAINER
   ============================================================================= */

.fb-ad-preview-feed {
    max-width: 500px;
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--fb-text-primary);
    overflow: hidden;
}

/* =============================================================================
   FEED AD - HEADER
   ============================================================================= */

.fb-ad-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
}

.fb-ad-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fb-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.fb-ad-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-ad-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.fb-ad-page-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--fb-text-primary);
    line-height: 20px;
}

.fb-ad-sponsored {
    font-size: 13px;
    color: var(--fb-text-secondary);
    line-height: 16px;
}

.fb-ad-globe {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.fb-ad-globe svg {
    display: block;
}

.fb-ad-menu {
    color: var(--fb-text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.fb-ad-menu svg {
    display: block;
}

/* =============================================================================
   FEED AD - PRIMARY TEXT (above image)
   ============================================================================= */

.fb-ad-primary-text {
    padding: 0 16px 12px;
    font-size: 15px;
    line-height: 20px;
    color: var(--fb-text-primary);
}

.fb-ad-caption--placeholder {
    color: var(--fb-text-secondary);
    font-style: italic;
}

.fb-ad-see-more {
    color: var(--fb-text-secondary);
    cursor: pointer;
}

/* =============================================================================
   FEED AD - IMAGE AREA
   ============================================================================= */

.fb-ad-image {
    width: 100%;
    position: relative;
    background: #e4e6eb;
    overflow: hidden;
}

/* Square format (1:1) */
.fb-ad-image--square {
    aspect-ratio: 1 / 1;
}

@supports not (aspect-ratio: 1 / 1) {
    .fb-ad-image--square {
        padding-bottom: 100%;
    }
}

/* Portrait format (4:5) */
.fb-ad-image--portrait {
    aspect-ratio: 4 / 5;
}

@supports not (aspect-ratio: 4 / 5) {
    .fb-ad-image--portrait {
        padding-bottom: 125%;
    }
}

/* Landscape format (1.91:1) */
.fb-ad-image--landscape {
    aspect-ratio: 1.91 / 1;
}

@supports not (aspect-ratio: 1.91 / 1) {
    .fb-ad-image--landscape {
        padding-bottom: 52.4%;
    }
}

.fb-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.fb-ad-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #aaaaaa;
    font-size: 48px;
}

/* =============================================================================
   FEED AD - LINK CARD (gray background)
   ============================================================================= */

.fb-ad-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--fb-link-card-bg);
    gap: 12px;
}

.fb-ad-link-card-text {
    flex: 1;
    min-width: 0;
}

.fb-ad-link-domain {
    font-size: 13px;
    color: var(--fb-text-secondary);
    text-transform: uppercase;
    line-height: 16px;
}

.fb-ad-link-headline {
    font-size: 17px;
    font-weight: 600;
    color: var(--fb-text-primary);
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fb-ad-link-headline--placeholder {
    color: var(--fb-text-secondary);
    font-style: italic;
    font-weight: 400;
}

.fb-ad-link-description {
    font-size: 13px;
    color: var(--fb-text-secondary);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-ad-cta-button {
    background: var(--fb-cta-bg);
    color: var(--fb-cta-text);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

/* =============================================================================
   FEED AD - REACTIONS BAR
   ============================================================================= */

.fb-ad-reactions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 15px;
    color: var(--fb-text-secondary);
    border-bottom: 1px solid var(--fb-separator);
}

.fb-ad-reactions-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-ad-reactions-icons {
    display: flex;
    /* Overlap reaction icons like Facebook */
}

.fb-reaction-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--fb-bg);
    margin-right: -4px;
    position: relative;
    line-height: 1;
}

.fb-reaction-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.fb-ad-reactions-count {
    margin-left: 8px;
    font-size: 15px;
    color: var(--fb-text-secondary);
}

.fb-ad-social-counts {
    display: flex;
    gap: 4px;
    font-size: 15px;
    color: var(--fb-text-secondary);
}

.fb-ad-social-separator {
    margin: 0 2px;
}

/* =============================================================================
   FEED AD - ACTIONS BAR (Like · Comment · Share)
   ============================================================================= */

.fb-ad-actions {
    display: flex;
    padding: 4px 16px;
    border-top: 1px solid var(--fb-separator);
}

.fb-ad-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--fb-text-secondary);
    cursor: pointer;
    border-radius: 4px;
}

.fb-ad-action:hover {
    background: var(--fb-secondary-bg);
}

.fb-ad-action-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.fb-ad-action-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* =============================================================================
   STORY AD - CONTAINER
   ============================================================================= */

.fb-ad-preview-story {
    position: relative;
    width: 360px;
    height: 640px;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #ffffff;
}

/* =============================================================================
   STORY AD - PROGRESS BARS
   ============================================================================= */

.fb-story-progress {
    display: flex;
    gap: 4px;
    padding: 8px 8px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.fb-story-progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.fb-story-progress-bar--active {
    background: rgba(255, 255, 255, 0.9);
}

/* =============================================================================
   STORY AD - HEADER (OVERLAY)
   ============================================================================= */

.fb-story-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 10;
}

.fb-ad-avatar--story {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    flex-shrink: 0;
}

.fb-ad-avatar--story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-story-header-info {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.fb-story-page-name {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.fb-story-sponsored {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.fb-story-close {
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* =============================================================================
   STORY AD - IMAGE
   ============================================================================= */

.fb-story-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.fb-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-story-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 48px;
}

/* =============================================================================
   STORY AD - CTA
   ============================================================================= */

.fb-story-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.fb-story-cta-arrow {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.fb-story-cta-text {
    display: inline-block;
    background: #ffffff;
    color: var(--fb-text-primary);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* =============================================================================
   RIGHT COLUMN AD
   ============================================================================= */

.fb-ad-right-column {
    width: 254px;
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--fb-text-primary);
}

.fb-ad-rc-image {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    position: relative;
    background: #e4e6eb;
    overflow: hidden;
}

@supports not (aspect-ratio: 1.91 / 1) {
    .fb-ad-rc-image {
        padding-bottom: 52.4%;
    }
}

.fb-ad-rc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.fb-ad-rc-text {
    padding: 8px 12px;
}

.fb-ad-rc-headline {
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: var(--fb-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fb-ad-rc-headline--placeholder {
    color: var(--fb-text-secondary);
    font-style: italic;
    font-weight: 400;
}

.fb-ad-rc-description {
    font-size: 12px;
    color: var(--fb-text-secondary);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-ad-rc-sponsored {
    font-size: 12px;
    color: var(--fb-text-secondary);
    margin-top: 4px;
}

/* =============================================================================
   CAROUSEL PREVIEW
   ============================================================================= */

.fb-carousel-container {
    position: relative;
}

.fb-carousel-track {
    display: flex;
    overflow: hidden;
}

.fb-carousel-card {
    flex: 0 0 100%;
    transition: transform 0.3s ease;
}

.fb-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--fb-text-primary);
    z-index: 5;
    padding: 0;
    line-height: 1;
}

.fb-carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.fb-carousel-arrow--left {
    left: 8px;
}

.fb-carousel-arrow--right {
    right: 8px;
}

.fb-carousel-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

.fb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
}

.fb-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fb-border);
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.fb-carousel-dot--active {
    background: var(--fb-blue);
}

/* Carousel card link card (per-card below each card image) */
.fb-carousel-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--fb-link-card-bg);
    gap: 8px;
}

.fb-carousel-card-headline {
    font-size: 15px;
    font-weight: 600;
    color: var(--fb-text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-carousel-card-cta {
    background: var(--fb-cta-bg);
    color: var(--fb-cta-text);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

/* Carousel form cards */
.fb-carousel-card-item {
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-carousel-card-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.fb-carousel-card-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}

.fb-carousel-card-info {
    flex: 1;
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-carousel-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.fb-carousel-card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    padding: 2px 6px;
}

.fb-carousel-card-upload-btn {
    color: var(--fb-blue);
}

.fb-carousel-card-remove-btn {
    color: #e74c3c;
}

.fb-carousel-add-card {
    width: 100%;
    margin-top: 4px;
}

/* =============================================================================
   FORM FIELDS (same pattern as Instagram)
   ============================================================================= */

.ad-form .form-group {
    margin-bottom: 20px;
}

.ad-form .form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--color-text, #1a2e1a);
}

.ad-form .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fb-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--fb-text-primary);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ad-form .form-input:focus {
    outline: none;
    border-color: var(--fb-blue);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.ad-form textarea.form-input {
    resize: vertical;
    min-height: 72px;
}

.ad-form select.form-input {
    appearance: auto;
    cursor: pointer;
}

.ad-form .form-hint {
    display: block;
    font-size: 12px;
    color: var(--color-text-tertiary, #566a5e);
    margin-top: 4px;
}

.ad-form .input-with-counter {
    position: relative;
}

.ad-form .input-with-counter input,
.ad-form .input-with-counter textarea {
    padding-right: 70px;
}

.ad-form .input-with-counter .char-counter {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--fb-text-secondary);
    pointer-events: none;
}

.ad-form .input-with-counter textarea ~ .char-counter {
    top: auto;
    bottom: 8px;
    transform: none;
}

/* =============================================================================
   PREVIEW AREA
   ============================================================================= */

#preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-wrapper {
    overflow: hidden;
}

#preview-format-label {
    display: inline-block;
    background: var(--fb-blue);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.preview-format-info {
    text-align: center;
    margin-bottom: 12px;
}

/* =============================================================================
   PHONE FRAME OVERRIDE FOR FACEBOOK STORY
   ============================================================================= */

.phone-frame .phone-screen {
    padding: 0;
}

/* =============================================================================
   FORMAT CARDS
   ============================================================================= */

.fb-format-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fb-format-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
    padding: 10px 10px;
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.fb-format-card:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.fb-format-card.active {
    border: 2px solid var(--fb-blue);
    background: rgba(24, 119, 242, 0.05);
    box-shadow: 0 0 0 1px rgba(24, 119, 242, 0.1);
}

.fb-format-card-icon {
    color: var(--fb-text-secondary);
}

.fb-format-card.active .fb-format-card-icon {
    color: var(--fb-blue);
}

.fb-format-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-text-primary);
    line-height: 1;
}

.fb-format-card-ratio {
    font-size: 11px;
    color: var(--fb-text-secondary);
    line-height: 1;
}

.fb-format-card.active .fb-format-card-label {
    color: var(--fb-blue);
}

.fb-format-card.active .fb-format-card-ratio {
    color: var(--fb-blue);
}

/* =============================================================================
   IMAGE UPLOAD ZONE
   ============================================================================= */

.fb-upload-zone {
    border: 2px dashed var(--fb-border);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.fb-upload-zone:hover,
.fb-upload-zone.drag-over {
    border-color: var(--fb-blue);
    background: rgba(24, 119, 242, 0.03);
}

.fb-upload-zone p {
    margin: 0;
    font-size: 14px;
    color: var(--fb-text-primary);
}

.fb-upload-link {
    color: var(--fb-blue);
    cursor: pointer;
    font-weight: 600;
}

.fb-upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    margin-top: 8px;
}

.fb-upload-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.fb-upload-filename {
    flex: 1;
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-upload-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 4px 8px;
    font-family: inherit;
    flex-shrink: 0;
    margin-left: auto;
}

.form-divider {
    text-align: center;
    font-size: 12px;
    color: var(--fb-text-secondary);
    margin: 10px 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--fb-border);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* Sample images */
.fb-sample-images {
    margin-top: 8px;
}

.fb-sample-list {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.fb-sample-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 150ms ease, transform 150ms ease;
}

.fb-sample-img:hover {
    border-color: var(--fb-blue);
    transform: scale(1.05);
}

/* =============================================================================
   REACTION PICKER (form)
   ============================================================================= */

.fb-reaction-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.fb-reaction-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--fb-border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
    padding: 0;
}

.fb-reaction-btn svg {
    display: block;
}

.fb-reaction-btn:hover {
    transform: scale(1.1);
    border-color: #999;
}

.fb-reaction-btn.active {
    border-color: var(--fb-blue);
    background: rgba(24, 119, 242, 0.08);
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.15);
}

.fb-reaction-btn[data-reaction="like"].active { border-color: var(--fb-reaction-like); background: rgba(24, 119, 242, 0.08); box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.15); }
.fb-reaction-btn[data-reaction="love"].active { border-color: var(--fb-reaction-love); background: rgba(243, 62, 88, 0.08); box-shadow: 0 0 0 2px rgba(243, 62, 88, 0.15); }
.fb-reaction-btn[data-reaction="haha"].active { border-color: var(--fb-reaction-haha); background: rgba(247, 177, 37, 0.08); box-shadow: 0 0 0 2px rgba(247, 177, 37, 0.15); }
.fb-reaction-btn[data-reaction="wow"].active { border-color: var(--fb-reaction-wow); background: rgba(247, 177, 37, 0.08); box-shadow: 0 0 0 2px rgba(247, 177, 37, 0.15); }
.fb-reaction-btn[data-reaction="sad"].active { border-color: var(--fb-reaction-sad); background: rgba(247, 177, 37, 0.08); box-shadow: 0 0 0 2px rgba(247, 177, 37, 0.15); }
.fb-reaction-btn[data-reaction="angry"].active { border-color: var(--fb-reaction-angry); background: rgba(233, 113, 15, 0.08); box-shadow: 0 0 0 2px rgba(233, 113, 15, 0.15); }

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 768px) {
    .fb-ad-preview-feed {
        max-width: 100%;
    }

    .fb-format-cards {
        width: 100%;
    }

    .fb-format-card {
        flex: 1;
        min-width: 0;
    }

    .fb-ad-right-column {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 400px) {
    .fb-ad-preview-story {
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
    }

    @supports not (aspect-ratio: 9 / 16) {
        .fb-ad-preview-story {
            height: 0;
            padding-bottom: 177.78%;
        }
    }

    .fb-ad-link-card {
        flex-direction: column;
        align-items: stretch;
    }

    .fb-ad-cta-button {
        margin-top: 8px;
        text-align: center;
    }
}
