/* Enhancements CSS für verbesserte Features */

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.notification-success {
    border-left: 4px solid #28a745;
    background: var(--gradient-card);
}

.notification.notification-error {
    border-left: 4px solid #dc3545;
    background: var(--gradient-card);
}

.notification i {
    font-size: var(--text-lg);
    color: var(--primary-400);
    flex-shrink: 0;
}

.notification.notification-success i {
    color: #28a745;
}

.notification.notification-error i {
    color: #dc3545;
}

.notification span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--text-sm);
    line-height: 1.4;
}

/* QR-Code Modal */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.qr-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.qr-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qr-modal-header h3 {
    margin: 0;
    color: #333;
}

.qr-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qr-close:hover {
    background: #f5f5f5;
    color: #333;
}

.qr-modal-body {
    padding: 30px;
    text-align: center;
}

.qr-code-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Social Sharing Buttons */
.social-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    justify-content: center;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn.twitter {
    background: #1DA1F2;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.email {
    background: #666;
}

.social-btn.qr {
    background: #333;
}

.social-btn.copy {
    background: #6c757d;
}

/* Stream URL Input Verbesserungen */
.form-group {
    position: relative;
}

.form-group input[name="stream_url"] {
    padding-right: 40px;
}

.form-group input[name="stream_url"].valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.44 1.44L7.4 4.5l.94.94L4.66 9.17z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.form-group input[name="stream_url"].invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1m0-1-1 1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

/* Stream Embed Verbesserungen */
.stream-embed {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.stream-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.stream-link {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
}

.stream-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stream-link a:hover {
    text-decoration: underline;
}

/* Stream Actions Verbesserungen */
.stream-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.action-btn.share-btn:hover {
    background: #007bff;
    color: #fff;
}

.action-btn.copy-btn:hover {
    background: #6c757d;
    color: #fff;
}

/* Live-Update Indikatoren */
.live-indicator {
    position: relative;
}

.live-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Responsive Verbesserungen */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .social-share-buttons {
        justify-content: center;
    }
    
    .social-btn {
        flex: 1;
        min-width: auto;
    }
    
    .stream-actions {
        justify-content: center;
    }
    
    .qr-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stream Type Badges */
.stream-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.stream-type-badge.youtube {
    background: #FF0000;
}

.stream-type-badge.twitch {
    background: #9146FF;
}

.stream-type-badge.facebook {
    background: #1877F2;
}

.stream-type-badge.instagram {
    background: #E4405F;
}

.stream-type-badge.tiktok {
    background: #000;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Update-Indikatoren */
.update-indicator {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    border-left: 4px solid #007bff;
    animation: slideInRight 0.3s ease;
}

.update-indicator.update-success {
    border-left-color: #28a745;
    background: #f8fff9;
    color: #155724;
}

.update-indicator.update-error {
    border-left-color: #dc3545;
    background: #fff8f8;
    color: #721c24;
}

.update-indicator.update-info {
    border-left-color: #17a2b8;
    background: #f8fdff;
    color: #0c5460;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Echte Daten-Indikatoren */
.real-data {
    position: relative;
}

.real-data::after {
    content: '●';
    position: absolute;
    top: -2px;
    right: -8px;
    color: #28a745;
    font-size: 8px;
    animation: realDataPulse 2s infinite;
}

.viewer-count.real-data::after {
    top: 2px;
    right: -6px;
}

@keyframes realDataPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Stream-Update-Button */
.stream-update-btn {
    position: absolute;
    top: 10px;
    right: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.stream-card:hover .stream-update-btn {
    opacity: 1;
}

.stream-update-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.stream-update-btn.updating {
    background: #007bff;
    cursor: not-allowed;
}

.stream-update-btn.updating::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    border-top: 1px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

/* Responsive Anpassungen für Update-Indikatoren */
@media (max-width: 768px) {
    .update-indicator {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 80px;
    }
    
    .real-data::after {
        font-size: 6px;
        right: -6px;
    }
} 