/**
 * WG Streaming Alerts - Frontend Styles
 *
 * @package WG_Streaming
 * @since 2.1.0
 */

/* Alert Button */
.wg-alert-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wg-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wg-alert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alert Form */
.wg-alert-form {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.wg-alert-form p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #586069;
}

.wg-alert-email {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.wg-alert-email:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wg-alert-submit,
.wg-alert-cancel {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
}

.wg-alert-submit {
    background: #28a745;
    color: white;
}

.wg-alert-submit:hover {
    background: #218838;
}

.wg-alert-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wg-alert-cancel {
    background: #6c757d;
    color: white;
}

.wg-alert-cancel:hover {
    background: #5a6268;
}

/* Alert Messages */
.wg-alert-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.wg-alert-message .success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

.wg-alert-message .error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Integration in Streaming Widget */
.wg-streaming-service .wg-alert-btn {
    margin-left: 8px;
    font-size: 12px;
    padding: 6px 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .wg-alert-form {
        padding: 12px;
    }

    .wg-alert-btn {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }

    .wg-alert-submit,
    .wg-alert-cancel {
        width: 48%;
        margin-right: 2%;
    }

    .wg-alert-cancel {
        margin-right: 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wg-alert-form {
        background: #2d3748;
        border-color: #4a5568;
    }

    .wg-alert-form p {
        color: #cbd5e0;
    }

    .wg-alert-email {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .wg-alert-email:focus {
        border-color: #667eea;
    }

    .wg-alert-message .success {
        color: #9ae6b4;
        background: #2f855a;
        border-color: #38a169;
    }

    .wg-alert-message .error {
        color: #fc8181;
        background: #c53030;
        border-color: #e53e3e;
    }
}
