/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Global Definitions */
.hide {
    display: none !important;
}


/* Use these Substyles Files for Specific Components */
@import url('column.css');
@import url('card.css');
@import url('modal.css');
@import url('chatbot.css');
@import url('board.css');
@import url('markdown.css');
@import url('colors.css');


.max-420 {
    max-width: 420px!important;
}

/* Paste Functionality Styles */

.paste-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10000;
    font-size: 14px;
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOutRight {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Paste hints */
.paste-hint {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

/* URL Preview Modal Styles */
.url-preview-container {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.url-preview-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.url-preview-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.url-preview-content {
    padding: 1rem;
}

.url-preview-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.url-preview-description {
    color: #657786;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.url-preview-url {
    color: #1da1f2;
    font-size: 0.85rem;
    word-break: break-all;
    text-decoration: none;
    font-weight: 500;
}

.url-preview-url:hover {
    text-decoration: underline;
}

/* URL Preview Loading Animation */
.url-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #657786;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-top: 2px solid #1da1f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form styling for URL preview modal */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"], 
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.form-group input[type="text"]:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* YouTube Video Player Styles */
.video-tabs {
    display: flex;
    border-bottom: 2px solid #e1e8ed;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: #f8f9fa;
    color: #657786;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e1e8ed;
    color: #333;
}

.tab-btn.active {
    background: #ffffff;
    color: #1da1f2;
    border-bottom-color: #1da1f2;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.youtube-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* YouTube-spezifische URL Preview Anpassungen */
.url-preview-container.youtube {
    border-color: #ff0000;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.1);
}

.youtube-info {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.youtube-info::before {
    content: "▶️";
    font-size: 1rem;
}

/* Loading state für YouTube Videos */
.youtube-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f0f0f0;
    color: #666;
    font-size: 0.9rem;
}

.youtube-loading::before {
    content: "⏳";
    margin-right: 0.5rem;
    animation: spin 2s linear infinite;
}

/* Responsive YouTube Player */
@media (max-width: 600px) {
    .video-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid #e1e8ed;
        border-right: none;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .tab-btn.active {
        border-bottom-color: #e1e8ed;
        border-left: 3px solid #1da1f2;
    }
    
    .youtube-video-container {
        padding-bottom: 60%; /* Leicht angepasst für mobile Geräte */
    }
}

/* Dark Theme Support für YouTube Player */
@media (prefers-color-scheme: dark) {
    .video-tabs {
        background: #2f3349;
        border-bottom-color: #404040;
    }
    
    .tab-btn {
        background: #2f3349;
        color: #b0b0b0;
    }
    
    .tab-btn:hover {
        background: #404040;
        color: #ffffff;
    }
    
    .tab-btn.active {
        background: #1a1a1a;
        color: #1da1f2;
    }
    
    .youtube-video-container {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .url-preview-container {
        margin: 0.5rem 0;
    }
    
    .url-preview-content {
        padding: 0.75rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* YouTube Embed Styling für Cards */
.youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Responsives YouTube-Embedding für verschiedene Bildschirmgrößen */
@media (max-width: 768px) {
    .youtube-embed {
        margin: 0.5rem 0;
        border-radius: 4px;
    }
}

