/**
 * Campaign Toast Notification Styles
 * Modern, minimal ve responsive tasarım
 */

/* Toast Container */
.campaign-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateX(500px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    cursor: pointer;
}

.campaign-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.campaign-toast.closing {
    transform: translateX(500px);
    opacity: 0;
}

/* Minimized State */
.campaign-toast.minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
}

.campaign-toast.minimized .campaign-toast-content {
    padding: 0;
    justify-content: center;
}

.campaign-toast.minimized .campaign-toast-text,
.campaign-toast.minimized .campaign-toast-actions,
.campaign-toast.minimized .campaign-toast-progress {
    display: none;
}

.campaign-toast.minimized .campaign-toast-icon {
    margin: 0;
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.campaign-toast.minimized .campaign-toast-icon i {
    animation: pulse 2s ease-in-out infinite;
}

/* Toast Content */
.campaign-toast-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
    position: relative;
    z-index: 2;
}

/* Icon */
.campaign-toast-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

/* Text */
.campaign-toast-text {
    flex: 1;
    min-width: 0;
}

.campaign-toast-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.campaign-toast-desc {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 6px;
}

.campaign-toast-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Actions */
.campaign-toast-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.campaign-toast-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.campaign-toast-btn:hover {
    background: #fff;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.campaign-toast-btn i {
    font-size: 11px;
}

.campaign-toast-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.campaign-toast-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.campaign-toast-close i {
    font-size: 12px;
}

/* Progress Bar */
.campaign-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    width: 0;
    z-index: 1;
}

/* Animations */
@keyframes campaignProgress {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}

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

/* Responsive - Mobile */
@media (max-width: 768px) {
    .campaign-toast {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 360px;
    }

    .campaign-toast-content {
        padding: 16px;
        gap: 12px;
    }

    .campaign-toast-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .campaign-toast-title {
        font-size: 14px;
    }

    .campaign-toast-desc {
        font-size: 12px;
    }

    .campaign-toast-info {
        font-size: 10px;
    }

    .campaign-toast-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .campaign-toast.minimized {
        width: 50px;
        height: 50px;
    }

    .campaign-toast.minimized .campaign-toast-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .campaign-toast {
        width: calc(100vw - 20px);
        border-radius: 12px;
    }

    .campaign-toast-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .campaign-toast-btn {
        text-align: center;
        justify-content: center;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .campaign-toast {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

