/* Dancing with Shadows Promotional Banner Styles */

.promotional-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 420px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #0f3460;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
    transition: all 0.3s ease;
    font-family: 'Bellefair', serif;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.promotional-banner.hidden {
    display: none;
}

.promotional-banner.dismissing {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.promo-logo {
    margin-bottom: 16px;
    text-align: center;
}

.promo-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Header and title removed - title is in the logo image */

.promo-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

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

.promo-subtitle {
    color: #a8b2d1;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Bellefair', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.promo-date {
    color: #a8b2d1;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.4;
    font-family: 'Bellefair', serif;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.promo-features li {
    color: #a8b2d1;
    font-size: 0.9rem;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-family: 'Bellefair', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.promo-features li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #e94560;
}

.promo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Bellefair', serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-btn-primary {
    background: #e94560;
    color: white;
}

.promo-btn-primary:hover {
    background: #d63651;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.promo-btn-secondary {
    background: transparent;
    color: #e94560;
    border: 1px solid #e94560;
}

.promo-btn-secondary:hover {
    background: rgba(233, 69, 96, 0.1);
    color: #fff;
    border-color: #fff;
}

.promo-btn-ghost {
    background: transparent;
    color: #666;
    border: none;
}

.promo-btn-ghost:hover {
    color: #a8b2d1;
}

/* Signup Form */
.promo-signup-form {
    display: none;
    margin-top: 16px;
    margin-bottom: 16px;
}

.promo-signup-form.active {
    display: block;
}

.promo-trust {
    color: #10b981;
    font-size: 0.75rem;
    margin: 8px 0 0 0;
    opacity: 0.85;
    font-style: italic;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-trust img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(41%) saturate(267%) hue-rotate(122deg) brightness(96%) contrast(89%);
}

.promo-email-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
}

.promo-email-input::placeholder {
    color: #666;
}

.promo-email-input:focus {
    outline: none;
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.08);
}

.promo-signup-buttons {
    display: flex;
    gap: 8px;
}

.promo-message {
    padding: 10px;
    margin-top: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: none;
}

.promo-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    display: block;
}

.promo-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .promotional-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        animation: slideUp 0.5s ease-out;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(100%);
            opacity: 0;
        }
    }
    
    .promo-actions {
        flex-direction: column;
    }
    
    .promo-btn {
        width: 100%;
        text-align: center;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 24px;
        min-height: 48px;
    }
    
    .promo-email-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        min-height: 48px;
    }
    
    .promo-signup-buttons {
        gap: 12px;
    }
    
    .promo-trust {
        font-size: 0.8rem;
        margin-top: 12px;
    }
    
    /* Better spacing on mobile */
    .promotional-banner {
        padding: 24px 20px 28px;
    }
    
    .promo-features {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .promotional-banner {
        background: linear-gradient(135deg, #0a0a0f 0%, #16213e 100%);
        border-color: #1e293b;
    }
}

/* Platform Icons */
.promo-platforms {
    margin-top: 20px;
    text-align: center;
}

.platform-label {
    color: #a8b2d1;
    font-size: 0.85rem;
    font-family: 'Bellefair', serif;
    opacity: 0.8;
    display: block;
    margin-bottom: 8px;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.platform-link {
    display: inline-block;
    text-decoration: none;
}

.platform-icon {
    width: 32px;
    height: 32px;
    fill: #a8b2d1;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.steam-icon:hover {
    fill: #66c0f4;
}

.itchio-icon:hover {
    fill: #fa5c5c;
}

/* Loading state */
.promo-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}