/**
 * tiztalk CSS Styles
 * 
 * Design für das tiztalk Interview-Management-System
 * Basiert auf zentralen kcard-Styles
 */

/* Hauptcontainer */
.klakker-tiztalk-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Interview-Header */
.klakker-tiztalk-header {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #003893 0%, #1a2233 100%);
    color: white;
    border: none;
}

.klakker-tiztalk-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.klakker-tiztalk-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.klakker-tiztalk-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-thinking { background: #6c757d; }
.status-planning { background: #17a2b8; }
.status-preparing { background: #ffc107; color: #1a2233; }
.status-invited { background: #fd7e14; }
.status-talking { background: #28a745; }
.status-approved { background: #20c997; }
.status-scheduled { background: #6f42c1; }
.status-published { background: #dc3545; }

.klakker-tiztalk-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.klakker-tiztalk-date {
    color: #e9ecef;
}

/* Feed-Navigation */
.klakker-tiztalk-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.klakker-tiztalk-nav-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: white;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.klakker-tiztalk-nav-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.klakker-tiztalk-nav-btn.active {
    background: #003893;
    color: white;
    border-color: #003893;
}

/* Feed-Content */
.klakker-tiztalk-feed {
    margin-bottom: 1.5rem;
}

.klakker-tiztalk-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px dashed #dee2e6;
}

/* Nachrichten */
.klakker-tiztalk-message {
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
    transition: border-color 0.2s ease;
}

.klakker-tiztalk-message.host {
    border-left-color: #003893;
}

.klakker-tiztalk-message.guest {
    border-left-color: #28a745;
}

.klakker-tiztalk-message.pending {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.klakker-tiztalk-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.klakker-tiztalk-sender {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a2233;
}

.klakker-tiztalk-status-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.klakker-tiztalk-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.klakker-tiztalk-timestamp {
    color: #6c757d;
    font-size: 0.85rem;
}

.klakker-tiztalk-message-content {
    line-height: 1.5;
    color: #1a2233;
}

.klakker-tiztalk-message-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.klakker-tiztalk-approve-btn,
.klakker-tiztalk-edit-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: white;
    color: #495057;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.klakker-tiztalk-approve-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.klakker-tiztalk-edit-btn:hover {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

/* Eingabebox */
.klakker-tiztalk-input {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.klakker-tiztalk-input-header {
    margin-bottom: 1rem;
    color: #1a2233;
    font-weight: 600;
}

.klakker-tiztalk-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Barlow Condensed', Arial, sans-serif;
}

.klakker-tiztalk-send-btn {
    background: #003893;
    color: #fff;
    border: none;
    border-radius: 0.2rem;
    padding: 0.5rem 1.5rem;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.klakker-tiztalk-send-btn:hover {
    background: #1a2233;
}

.klakker-tiztalk-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .klakker-tiztalk-container {
        padding: 0.5rem;
    }
    
    .klakker-tiztalk-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .klakker-tiztalk-title h2 {
        font-size: 1.25rem;
    }
    
    .klakker-tiztalk-nav {
        flex-direction: column;
    }
    
    .klakker-tiztalk-nav-btn {
        flex: none;
    }
    
    .klakker-tiztalk-message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .klakker-tiztalk-message-actions {
        flex-direction: column;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .klakker-tiztalk-container {
        background: #1a1a1a;
        color: #e9ecef;
    }
    
    .klakker-tiztalk-nav {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .klakker-tiztalk-nav-btn {
        background: #4a5568;
        color: #e9ecef;
        border-color: #718096;
    }
    
    .klakker-tiztalk-nav-btn:hover {
        background: #718096;
    }
    
    .klakker-tiztalk-nav-btn.active {
        background: #003893;
        color: white;
    }
    
    .klakker-tiztalk-empty {
        background: #2d3748;
        color: #a0aec0;
        border-color: #4a5568;
    }
    
    .klakker-tiztalk-message.pending {
        background: #744210;
        color: #faf089;
    }
    
    .klakker-tiztalk-input {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .klakker-tiztalk-input-header {
        color: #e9ecef;
    }
    
    .klakker-tiztalk-message-actions {
        border-color: #4a5568;
    }
    
    .klakker-tiztalk-approve-btn,
    .klakker-tiztalk-edit-btn {
        background: #4a5568;
        color: #e9ecef;
        border-color: #718096;
    }
}

/* Animationen */
.klakker-tiztalk-message {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.klakker-tiztalk-nav-btn {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 