/* WP Post Scheduler Frontend Styles */

/* Scheduled post indicator */
.wp-post-scheduler-indicator {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 5px;
}

.wp-post-scheduler-indicator.scheduled {
    background: #d63638;
}

.wp-post-scheduler-indicator.published {
    background: #00a32a;
}

/* Scheduled posts widget */
.wp-post-scheduler-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.wp-post-scheduler-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 18px;
}

.wp-post-scheduler-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-post-scheduler-widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-post-scheduler-widget li:last-child {
    border-bottom: none;
}

.wp-post-scheduler-widget .post-title {
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    flex: 1;
}

.wp-post-scheduler-widget .post-title:hover {
    color: #005a87;
}

.wp-post-scheduler-widget .scheduled-date {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

/* Shortcode styles */
.wp-post-scheduler-shortcode {
    margin: 20px 0;
}

.wp-post-scheduler-shortcode table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
}

.wp-post-scheduler-shortcode th,
.wp-post-scheduler-shortcode td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.wp-post-scheduler-shortcode th {
    background: #f9f9f9;
    font-weight: 600;
    color: #23282d;
}

.wp-post-scheduler-shortcode tr:last-child td {
    border-bottom: none;
}

.wp-post-scheduler-shortcode .post-link {
    color: #0073aa;
    text-decoration: none;
}

.wp-post-scheduler-shortcode .post-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Status badges */
.wp-post-scheduler-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.wp-post-scheduler-status.pending {
    background: #fff2cc;
    color: #b7950b;
    border: 1px solid #f4d03f;
}

.wp-post-scheduler-status.published {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wp-post-scheduler-status.failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wp-post-scheduler-status.cancelled {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .wp-post-scheduler-widget li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wp-post-scheduler-widget .scheduled-date {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .wp-post-scheduler-shortcode {
        overflow-x: auto;
    }
    
    .wp-post-scheduler-shortcode table {
        min-width: 500px;
    }
}

/* Loading animation */
.wp-post-scheduler-loading {
    text-align: center;
    padding: 20px;
}

.wp-post-scheduler-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: wp-post-scheduler-spin 1s linear infinite;
}

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

/* Empty state */
.wp-post-scheduler-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.wp-post-scheduler-empty::before {
    content: '📅';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}