/* TestFlight Beta Banner - High Impact Sticky Promotion */

.testflight-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 12px 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s ease;
}

.testflight-banner.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.testflight-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.testflight-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.testflight-icon svg {
    width: 20px;
    height: 20px;
    color: #000;
}

.testflight-text {
    flex: 1;
    min-width: 0;
}

.testflight-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.testflight-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.2;
}

.testflight-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.testflight-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffed4e 0%, #ffb700 100%);
}

.testflight-cta svg {
    width: 16px;
    height: 16px;
}

.testflight-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.testflight-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.testflight-close svg {
    width: 18px;
    height: 18px;
}

/* Adjust body padding when banner is visible */
body.testflight-banner-visible {
    padding-top: 60px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .testflight-banner {
        padding: 10px 12px;
        gap: 8px;
    }

    .testflight-icon {
        width: 32px;
        height: 32px;
    }

    .testflight-icon svg {
        width: 18px;
        height: 18px;
    }

    .testflight-title {
        font-size: 13px;
    }

    .testflight-subtitle {
        font-size: 11px;
    }

    .testflight-cta {
        padding: 6px 12px;
        font-size: 12px;
    }

    body.testflight-banner-visible {
        padding-top: 56px;
    }
}

@media (max-width: 480px) {
    .testflight-subtitle {
        display: none;
    }

    .testflight-cta span {
        display: none;
    }

    .testflight-cta {
        padding: 8px;
    }
}
