/* CreatorNest - Wiederverwendbare Komponenten */

/* Modal Komponenten */
.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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
}

.modal-header h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: var(--text-lg);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--background-elevated);
}

/* QR Modal Spezifisch */
.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: 1000;
    backdrop-filter: blur(5px);
}

.qr-modal-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
}

.qr-modal-header h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.qr-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: var(--text-lg);
}

.qr-close:hover {
    color: var(--text-primary);
    background: var(--background-elevated);
}

/* Social Share Buttons */
.social-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--background-elevated);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.social-btn.telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.social-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.social-btn.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.social-btn.email:hover {
    background: var(--gradient-secondary);
    color: white;
    border-color: var(--accent-500);
}

.social-btn.qr:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-400);
}

.social-btn.copy:hover {
    background: var(--gradient-warm);
    color: white;
    border-color: var(--primary-400);
}

/* Form Komponenten */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-4);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--background-tertiary);
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: var(--glow-orange);
    background: var(--background-elevated);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #dc2626;
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.form-success {
    color: var(--accent-500);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

/* Loading Komponenten */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-primary);
    border-top: 4px solid var(--primary-400);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-top: var(--space-4);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--background-tertiary) 25%, var(--background-elevated) 50%, var(--background-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    border-radius: var(--radius);
    margin-bottom: var(--space-2);
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
}

/* Tooltip Komponente */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-elevated);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--background-elevated);
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Badge Komponenten */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.badge-secondary {
    background: var(--gradient-secondary);
    color: var(--text-primary);
}

.badge-success {
    background: var(--accent-500);
    color: white;
}

.badge-warning {
    background: var(--primary-500);
    color: white;
}

.badge-error {
    background: #dc2626;
    color: white;
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

/* Stream Type Badges */
.stream-type-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stream-type-badge.twitch {
    background: #9146FF;
    color: white;
}

.stream-type-badge.youtube {
    background: #FF0000;
    color: white;
}

.stream-type-badge.kick {
    background: #53FC18;
    color: black;
}

.stream-type-badge.tiktok {
    background: #000000;
    color: white;
}

/* Update Button */
.stream-update-btn {
    position: absolute;
    top: var(--space-3);
    right: var(--space-12);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: var(--space-2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--text-sm);
    opacity: 0;
}

.stream-card:hover .stream-update-btn {
    opacity: 1;
}

.stream-update-btn:hover {
    background: var(--primary-500);
    transform: scale(1.1);
}

.stream-update-btn.updating {
    animation: spin 1s linear infinite;
    pointer-events: none;
}

/* Responsive Grid Utilities */
.grid-responsive {
    display: grid;
    gap: var(--space-6);
}

.grid-1 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid-sm-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid-md-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-md-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-lg-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-primary { background: var(--gradient-primary); }
.bg-secondary { background: var(--gradient-secondary); }
.bg-surface { background: var(--gradient-card); }

.border { border: 1px solid var(--border-primary); }
.border-primary { border-color: var(--primary-400); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.m-4 { margin: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.transition { transition: var(--transition); }

/* Like Button States - Verbessert */
.like-btn.liked,
.btn-liked {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary-400) !important;
    box-shadow: var(--glow-orange) !important;
}

.like-btn.liked i,
.btn-liked i {
    color: var(--text-primary) !important;
    animation: heartBeat 0.6s ease-in-out;
}

.action-btn.like-btn {
    transition: var(--transition-bounce);
}

.action-btn.like-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Utilities */
@media (max-width: 639px) {
    .sm\:hidden { display: none; }
}

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:flex { display: flex; }
    .sm\:grid { display: grid; }
    .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:flex { display: flex; }
    .md\:grid { display: grid; }
    .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
    .lg\:grid { display: grid; }
    .lg\:hidden { display: none; }
} 