<!DOCTYPE html>
<html>
<head>
<style>
/* PM Community Articles - Frontend Styles */

.pm-articles-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.pm-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.pm-articles-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-articles-header h2 i {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.pm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
}

.pm-btn-primary {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
}

.pm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pm-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.pm-btn-secondary:hover {
    background: #e8e8e8;
}

.pm-btn-danger {
    background: #dc3545;
    color: white;
}

.pm-btn-danger:hover {
    background: #c82333;
}

.pm-btn-success {
    background: #28a745;
    color: white;
}

.pm-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Notices */
.pm-articles-notice {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pm-articles-notice i {
    font-size: 24px;
}

.pm-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.pm-notice-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.pm-notice-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

/* Info Panel */
.pm-articles-info-panel {
    margin-bottom: 30px;
}

.pm-info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.pm-info-box h4 {
    margin: 0 0 15px 0;
    color: #5a67d8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-info-box li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pm-info-box li i {
    color: #48bb78;
    margin-top: 2px;
}

.pm-rejection-box {
    background: #fff5f5;
    border-color: #feb2b2;
}

.pm-rejection-box h4 {
    color: #e53e3e;
}

.pm-admin-notes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Form */
.pm-article-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pm-form-group {
    margin-bottom: 25px;
}

.pm-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.pm-form-group label i {
    color: #667EEA;
}

.pm-required {
    color: #e53e3e;
}

.pm-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.pm-form-control:focus {
    outline: none;
    border-color: #667EEA;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pm-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Character Counter */
.pm-character-count {
    text-align: right;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.pm-character-count.warning {
    color: #e53e3e;
}

.pm-min-chars {
    color: #999;
}

/* Article Status */
.pm-article-status {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pm-status-draft {
    background: #e2e8f0;
    color: #64748b;
}

.pm-status-pending {
    background: #fef3c7;
    color: #d97706;
}

.pm-status-in_review {
    background: #dbeafe;
    color: #1e40af;
}

.pm-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.pm-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.pm-status-published {
    background: #c7f9cc;
    color: #14532d;
}

/* Form Actions */
.pm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Points Info */
.pm-points-info {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-radius: 5px;
    text-align: center;
    color: #92400e;
}

.pm-points-info i {
    color: #f59e0b;
    margin-right: 5px;
}

/* Articles Grid */
.pm-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pm-article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pm-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.pm-article-card-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 1px solid #f0f0f0;
}

.pm-article-card-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.pm-article-card-body {
    padding: 20px;
}

.pm-article-card-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.pm-article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.pm-article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pm-rejection-notice {
    margin-top: 15px;
    padding: 10px;
    background: #fff5f5;
    border-left: 3px solid #e53e3e;
    border-radius: 3px;
    font-size: 13px;
}

.pm-article-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.pm-pending-info {
    color: #d97706;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State */
.pm-articles-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 10px;
    margin-top: 30px;
}

.pm-articles-empty i {
    font-size: 64px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.pm-articles-empty h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.pm-articles-empty p {
    color: #666;
    margin-bottom: 20px;
}

/* WordPress Editor Overrides */
.pm-article-form .wp-editor-wrap {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.pm-article-form .wp-editor-tabs {
    background: #f5f5f5;
}

.pm-article-form .wp-editor-container {
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pm-articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pm-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .pm-form-actions {
        flex-direction: column;
    }
    
    .pm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading States */
.pm-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.pm-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #667EEA;
    border-radius: 50%;
    border-top-color: transparent;
    animation: pm-spin 0.8s linear infinite;
}

@keyframes pm-spin {
    to { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div style="padding: 20px; max-width: 1200px; margin: 0 auto;">
    <h2 style="color: #333;">CSS Styly pro modul článků</h2>
    <p>Tyto styly zajišťují konzistentní vzhled s vaším designem využívajícím gradient #667EEA → #764BA2.</p>
    <p>Soubor uložte jako: <code>public/css/pm-articles.css</code></p>
</div>
</body>
</html>