/* Two Roads Contest - Promo Flyout */

.trbc-flyout {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 340px;
    max-height: calc(100vh - 40px);
    z-index: 9999;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.trbc-flyout--visible {
    transform: translateY(0);
    opacity: 1;
}

.trbc-flyout--hiding {
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    transition: transform 0.3s ease-in, opacity 0.2s ease-in;
}

/* Preview badge */
.trbc-flyout--preview::before {
    content: 'PREVIEW';
    position: absolute;
    top: -10px;
    left: -10px;
    background: #ffc72c;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 1;
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 0.5px;
}

/* Close button — double-ring for visibility on both light and dark images */
.trbc-flyout-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: background 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.trbc-flyout-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Image — cap height so tall/portrait images don't blow out the flyout */
.trbc-flyout-image {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

/* Content area */
.trbc-flyout-content {
    padding: 16px 20px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Headline */
.trbc-flyout-headline {
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    color: #00263a;
    margin: 0 0 8px;
    line-height: 1.2;
}

/* Body */
.trbc-flyout-body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    margin: 0 0 16px;
    line-height: 1.5;
}

.trbc-flyout-body p {
    margin: 0 0 8px;
}

.trbc-flyout-body p:last-child {
    margin-bottom: 0;
}

/* CTA button */
.trbc-flyout-cta {
    display: block;
    text-align: center;
    padding: 12px;
    background: #c8102e;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Source Sans Pro', sans-serif;
    transition: background 0.2s ease;
}

.trbc-flyout-cta:hover {
    background: #a50d24;
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 480px) {
    .trbc-flyout {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}
