/* ==========================================================================
   MediaTasker Date Header Component
   ========================================================================== */

.mediat_date-section {
    margin-bottom: 32px;
}

.mediat_date-header {
    background: #f5f5f5;
    padding: 15px 20px;
    margin: 20px 0 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mediat_date-header .dashicons {
    color: #666;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mediat_date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.mediat_date-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mediat_date-hint {
    font-size: 12px;
    color: #666;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #ddd;
}

.mediat_date-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.mediat_date-grouping {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* State Toggles (Progress Buttons) in Date Header */
.mediat_date-header .mediat_state-toggles {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background: transparent;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
}

.mediat_date-header .mediat_state-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    color: white;
    white-space: nowrap;
}

.mediat_date-header .mediat_state-btn .dashicons {
    color: white;
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.mediat_date-header .mediat_state-btn.is-pending {
    background: #dc3545;
}

.mediat_date-header .mediat_state-btn.is-pending:hover {
    background: #c82333;
}

.mediat_date-header .mediat_state-btn.is-in-progress {
    background: #ffc107;
    color: #000;
}

.mediat_date-header .mediat_state-btn.is-in-progress:hover {
    background: #e0a800;
}

.mediat_date-header .mediat_state-btn.is-completed {
    background: #28a745;
}

.mediat_date-header .mediat_state-btn.is-completed:hover {
    background: #218838;
}

/* Action Buttons in Date Header */
.mediat_date-header .mediat_btn-neutral {
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
}

.mediat_date-header .mediat_btn-neutral:hover {
    background: #e0e0e0;
    color: #0073aa;
}

.mediat_date-header .mediat_btn-neutral .dashicons {
    color: inherit;
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mediat_date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mediat_date-actions {
        flex-wrap: wrap;
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .mediat_date-header .mediat_state-toggles {
        border: none;
        padding: 0;
        width: 100%;
        justify-content: flex-start;
        margin: 5px 0;
    }
}
