/**
 * Stripchat Affiliate Styles
 * Responsive affiliate banners, widgets, and popups
 */

:root {
    --stripchat-primary: #ff6b00;
    --stripchat-primary-hover: #ff8533;
    --stripchat-dark: #1a1a1a;
    --stripchat-light: #f8f9fa;
    --stripchat-border: rgba(255, 255, 255, 0.1);
    --stripchat-text: #333;
    --stripchat-text-light: #fff;
}

.stripchat-banner,
.stripchat-widget {
    position: relative;
    margin: 15px 0;
}

.stripchat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stripchat-link:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.stripchat-sidebar-300x250 {
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
}

.stripchat-banner-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    padding: 20px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--stripchat-border);
    position: relative;
    overflow: hidden;
}

.stripchat-banner-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.stripchat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    z-index: 1;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.live-text {
    color: #ff0000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stripchat-title {
    color: var(--stripchat-text-light);
    font-size: 20px;
    font-weight: 700;
    margin: 15px 0 8px;
    line-height: 1.2;
    z-index: 1;
}

.stripchat-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
    z-index: 1;
}

.stripchat-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--stripchat-primary);
    color: var(--stripchat-text-light);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
    z-index: 1;
}

.stripchat-link:hover .stripchat-cta {
    background: var(--stripchat-primary-hover);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.stripchat-cta i {
    transition: transform 0.3s ease;
}

.stripchat-link:hover .stripchat-cta i {
    transform: translateX(4px);
}

.stripchat-live-widget {
    background: var(--stripchat-dark);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--stripchat-border);
    margin: 20px 0;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stripchat-border);
}

.live-indicator-dot {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.widget-title {
    color: var(--stripchat-text-light);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.widget-content {
    position: relative;
}

.widget-preview {
    display: block;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.preview-item {
    position: relative;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--stripchat-border);
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.preview-placeholder i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
}

.preview-status {
    position: absolute;
    top: 6px;
    left: 6px;
}

.status-live {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-cta {
    background: var(--stripchat-primary);
    color: var(--stripchat-text-light);
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.stripchat-link:hover .widget-cta {
    background: var(--stripchat-primary-hover);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.stripchat-exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.exit-popup-content {
    position: relative;
    background: var(--stripchat-dark);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--stripchat-border);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.exit-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
}

.exit-popup-body {
    text-align: center;
}

.exit-popup-header {
    margin-bottom: 20px;
}

.live-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    margin-bottom: 15px;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.exit-popup-header h2 {
    color: var(--stripchat-text-light);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.exit-popup-text {
    margin-bottom: 30px;
}

.exit-popup-headline {
    color: var(--stripchat-text-light);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.exit-popup-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.exit-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exit-popup-cta {
    background: var(--stripchat-primary);
    color: var(--stripchat-text-light);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.exit-popup-cta:hover {
    background: var(--stripchat-primary-hover);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    text-decoration: none;
    color: var(--stripchat-text-light);
    transform: translateY(-2px);
}

.exit-popup-dismiss {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.exit-popup-dismiss:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .stripchat-sidebar-300x250 {
        display: none;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-item:nth-child(3) {
        display: none;
    }

    .exit-popup-content {
        padding: 30px 20px;
    }

    .exit-popup-header h2 {
        font-size: 24px;
    }

    .exit-popup-headline {
        font-size: 16px;
    }

    .stripchat-title {
        font-size: 18px;
    }

    .widget-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-item:nth-child(2) {
        display: none;
    }

    .exit-popup-content {
        width: 95%;
        padding: 25px 15px;
    }

    .exit-popup-header h2 {
        font-size: 20px;
    }

    .exit-popup-cta {
        padding: 14px 24px;
        font-size: 14px;
    }
}

.stripchat-menu-link {
    position: relative;
}

.stripchat-menu-link .fire-icon {
    margin-right: 5px;
    font-size: 14px;
}
