/* AutoBlogger Admin Styles */

.autoblogger-dashboard {
    margin-top: 20px;
}

.autoblogger-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 48px;
}

.stat-content h3 {
    margin: 0;
    font-size: 32px;
    color: #2271b1;
}

.stat-content p {
    margin: 5px 0 0;
    color: #666;
}

.autoblogger-quick-actions {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.autoblogger-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.autoblogger-info ol {
    margin-left: 20px;
}

.autoblogger-info li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Generation Page */
.autoblogger-generate {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.generation-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #2271b1;
}

.tab-button.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.tab-content {
    display: none;
}

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

#loading-indicator {
    text-align: center;
    padding: 40px;
}

.autoblogger-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

#generation-results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

#article-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.article-actions {
    display: flex;
    gap: 10px;
}

/* Articles List */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-draft {
    background: #f0f0f0;
    color: #666;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-scheduled {
    background: #fff3cd;
    color: #856404;
}

/* Public Styles */
.autoblogger-public {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.autoblogger-article {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.autoblogger-article h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.autoblogger-article .meta {
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.autoblogger-article .content {
    line-height: 1.8;
}

.autoblogger-article .content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.autoblogger-article .content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.autoblogger-article .content p {
    margin-bottom: 15px;
}

.autoblogger-article .content ul,
.autoblogger-article .content ol {
    margin-bottom: 15px;
    margin-left: 30px;
}

.autoblogger-article .content li {
    margin-bottom: 8px;
}
