/**
 * Kommentar Dashboard Styles
 * Version: 1.0.0
 */

.kommentar-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.kd-header {
    margin-bottom: 25px;
}

.kd-titel {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Statistiken */
.kd-statistik {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-zahl {
    font-size: 32px;
    font-weight: bold;
    color: #2CA1FF;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* Filter */
.kd-kontrollen {
    background: #2CA1FF;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: white;
}

.kd-filter-gruppe {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.kd-filter-gruppe > span {
    color: white !important;
}

.kd-filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.kd-filter-btn:hover {
    border-color: white;
    background: rgba(255,255,255,0.2);
}

.kd-filter-btn.aktiv {
    background: white;
    color: #2CA1FF;
    border-color: white;
}

/* Kommentare Container */
.kd-kommentare-container {
    display: grid;
    gap: 15px;
}

/* Kommentar Cards */
.kommentar-card {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kommentar-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.kommentar-card.neu {
    border-left: 3px solid #28a745;
}

.kc-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.kc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.kc-meta {
    flex-grow: 1;
}

.kc-autor {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    margin-bottom: 3px;
}

.kc-info {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.kc-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kc-info-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.kc-post-link {
    color: #0073aa;
    text-decoration: none;
}

.kc-post-link:hover {
    text-decoration: underline;
}

.kc-inhalt {
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 14px;
}

.kc-mehr {
    color: #0073aa;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}

.kc-mehr:hover {
    text-decoration: underline;
}

.kc-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.kc-action-btn {
    padding: 6px 12px;
    border: 1px solid #e1e4e8;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kc-action-btn:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
}

.kc-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #cfe2ff;
    color: #084298;
}

/* Filter Nachricht */
.kd-filter-nachricht {
    text-align: center;
    padding: 40px;
    color: #666;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
}

/* Lade Animation */
.lade-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Mehr laden Button */
.kd-mehr-laden {
    text-align: center;
    margin-top: 30px;
}

.mehr-laden-btn {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.mehr-laden-btn:hover:not(:disabled) {
    background: #005a87;
}

.mehr-laden-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Keine Kommentare */
.keine-kommentare {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.keine-kommentare-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Widget Styles */
.kommentare-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kw-titel {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.kw-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.kw-item:last-child {
    border-bottom: none;
}

.kw-autor {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.kw-meta {
    font-size: 12px;
    color: #999;
}

.kw-link {
    color: #0073aa;
    text-decoration: none;
}

.kw-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .kommentar-dashboard {
        padding: 15px;
    }
    
    .kd-statistik {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .kc-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .kommentar-card {
        padding: 12px 15px;
    }
}
